comparison vaapi_vc1.c @ 12024:fdafbcef52f5 libavcodec

Fix grammar errors in documentation
author mru
date Wed, 30 Jun 2010 15:38:06 +0000
parents 8a4984c5cacc
children
comparison
equal deleted inserted replaced
12023:c7455450364d 12024:fdafbcef52f5
22 22
23 #include "vaapi_internal.h" 23 #include "vaapi_internal.h"
24 #include "vc1.h" 24 #include "vc1.h"
25 #include "vc1data.h" 25 #include "vc1data.h"
26 26
27 /** Translates FFmpeg MV modes to VA API */ 27 /** Translate FFmpeg MV modes to VA API */
28 static int get_VAMvModeVC1(enum MVModes mv_mode) 28 static int get_VAMvModeVC1(enum MVModes mv_mode)
29 { 29 {
30 switch (mv_mode) { 30 switch (mv_mode) {
31 case MV_PMODE_1MV_HPEL_BILIN: return VAMvMode1MvHalfPelBilinear; 31 case MV_PMODE_1MV_HPEL_BILIN: return VAMvMode1MvHalfPelBilinear;
32 case MV_PMODE_1MV: return VAMvMode1Mv; 32 case MV_PMODE_1MV: return VAMvMode1Mv;
35 case MV_PMODE_INTENSITY_COMP: return VAMvModeIntensityCompensation; 35 case MV_PMODE_INTENSITY_COMP: return VAMvModeIntensityCompensation;
36 } 36 }
37 return 0; 37 return 0;
38 } 38 }
39 39
40 /** Checks whether the MVTYPEMB bitplane is present */ 40 /** Check whether the MVTYPEMB bitplane is present */
41 static inline int vc1_has_MVTYPEMB_bitplane(VC1Context *v) 41 static inline int vc1_has_MVTYPEMB_bitplane(VC1Context *v)
42 { 42 {
43 if (v->mv_type_is_raw) 43 if (v->mv_type_is_raw)
44 return 0; 44 return 0;
45 return (v->s.pict_type == FF_P_TYPE && 45 return (v->s.pict_type == FF_P_TYPE &&
46 (v->mv_mode == MV_PMODE_MIXED_MV || 46 (v->mv_mode == MV_PMODE_MIXED_MV ||
47 (v->mv_mode == MV_PMODE_INTENSITY_COMP && 47 (v->mv_mode == MV_PMODE_INTENSITY_COMP &&
48 v->mv_mode2 == MV_PMODE_MIXED_MV))); 48 v->mv_mode2 == MV_PMODE_MIXED_MV)));
49 } 49 }
50 50
51 /** Checks whether the SKIPMB bitplane is present */ 51 /** Check whether the SKIPMB bitplane is present */
52 static inline int vc1_has_SKIPMB_bitplane(VC1Context *v) 52 static inline int vc1_has_SKIPMB_bitplane(VC1Context *v)
53 { 53 {
54 if (v->skip_is_raw) 54 if (v->skip_is_raw)
55 return 0; 55 return 0;
56 return (v->s.pict_type == FF_P_TYPE || 56 return (v->s.pict_type == FF_P_TYPE ||
57 (v->s.pict_type == FF_B_TYPE && !v->bi_type)); 57 (v->s.pict_type == FF_B_TYPE && !v->bi_type));
58 } 58 }
59 59
60 /** Checks whether the DIRECTMB bitplane is present */ 60 /** Check whether the DIRECTMB bitplane is present */
61 static inline int vc1_has_DIRECTMB_bitplane(VC1Context *v) 61 static inline int vc1_has_DIRECTMB_bitplane(VC1Context *v)
62 { 62 {
63 if (v->dmb_is_raw) 63 if (v->dmb_is_raw)
64 return 0; 64 return 0;
65 return v->s.pict_type == FF_B_TYPE && !v->bi_type; 65 return v->s.pict_type == FF_B_TYPE && !v->bi_type;
66 } 66 }
67 67
68 /** Checks whether the ACPRED bitplane is present */ 68 /** Check whether the ACPRED bitplane is present */
69 static inline int vc1_has_ACPRED_bitplane(VC1Context *v) 69 static inline int vc1_has_ACPRED_bitplane(VC1Context *v)
70 { 70 {
71 if (v->acpred_is_raw) 71 if (v->acpred_is_raw)
72 return 0; 72 return 0;
73 return (v->profile == PROFILE_ADVANCED && 73 return (v->profile == PROFILE_ADVANCED &&