Go to the documentation of this file.
22 #include "config_components.h"
28 #if CONFIG_MJPEG_2000_DEMUXER
31 const uint8_t *
b = p->
buf;
32 int i, marker, marker_size;
33 int frames = 0, invalid = 0;
38 if (marker_size + i < p->buf_size - 4) {
39 marker =
AV_RB8(
b+4+marker_size);
48 if (invalid*4 + 1 <
frames) {
49 if (invalid == 0 &&
frames > 2)
int buf_size
Size of buf except extra allocated bytes.
if it could not because there are no more frames
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
This structure contains the data a format has to probe a file.
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
#define i(width, name, range_min, range_max)
#define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)
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_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_WB16 unsigned int_TMPL AV_RB8
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_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16