#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "targa.h"
Go to the source code of this file.
Data Structures | |
struct | TargaContext |
Defines | |
#define | CHECK_BUFFER_SIZE(buf, buf_end, needed, where) |
Functions | |
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) |
Variables | |
AVCodec | ff_targa_decoder |
#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; \ } \
Definition at line 36 of file targa.c.
Referenced by decode_frame(), and targa_decode_rle().
static int decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
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] |
static av_cold int targa_end | ( | AVCodecContext * | avctx | ) | [static] |
static av_cold int targa_init | ( | AVCodecContext * | avctx | ) | [static] |
Initial value:
{ "targa", AVMEDIA_TYPE_VIDEO, CODEC_ID_TARGA, sizeof(TargaContext), targa_init, NULL, targa_end, decode_frame, CODEC_CAP_DR1, NULL, .long_name = NULL_IF_CONFIG_SMALL("Truevision Targa image"), }