FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
bmpenc.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "bytestream.h"
#include "bmp.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define SIZE_BITMAPFILEHEADER   14
 
#define SIZE_BITMAPINFOHEADER   40
 

Functions

static av_cold int bmp_encode_init (AVCodecContext *avctx)
 
static int bmp_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 
static av_cold int bmp_encode_close (AVCodecContext *avctx)
 

Variables

static const uint32_t monoblack_pal [] = { 0x000000, 0xFFFFFF }
 
static const uint32_t rgb565_masks [] = { 0xF800, 0x07E0, 0x001F }
 
static const uint32_t rgb444_masks [] = { 0x0F00, 0x00F0, 0x000F }
 
AVCodec ff_bmp_encoder
 

Macro Definition Documentation

#define SIZE_BITMAPFILEHEADER   14

Referenced by bmp_encode_frame().

#define SIZE_BITMAPINFOHEADER   40

Referenced by bmp_encode_frame().

Function Documentation

static av_cold int bmp_encode_init ( AVCodecContext avctx)
static

Definition at line 34 of file bmpenc.c.

static int bmp_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int *  got_packet 
)
static

Definition at line 70 of file bmpenc.c.

static av_cold int bmp_encode_close ( AVCodecContext avctx)
static

Definition at line 166 of file bmpenc.c.

Variable Documentation

const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF }
static

Definition at line 30 of file bmpenc.c.

Referenced by bmp_encode_frame().

const uint32_t rgb565_masks[] = { 0xF800, 0x07E0, 0x001F }
static

Definition at line 31 of file bmpenc.c.

Referenced by bmp_encode_frame().

const uint32_t rgb444_masks[] = { 0x0F00, 0x00F0, 0x000F }
static

Definition at line 32 of file bmpenc.c.

Referenced by bmp_encode_frame().

AVCodec ff_bmp_encoder