Go to the documentation of this file.
36 }
else if (x >=
'a') {
39 }
else if (x >=
'A' && x <=
'F')
46 int keylen = strlen(
key);
47 const uint8_t *e = end - keylen;
50 if (!memcmp(p,
key, keylen))
59 int64_t
ret = strtol(p, &eptr, 10);
60 if ((
const uint8_t *)eptr != p)
70 int ret, linesize,
i, j;
73 const uint8_t *end, *ptr = avpkt->
data;
90 next = memchr(ptr,
'{', avpkt->
size);
92 next = memchr(ptr,
'(', avpkt->
size);
97 linesize = (avctx->
width + 7) / 8;
100 for (j = 0; j < linesize; j++) {
103 while (ptr < end && *ptr !=
'x' && *ptr !=
'$')
125 "Unexpected data at %.8s.\n", ptr);
This structure describes decoded (raw) audio or video data.
const uint8_t ff_reverse[256]
@ AV_PIX_FMT_MONOWHITE
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
static int parse_str_int(const uint8_t *p, const uint8_t *end, const uint8_t *key)
const AVCodec ff_xbm_decoder
int key_frame
1 -> keyframe, 0-> not
static int get_nibble(uint8_t x)
static double val(void *priv, double ch)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
@ AV_PICTURE_TYPE_I
Intra.
enum AVPictureType pict_type
Picture type of the frame.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define i(width, name, range_min, range_max)
const char * name
Name of the codec implementation.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
main external API structure.
static int xbm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
int ff_set_dimensions(AVCodecContext *s, int width, int height)
Check that the provided frame dimensions are valid and set them on the codec context.
This structure stores compressed data.
int width
picture width / height.
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
#define AVERROR_INVALIDDATA
Invalid data found when processing input.