#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "rle.h"
Go to the source code of this file.
Data Structures | |
struct | TargaContext |
Functions | |
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. | |
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) |
Variables | |
AVCodec | targa_encoder |
static int targa_encode_frame | ( | AVCodecContext * | avctx, | |
unsigned char * | outbuf, | |||
int | buf_size, | |||
void * | data | |||
) | [static] |
Definition at line 75 of file targaenc.c.
static av_cold int targa_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 143 of file targaenc.c.
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.
outbuf | Output buffer | |
out_size | Maximum output size | |
pic | Image to compress | |
bpp | Bytes per pixel | |
w | Image width | |
h | Image height |
Definition at line 40 of file targaenc.c.
Referenced by targa_encode_frame().
Initial value:
{ .name = "targa", .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_TARGA, .priv_data_size = sizeof(TargaContext), .init = targa_encode_init, .encode = targa_encode_frame, .pix_fmts= (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555LE, PIX_FMT_GRAY8, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("Truevision Targa image"), }
Definition at line 154 of file targaenc.c.