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.




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 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


Referenced by bmp_encode_frame().


Referenced by bmp_encode_frame().

Function Documentation

static av_cold int bmp_encode_init ( AVCodecContext avctx)

Definition at line 34 of file bmpenc.c.

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

Definition at line 66 of file bmpenc.c.

Variable Documentation

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

Definition at line 30 of file bmpenc.c.

Referenced by bmp_encode_frame().

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

Definition at line 31 of file bmpenc.c.

Referenced by bmp_encode_frame().

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

Definition at line 32 of file bmpenc.c.

Referenced by bmp_encode_frame().

AVCodec ff_bmp_encoder
Initial value:
= {
.name = "bmp",
.long_name = NULL_IF_CONFIG_SMALL("BMP (Windows and OS/2 bitmap)"),
.init = bmp_encode_init,
.encode2 = bmp_encode_frame,
.pix_fmts = (const enum AVPixelFormat[]){
#define AV_PIX_FMT_RGB444
Definition: pixfmt.h:368
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
Definition: pixfmt.h:85
8 bits with AV_PIX_FMT_RGB32 palette
Definition: pixfmt.h:77
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:95
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
Definition: pixfmt.h:88
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:69
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
Definition: pixfmt.h:83
static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: bmpenc.c:66
static av_cold int bmp_encode_init(AVCodecContext *avctx)
Definition: bmpenc.c:34
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:76
Y , 8bpp.
Definition: pixfmt.h:74
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
Definition: pixfmt.h:86
#define AV_PIX_FMT_RGB555
Definition: pixfmt.h:367
#define AV_PIX_FMT_RGB565
Definition: pixfmt.h:366
Pixel format.
Definition: pixfmt.h:64

Definition at line 166 of file bmpenc.c.