FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
xfacedec.c File Reference

X-Face decoder, based on libcompface, by James Ashton. More...

#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "xface.h"

Go to the source code of this file.

Data Structures

struct  XFaceContext
 

Functions

static int pop_integer (BigInt *b, const ProbRange *pranges)
 
static void pop_greys (BigInt *b, char *bitmap, int w, int h)
 
static void decode_block (BigInt *b, char *bitmap, int w, int h, int level)
 
static av_cold int xface_decode_init (AVCodecContext *avctx)
 
static av_cold int xface_decode_close (AVCodecContext *avctx)
 
static int xface_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

AVCodec ff_xface_decoder
 

Detailed Description

X-Face decoder, based on libcompface, by James Ashton.

Definition in file xfacedec.c.

Function Documentation

static int pop_integer ( BigInt b,
const ProbRange pranges 
)
static

Definition at line 33 of file xfacedec.c.

Referenced by decode_block(), and pop_greys().

static void pop_greys ( BigInt b,
char *  bitmap,
int  w,
int  h 
)
static

Definition at line 51 of file xfacedec.c.

Referenced by decode_block().

static void decode_block ( BigInt b,
char *  bitmap,
int  w,
int  h,
int  level 
)
static

Definition at line 69 of file xfacedec.c.

Referenced by xface_decode_frame().

static av_cold int xface_decode_init ( AVCodecContext avctx)
static

Definition at line 94 of file xfacedec.c.

static av_cold int xface_decode_close ( AVCodecContext avctx)
static

Definition at line 116 of file xfacedec.c.

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

Definition at line 126 of file xfacedec.c.

Variable Documentation

AVCodec ff_xface_decoder
Initial value:
= {
.name = "xface",
.priv_data_size = sizeof(XFaceContext),
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("X-face image"),
}

Definition at line 198 of file xfacedec.c.