All Data Structures Namespaces 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


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)


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 

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 

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 

Definition at line 69 of file xfacedec.c.

Referenced by xface_decode_frame().

static av_cold int xface_decode_init ( AVCodecContext avctx)

Definition at line 93 of file xfacedec.c.

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

Definition at line 111 of file xfacedec.c.

Variable Documentation

AVCodec ff_xface_decoder
Initial value:
= {
.name = "xface",
.long_name = NULL_IF_CONFIG_SMALL("X-face image"),
.priv_data_size = sizeof(XFaceContext),
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
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:262
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:71
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
Definition: ffmpeg.c:2035
Pixel format.
Definition: pixfmt.h:60

Definition at line 179 of file xfacedec.c.