#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.
Defines | |
#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) |
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 |
#define SIZE_BITMAPFILEHEADER 14 |
Referenced by bmp_encode_frame().
#define SIZE_BITMAPINFOHEADER 40 |
Referenced by bmp_encode_frame().
static int bmp_encode_frame | ( | AVCodecContext * | avctx, | |
AVPacket * | pkt, | |||
const AVFrame * | pict, | |||
int * | got_packet | |||
) | [static] |
static av_cold int bmp_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
Initial value:
{ .name = "bmp", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_BMP, .priv_data_size = sizeof(BMPContext), .init = bmp_encode_init, .encode2 = bmp_encode_frame, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGRA, PIX_FMT_BGR24, PIX_FMT_RGB565, PIX_FMT_RGB555, PIX_FMT_RGB444, PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_MONOBLACK, PIX_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("BMP (Windows and OS/2 bitmap)"), }
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] |