44 for(; p<end - strlen(key); p++) {
45 if (!memcmp(p, key, strlen(key)))
54 int64_t ret = strtol(p, &eptr, 10);
65 int ret, linesize, i, j;
85 next = memchr(ptr,
'{', avpkt->
size);
87 next = memchr(ptr,
'(', avpkt->
size);
92 linesize = (avctx->
width + 7) / 8;
93 for (i = 0; i < avctx->
height; i++) {
95 for (j = 0; j < linesize; j++) {
98 while (ptr < end && *ptr !=
'x' && *ptr !=
'$')
105 val = (val << 4) +
convert(*ptr++);
111 val = (val << 4) +
convert(*ptr++);
116 "Unexpected data at %.8s.\n", ptr);
const char const char void * val
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
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.
const uint8_t ff_reverse[256]
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
static av_cold int end(AVCodecContext *avctx)
static int xbm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
const char * name
Name of the codec implementation.
enum AVPictureType pict_type
Picture type of the frame.
int width
picture width / height.
static int convert(uint8_t x)
Libavcodec external API header.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
main external API structure.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
static int parse_str_int(const uint8_t *p, int len, const uint8_t *key)
static av_const int av_isxdigit(int c)
Locale-independent conversion of ASCII isxdigit.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
common internal api header.
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
int key_frame
1 -> keyframe, 0-> not
This structure stores compressed data.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.