FFmpeg
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

◆ HEADER1_CHUNK

#define HEADER1_CHUNK   0x03

Definition at line 30 of file brenderpix.c.

◆ HEADER2_CHUNK

#define HEADER2_CHUNK   0x3D

Definition at line 31 of file brenderpix.c.

◆ IMAGE_DATA_CHUNK

#define IMAGE_DATA_CHUNK   0x21

Definition at line 32 of file brenderpix.c.

Function Documentation

◆ pix_decode_header()

static int pix_decode_header ( PixHeader out,
GetByteContext pgb 
)
static

Definition at line 113 of file brenderpix.c.

Referenced by pix_decode_frame().

◆ 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

◆ std_pal_table

const uint32_t std_pal_table[256]
static

Definition at line 44 of file brenderpix.c.

Referenced by pix_decode_frame().

◆ ff_brender_pix_decoder

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,
}

Definition at line 288 of file brenderpix.c.

pix_decode_frame
static int pix_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: brenderpix.c:132
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:981
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_CODEC_ID_BRENDER_PIX
@ AV_CODEC_ID_BRENDER_PIX
Definition: avcodec.h:396