FFmpeg
Data Structures | Macros | Functions | Variables
brenderpix.c File Reference
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.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, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 

Variables

static const uint32_t std_pal_table [256]
 
const FFCodec ff_brender_pix_decoder
 

Macro Definition Documentation

◆ HEADER1_CHUNK

#define HEADER1_CHUNK   0x03

Definition at line 31 of file brenderpix.c.

◆ HEADER2_CHUNK

#define HEADER2_CHUNK   0x3D

Definition at line 32 of file brenderpix.c.

◆ IMAGE_DATA_CHUNK

#define IMAGE_DATA_CHUNK   0x21

Definition at line 33 of file brenderpix.c.

Function Documentation

◆ pix_decode_header()

static int pix_decode_header ( PixHeader out,
GetByteContext pgb 
)
static

Definition at line 114 of file brenderpix.c.

Referenced by pix_decode_frame().

◆ pix_decode_frame()

static int pix_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 133 of file brenderpix.c.

Variable Documentation

◆ std_pal_table

const uint32_t std_pal_table[256]
static

Definition at line 45 of file brenderpix.c.

Referenced by pix_decode_frame().

◆ ff_brender_pix_decoder

const FFCodec ff_brender_pix_decoder
Initial value:
= {
.p.name = "brender_pix",
CODEC_LONG_NAME("BRender PIX image"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 293 of file brenderpix.c.

FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
pix_decode_frame
static int pix_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: brenderpix.c:133
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_CODEC_ID_BRENDER_PIX
@ AV_CODEC_ID_BRENDER_PIX
Definition: codec_id.h:230