Mercurial > libavcodec.hg
comparison dvdata.h @ 7614:1afa1171b7b2 libavcodec
Introducing DV_MAX_BPM macro instead of a hardcoded value for the
highest number of blocks per macroblock
author | romansh |
---|---|
date | Tue, 19 Aug 2008 16:00:26 +0000 |
parents | 06c291f42d5f |
children | 290fd3ae1219 |
comparison
equal
deleted
inserted
replaced
7613:ff395fe35161 | 7614:1afa1171b7b2 |
---|---|
2636 #define DV_PROFILE_BYTES (6*80) /* 6 DIF blocks */ | 2636 #define DV_PROFILE_BYTES (6*80) /* 6 DIF blocks */ |
2637 | 2637 |
2638 /* largest possible DV frame, in bytes (PAL 50Mbps) */ | 2638 /* largest possible DV frame, in bytes (PAL 50Mbps) */ |
2639 #define DV_MAX_FRAME_SIZE 288000 | 2639 #define DV_MAX_FRAME_SIZE 288000 |
2640 | 2640 |
2641 /* maximum number of blocks per macroblock in any DV format */ | |
2642 #define DV_MAX_BPM 8 | |
2643 | |
2641 static inline const DVprofile* dv_frame_profile(const uint8_t* frame) | 2644 static inline const DVprofile* dv_frame_profile(const uint8_t* frame) |
2642 { | 2645 { |
2643 if ((frame[3] & 0x80) == 0) { /* DSF flag */ | 2646 if ((frame[3] & 0x80) == 0) { /* DSF flag */ |
2644 /* it's an NTSC format */ | 2647 /* it's an NTSC format */ |
2645 if ((frame[80*5 + 48 + 3] & 0x4) && (frame[80*5 + 48] == dv_video_source)) { /* 4:2:2 sampling */ | 2648 if ((frame[80*5 + 48 + 3] & 0x4) && (frame[80*5 + 48] == dv_video_source)) { /* 4:2:2 sampling */ |