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)
69 int ret, linesize,
i, j;
72 const uint8_t *end, *ptr = avpkt->
data;
92 next = memchr(ptr,
'{', avpkt->
size);
94 next = memchr(ptr,
'(', avpkt->
size);
99 linesize = (avctx->
width + 7) / 8;
102 for (j = 0; j < linesize; j++) {
105 while (ptr < end && *ptr !=
'x' && *ptr !=
'$')
127 "Unexpected data at %.8s.\n", ptr);
const FFCodec ff_xbm_decoder
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.
int flags
Frame flags, a combination of AV_FRAME_FLAGS.
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.
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)
AVCodec p
The public AVCodec.
enum AVDiscard skip_frame
Skip decoding for selected frames.
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.
#define AV_FRAME_FLAG_KEY
A flag to mark frames that are keyframes.
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
@ AVDISCARD_ALL
discard all
@ AV_PICTURE_TYPE_I
Intra.
static int xbm_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
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 FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
The decoder extracts and fills its parameters even if the frame is skipped due to the skip_frame sett...
#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.
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.