62 if (
w & 1) bitmap[0] = 1;
63 if (
w & 2) bitmap[1] = 1;
98 "Size value %dx%d not supported, only accepts a size of %dx%d\n",
112 void *
data,
int *got_frame,
126 for (
i = 0, k = 0;
i < avpkt->
size && avpkt->
data[
i];
i++) {
135 "Buffer is longer than expected, truncating at byte %d\n",
i);
Libavcodec external API header.
static av_cold int init(AVCodecContext *avctx)
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
#define AV_LOG_WARNING
Something somehow does not look correct.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static enum AVPixelFormat pix_fmts[]
AVPixelFormat
Pixel format.
@ AV_PIX_FMT_MONOWHITE
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb.
main external API structure.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int width
picture width / height.
const char * name
Name of the codec implementation.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
This structure stores compressed data.
uint8_t bitmap[XFACE_PIXELS]
image used internally for decoding
static const uint8_t offset[127][2]
void ff_xface_generate_face(uint8_t *dst, uint8_t *const src)
const ProbRange ff_xface_probranges_per_level[4][3]
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_add(BigInt *b, uint8_t a)
Add a to b storing the result in b.
void ff_big_mul(BigInt *b, uint8_t a)
Multiply a by b storing the result in b.
const ProbRange ff_xface_probranges_2x2[16]
X-Face common definitions.
#define XFACE_FIRST_PRINT
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 int pop_integer(BigInt *b, const ProbRange *pranges)
static av_cold int xface_decode_init(AVCodecContext *avctx)
static int xface_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)