Go to the source code of this file.
|
static int | targa_encode_rle (uint8_t *outbuf, int out_size, const AVFrame *pic, int bpp, int w, int h) |
| RLE compress the image, with maximum size of out_size. More...
|
|
static int | targa_encode_normal (uint8_t *outbuf, const AVFrame *pic, int bpp, int w, int h) |
|
static int | targa_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet) |
|
static av_cold int | targa_encode_init (AVCodecContext *avctx) |
|
◆ OFFSET
◆ VE
◆ targa_encode_rle()
static int targa_encode_rle |
( |
uint8_t * |
outbuf, |
|
|
int |
out_size, |
|
|
const AVFrame * |
pic, |
|
|
int |
bpp, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
RLE compress the image, with maximum size of out_size.
- Parameters
-
outbuf | Output buffer |
out_size | Maximum output size |
pic | Image to compress |
bpp | Bytes per pixel |
w | Image width |
h | Image height |
- Returns
- Size of output in bytes, or -1 if larger than out_size
Definition at line 52 of file targaenc.c.
Referenced by targa_encode_frame().
◆ targa_encode_normal()
static int targa_encode_normal |
( |
uint8_t * |
outbuf, |
|
|
const AVFrame * |
pic, |
|
|
int |
bpp, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
◆ targa_encode_frame()
◆ targa_encode_init()
◆ options
◆ targa_class
Initial value:= {
.class_name = "targa",
}
Definition at line 201 of file targaenc.c.
◆ ff_targa_encoder
#define CODEC_PIXFMTS(...)
static const AVClass targa_class
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
static int rle(uint8_t *dst, const uint8_t *src, int compressed_size, int uncompressed_size)
#define FF_CODEC_ENCODE_CB(func)
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
#define CODEC_LONG_NAME(str)
#define LIBAVUTIL_VERSION_INT
static av_cold int targa_encode_init(AVCodecContext *avctx)
const char * av_default_item_name(void *ptr)
Return the context name.
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
static int targa_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
@ AV_PIX_FMT_RGB555LE
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined
@ AV_PIX_FMT_PAL8
8 bits with AV_PIX_FMT_RGB32 palette
@ AV_OPT_TYPE_INT
Underlying C type is int.
IDirect3DDxgiInterfaceAccess _COM_Outptr_ void ** p
static const AVOption options[]