FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
brenderpix.c File Reference
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  PixHeader
 

Macros

#define HEADER1_CHUNK   0x03
 
#define HEADER2_CHUNK   0x3D
 
#define IMAGE_DATA_CHUNK   0x21
 

Functions

static int pix_decode_header (PixHeader *out, GetByteContext *pgb)
 
static int pix_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

static const uint32_t std_pal_table [256]
 
AVCodec ff_brender_pix_decoder
 

Macro Definition Documentation

#define HEADER1_CHUNK   0x03

Definition at line 30 of file brenderpix.c.

Referenced by pix_decode_frame().

#define HEADER2_CHUNK   0x3D

Definition at line 31 of file brenderpix.c.

Referenced by pix_decode_frame().

#define IMAGE_DATA_CHUNK   0x21

Definition at line 32 of file brenderpix.c.

Referenced by pix_decode_frame().

Function Documentation

static int pix_decode_header ( PixHeader out,
GetByteContext pgb 
)
static

Definition at line 113 of file brenderpix.c.

Referenced by pix_decode_frame().

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

Definition at line 132 of file brenderpix.c.

Variable Documentation

const uint32_t std_pal_table[256]
static

Definition at line 44 of file brenderpix.c.

Referenced by pix_decode_frame().

AVCodec ff_brender_pix_decoder
Initial value:
= {
.name = "brender_pix",
.long_name = NULL_IF_CONFIG_SMALL("BRender PIX image"),
.decode = pix_decode_frame,
.capabilities = CODEC_CAP_DR1,
}

Definition at line 285 of file brenderpix.c.