27 static const uint8_t brender_magic[16] = {
28 0,0,0,0x12,0,0,0,8,0,0,0,2,0,0,0,2
31 if (memcmp(p->
buf, brender_magic,
sizeof(brender_magic)))
49 .
name =
"brender_pix",
56 .priv_class = &image2_brender_pix_class,
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
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...
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
static int brender_read_probe(AVProbeData *p)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
AVInputFormat ff_image2_brender_pix_demuxer
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)
Describe the class of an AVClass context structure.
This structure contains the data a format has to probe a file.
static const AVClass image2_brender_pix_class
int ff_img_read_header(AVFormatContext *s1)