FFmpeg
|
#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "bytestream.h"
#include "bmp.h"
#include "internal.h"
Include dependency graph for bmpenc.c:
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) |
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 |
|
static |
Variable Documentation
AVCodec ff_bmp_encoder |
Initial value:
= {
.name = "bmp",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_BMP,
.init = bmp_encode_init,
.encode2 = bmp_encode_frame,
AV_PIX_FMT_RGB8, AV_PIX_FMT_BGR8, AV_PIX_FMT_RGB4_BYTE, AV_PIX_FMT_BGR4_BYTE, AV_PIX_FMT_GRAY8, AV_PIX_FMT_PAL8,
},
.long_name = NULL_IF_CONFIG_SMALL("BMP (Windows and OS/2 bitmap)"),
}
Definition: pixfmt.h:67
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: libavcodec/avcodec.h:181
static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: bmpenc.c:66
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:78
Definition: avutil.h:143
|
static |
Definition at line 30 of file bmpenc.c.
Referenced by bmp_encode_frame().
|
static |
Definition at line 32 of file bmpenc.c.
Referenced by bmp_encode_frame().
|
static |
Definition at line 31 of file bmpenc.c.
Referenced by bmp_encode_frame().
Generated on Fri Dec 20 2024 06:56:11 for FFmpeg by 1.8.11