29 int width = bytestream_get_be16(&b);
30 int height = bytestream_get_be16(&b);
31 av_unused int ox = bytestream_get_be16(&b);
32 av_unused int oy = bytestream_get_be16(&b);
33 int bpp = bytestream_get_be16(&b);
36 if (!width || !height)
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)
72 .priv_class = &image2_alias_pix_class,
#define LIBAVUTIL_VERSION_INT
AVInputFormat ff_image2_alias_pix_demuxer
const AVOption ff_img_options[]
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 av_cold int end(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
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.
static int read_header(FFV1Context *f)
int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
BYTE int const BYTE int int int height
Describe the class of an AVClass context structure.
This structure contains the data a format has to probe a file.
static const AVClass image2_alias_pix_class
static int alias_pix_read_probe(AVProbeData *p)
int ff_img_read_header(AVFormatContext *s1)