Go to the documentation of this file.
27 #ifndef AVCODEC_XFACE_H
28 #define AVCODEC_XFACE_H
33 #define XFACE_WIDTH 48
34 #define XFACE_HEIGHT 48
35 #define XFACE_PIXELS (XFACE_WIDTH * XFACE_HEIGHT)
40 #define XFACE_FIRST_PRINT '!'
41 #define XFACE_LAST_PRINT '~'
42 #define XFACE_PRINTS (XFACE_LAST_PRINT - XFACE_FIRST_PRINT + 1)
50 #define XFACE_MAX_DIGITS 666
52 #define XFACE_BITSPERWORD 8
53 #define XFACE_WORDCARRY (1 << XFACE_BITSPERWORD)
54 #define XFACE_WORDMASK (XFACE_WORDCARRY - 1)
57 #define XFACE_MAX_WORDS 546
void ff_big_add(BigInt *b, uint8_t a)
Add a to b storing the result in b.
const ProbRange ff_xface_probranges_2x2[16]
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.
const ProbRange ff_xface_probranges_per_level[4][3]
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
void ff_xface_generate_face(uint8_t *dst, uint8_t *const src)