FFmpeg
 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
 

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.

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 93 of file xfacedec.c.

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

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
#define NULL_IF_CONFIG_SMALL(x)
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
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:722
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:71
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60

Definition at line 179 of file xfacedec.c.