FFmpeg
Macros | Functions | Variables
xface.c File Reference

X-Face common data and utilities definition. More...

#include "libavutil/avassert.h"
#include "xface.h"

Macros

#define GEN(table)   dst[h] ^= (table[k>>3]>>(7-(k&7)))&1
 

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 data and utilities definition.

Variable Documentation

§ ff_xface_probranges_2x2

const ProbRange ff_xface_probranges_2x2[16]
Initial value:
= {
{ 0, 0}, {38, 0}, {38, 38}, {13, 152},
{38, 76}, {13, 165}, {13, 178}, { 6, 230},
{38, 114}, {13, 191}, {13, 204}, { 6, 236},
{13, 217}, { 6, 242}, { 5, 248}, { 3, 253},
}

§ ff_xface_probranges_per_level

const ProbRange ff_xface_probranges_per_level[4][3]
Initial value:
= {
{ { 1, 255}, {251, 0}, { 4, 251} },
{ { 1, 255}, {200, 0}, { 55, 200} },
{ { 33, 223}, {159, 0}, { 64, 159} },
{ {131, 0}, { 0, 0}, {125, 131} },
}