targa.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "targa.h"

Go to the source code of this file.

Data Structures

struct  TargaContext
 

Typedefs

typedef struct TargaContext TargaContext
 

Functions

static int targa_decode_rle (AVCodecContext *avctx, TargaContext *s, uint8_t *dst, int w, int h, int stride, int bpp)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int targa_init (AVCodecContext *avctx)
 
static av_cold int targa_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_targa_decoder
 

Typedef Documentation

typedef struct TargaContext TargaContext

Function Documentation

static int decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 97 of file targa.c.

static int targa_decode_rle ( AVCodecContext avctx,
TargaContext s,
uint8_t dst,
int  w,
int  h,
int  stride,
int  bpp 
)
static

Definition at line 37 of file targa.c.

Referenced by decode_frame().

static av_cold int targa_end ( AVCodecContext avctx)
static

Definition at line 250 of file targa.c.

static av_cold int targa_init ( AVCodecContext avctx)
static

Definition at line 241 of file targa.c.

Variable Documentation

AVCodec ff_targa_decoder
Initial value:
= {
.name = "targa",
.priv_data_size = sizeof(TargaContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Truevision Targa image"),
}

Definition at line 259 of file targa.c.