Go to the source code of this file.
|
static int | targa_decode_rle (AVCodecContext *avctx, TargaContext *s, const uint8_t *src, int src_size, uint8_t *dst, int w, int h, int stride, int bpp) |
|
static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
|
static av_cold int | targa_init (AVCodecContext *avctx) |
|
static av_cold int | targa_end (AVCodecContext *avctx) |
|
#define CHECK_BUFFER_SIZE |
( |
|
buf, |
|
|
|
buf_end, |
|
|
|
needed, |
|
|
|
where |
|
) |
| |
Value:if(needed > buf_end - buf){
\
av_log(avctx,
AV_LOG_ERROR,
"Problem: unexpected end of data while reading " where
"\n"); \
return -1; \
} \
void av_log(void *avcl, int level, const char *fmt,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition at line 37 of file targa.c.
Referenced by decode_frame(), and targa_decode_rle().
static int targa_decode_rle |
( |
AVCodecContext * |
avctx, |
|
|
TargaContext * |
s, |
|
|
const uint8_t * |
src, |
|
|
int |
src_size, |
|
|
uint8_t * |
dst, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
stride, |
|
|
int |
bpp |
|
) |
| |
|
static |
Initial value:= {
.name = "targa",
}
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
static int init(AVCodecParserContext *s)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int targa_init(AVCodecContext *avctx)
static void close(AVCodecParserContext *s)
struct TargaContext TargaContext
static av_cold int targa_end(AVCodecContext *avctx)
Definition at line 275 of file targa.c.