Mercurial > libavcodec.hg
comparison dvdata.h @ 6266:6e160e75eb9c libavcodec
some const
| author | michael |
|---|---|
| date | Fri, 01 Feb 2008 15:08:55 +0000 |
| parents | 92e04b74a635 |
| children | f7cbb7733146 |
comparison
equal
deleted
inserted
replaced
| 6265:abe584ca935c | 6266:6e160e75eb9c |
|---|---|
| 2659 #define DV_PROFILE_BYTES (6*80) /* 6 DIF blocks */ | 2659 #define DV_PROFILE_BYTES (6*80) /* 6 DIF blocks */ |
| 2660 | 2660 |
| 2661 /* largest possible DV frame, in bytes (PAL 50Mbps) */ | 2661 /* largest possible DV frame, in bytes (PAL 50Mbps) */ |
| 2662 #define DV_MAX_FRAME_SIZE 288000 | 2662 #define DV_MAX_FRAME_SIZE 288000 |
| 2663 | 2663 |
| 2664 static inline const DVprofile* dv_frame_profile(uint8_t* frame) | 2664 static inline const DVprofile* dv_frame_profile(const uint8_t* frame) |
| 2665 { | 2665 { |
| 2666 if ((frame[3] & 0x80) == 0) { /* DSF flag */ | 2666 if ((frame[3] & 0x80) == 0) { /* DSF flag */ |
| 2667 /* it's an NTSC format */ | 2667 /* it's an NTSC format */ |
| 2668 if ((frame[80*5 + 48 + 3] & 0x4) && (frame[80*5 + 48] == dv_video_source)) { /* 4:2:2 sampling */ | 2668 if ((frame[80*5 + 48 + 3] & 0x4) && (frame[80*5 + 48] == dv_video_source)) { /* 4:2:2 sampling */ |
| 2669 return &dv_profiles[3]; /* NTSC 50Mbps */ | 2669 return &dv_profiles[3]; /* NTSC 50Mbps */ |
