38 if ((code & 0xffff0000) == 0x10000) {
39 int gn= (code>>12)&0xf;
42 if(gn != next_gn) invalid_psc++;
46 static const int lut[16]={1,2,3,4,5,6,7,8,9,10,11,12,0,16,16,16};
49 static const int lut[16]={1,3,16,5,16,0,16,16,16,16,16,16,16,16,16,16};
55 if(valid_psc > 2*invalid_psc + 6){
57 }
else if(valid_psc > 2*invalid_psc + 2)
static int shift(int a, int b)
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)
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
int av_log2_16bit(unsigned v)
bitstream reader API header.
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.
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_RB64