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"
Include dependency graph for xfacedec.c:

Go to the source code of this file.

Data Structures

struct  XFaceContext
 

Typedefs

typedef struct XFaceContext 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 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.

Typedef Documentation

typedef struct XFaceContext XFaceContext

Function Documentation

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 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 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 int xface_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 111 of file xfacedec.c.

static av_cold int xface_decode_init ( AVCodecContext avctx)
static

Definition at line 93 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"),
}
static av_cold int xface_decode_init(AVCodecContext *avctx)
Definition: xfacedec.c:93
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int xface_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: xfacedec.c:111
struct XFaceContext XFaceContext
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:77
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
AVPixelFormat
Pixel format.
Definition: pixfmt.h:66

Definition at line 179 of file xfacedec.c.