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 = AV_CODEC_CAP_DR1,
}
static int pix_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: brenderpix.c:132
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:956

Definition at line 285 of file brenderpix.c.