Go to the documentation of this file.
27 const uint8_t *
b = p->
buf;
29 int width = bytestream_get_be16(&
b);
30 int height = bytestream_get_be16(&
b);
33 int bpp = bytestream_get_be16(&
b);
39 if (bpp != 24 && bpp != 8)
42 for (y=0; y<2 && y<
height; y++) {
43 for (x=0; x<
width; ) {
45 if (count == 0 || x + count >
width)
static int alias_pix_read_probe(const AVProbeData *p)
int buf_size
Size of buf except extra allocated bytes.
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.
const AVInputFormat ff_image2_alias_pix_demuxer
#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)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
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 const AVClass image2_alias_pix_class
int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)