Go to the documentation of this file.
28 const uint8_t *
b = p->
buf;
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)
66 .
p.
name =
"alias_pix",
static int alias_pix_read_probe(const AVProbeData *p)
int buf_size
Size of buf except extra allocated bytes.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
#define LIBAVUTIL_VERSION_INT
static int read_header(FFV1Context *f)
Describe the class of an AVClass context structure.
const AVOption ff_img_options[]
const char * av_default_item_name(void *ptr)
Return the context name.
This structure contains the data a format has to probe a file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
int ff_img_read_header(AVFormatContext *s1)
const FFInputFormat ff_image2_alias_pix_demuxer
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static int read_probe(const AVProbeData *p)
static const AVClass image2_alias_pix_class
int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)