Go to the source code of this file.
|
static int | targa_encode_rle (uint8_t *outbuf, int out_size, 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, AVFrame *pic, int bpp, int w, int h) |
|
static int | targa_encode_frame (AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data) |
|
static av_cold int | targa_encode_init (AVCodecContext *avctx) |
|
static int targa_encode_frame |
( |
AVCodecContext * |
avctx, |
|
|
unsigned char * |
outbuf, |
|
|
int |
buf_size, |
|
|
void * |
data |
|
) |
| |
|
static |
static int targa_encode_normal |
( |
uint8_t * |
outbuf, |
|
|
AVFrame * |
pic, |
|
|
int |
bpp, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
static int targa_encode_rle |
( |
uint8_t * |
outbuf, |
|
|
int |
out_size, |
|
|
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 42 of file targaenc.c.
Referenced by targa_encode_frame().
Initial value:= {
.name = "targa",
}
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
static int targa_encode_frame(AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data)
struct TargaContext TargaContext
static int init(AVCodecParserContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
packed RGB 8:8:8, 24bpp, BGRBGR...
static av_cold int targa_encode_init(AVCodecContext *avctx)
Definition at line 162 of file targaenc.c.