#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "bmp.h"
Go to the source code of this file.
#define SIZE_BITMAPFILEHEADER 14 |
#define SIZE_BITMAPINFOHEADER 40 |
static int bmp_encode_frame |
( |
AVCodecContext * |
avctx, |
|
|
unsigned char * |
buf, |
|
|
int |
buf_size, |
|
|
void * |
data |
|
) |
| |
|
static |
Initial value:= {
.name = "bmp",
}
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
static int init(AVCodecParserContext *s)
struct BMPContext BMPContext
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
static av_cold int bmp_encode_init(AVCodecContext *avctx)
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
packed RGB 8:8:8, 24bpp, BGRBGR...
static int bmp_encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
8 bit with PIX_FMT_RGB32 palette
Definition at line 157 of file bmpenc.c.
const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF } |
|
static |
const uint32_t rgb444_masks[] = { 0x0F00, 0x00F0, 0x000F } |
|
static |
const uint32_t rgb565_masks[] = { 0xF800, 0x07E0, 0x001F } |
|
static |