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()
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 51 of file targaenc.c.
Referenced by targa_encode_frame().
◆ targa_encode_normal()
◆ targa_encode_frame()
◆ targa_encode_init()
◆ options
Initial value:= {
}
static int rle(uint8_t *dst, const uint8_t *src, int compressed_size, int uncompressed_size)
Definition at line 209 of file targaenc.c.
◆ targa_class
Initial value:= {
.class_name = "targa",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
static const AVOption options[]
Definition at line 215 of file targaenc.c.
◆ ff_targa_encoder
Initial value:= {
.name = "targa",
},
}
static av_cold int init(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static enum AVPixelFormat pix_fmts[]
AVPixelFormat
Pixel format.
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ 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_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
static const AVClass targa_class
static int targa_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
static av_cold int targa_encode_init(AVCodecContext *avctx)
Definition at line 222 of file targaenc.c.