28 #define ISSQH(x) ((x) == 0xB0 )
29 #define ISEND(x) ((x) == 0xB1 )
30 #define ISPIC(x) ((x) == 0xB3 || (x) == 0xB6)
31 #define ISUNIT(x) ( ISSQH(x) || ISEND(x) || (x) == 0xB2 || ISPIC(x) || (x) == 0xB5 || (x) == 0xB7 )
32 #define ISAVS2(x) ((x) == 0x20 || (x) == 0x22 || (x) == 0x30 || (x) == 0x32 )
36 uint32_t code= -1, hds=0, pic=0, seq=0;
46 if ((code & 0xffffff00) == 0x100) {
56 }
else if (
ISPIC(state)) {
58 }
else if (
ISEND(state)) {
64 if (seq && hds >= 21 && pic){
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)
static av_cold int end(AVCodecContext *avctx)
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
const uint8_t * avpriv_find_start_code(const uint8_t *p, const uint8_t *end, uint32_t *state)
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.
common internal api header.
static int avs2_probe(AVProbeData *p)