28 const uint8_t *
b = p->buf;
29 const uint8_t *end =
b + p->buf_size;
30 int width = bytestream_get_be16(&
b);
31 int height = bytestream_get_be16(&
b);
34 int bpp = bytestream_get_be16(&
b);
40 if (bpp != 24 && bpp != 8)
43 for (y=0; y<2 && y<
height; y++) {
44 for (x=0; x<
width; ) {
46 if (count == 0 || x + count >
width)
59 .class_name =
"alias_pix demuxer",
66 .p.name =
"alias_pix",
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
static int read_header(FFV1Context *f, RangeCoder *c)
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
const AVOption ff_img_options[]
int ff_img_read_header(AVFormatContext *s1)
int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
static const AVClass image2_alias_pix_class
static int alias_pix_read_probe(const AVProbeData *p)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Describe the class of an AVClass context structure.
This structure contains the data a format has to probe a file.