FFmpeg
Classes | Macros | Enumerations | Functions | Variables
xface.h File Reference

X-Face common definitions. More...

#include <stdint.h>

Go to the source code of this file.

Classes

struct  BigInt
 
struct  ProbRange
 

Macros

#define XFACE_WIDTH   48
 
#define XFACE_HEIGHT   48
 
#define XFACE_PIXELS   (XFACE_WIDTH * XFACE_HEIGHT)
 
#define XFACE_FIRST_PRINT   '!'
 
#define XFACE_LAST_PRINT   '~'
 
#define XFACE_PRINTS   (XFACE_LAST_PRINT - XFACE_FIRST_PRINT + 1)
 
#define XFACE_MAX_DIGITS   666
 
#define XFACE_BITSPERWORD   8
 
#define XFACE_WORDCARRY   (1 << XFACE_BITSPERWORD)
 
#define XFACE_WORDMASK   (XFACE_WORDCARRY - 1)
 
#define XFACE_MAX_WORDS   546
 

Enumerations

enum  XFaceColor { XFACE_COLOR_BLACK = 0, XFACE_COLOR_GREY, XFACE_COLOR_WHITE }
 

Functions

void ff_big_add (BigInt *b, uint8_t a)
 Add a to b storing the result in b.
 
void ff_big_div (BigInt *b, uint8_t a, uint8_t *r)
 Divide b by a storing the result in b and the remainder in the word pointed to by r.
 
void ff_big_mul (BigInt *b, uint8_t a)
 Multiply a by b storing the result in b.
 
void ff_xface_generate_face (uint8_t *dst, uint8_t *const src)
 

Variables

const ProbRange ff_xface_probranges_per_level [4][3]
 
const ProbRange ff_xface_probranges_2x2 [16]
 

Detailed Description

X-Face common definitions.