FFmpeg
Loading...
Searching...
No Matches
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.

Referenced by pix_decode_frame().

◆ HEADER2_CHUNK

#define HEADER2_CHUNK   0x3D

Definition at line 32 of file brenderpix.c.

Referenced by pix_decode_frame().

◆ IMAGE_DATA_CHUNK

#define IMAGE_DATA_CHUNK   0x21

Definition at line 33 of file brenderpix.c.

Referenced by pix_decode_frame().

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,
}
static int pix_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition brenderpix.c:133
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_BRENDER_PIX
Definition codec_id.h:227
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200

Definition at line 281 of file brenderpix.c.