summaryrefslogtreecommitdiff
path: root/libavcodec/vc1.h
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-11-26 13:28:48 +0100
committerLuca Barbato <lu_zero@gentoo.org>2011-11-28 00:40:22 +0100
commit1f948745c3cbe45c4ccd5d8996fc885d826bf3ff (patch)
tree8b19bd91c0fd5b3399d61121a0cf01ac132722a5 /libavcodec/vc1.h
parent9270b8a3d1dd5bc9adbf77ed67a00aa7426737bb (diff)
vc1: use an enum for Frame Coding Mode
Document it a little and possibly fix a bug in dxva2_vc1.
Diffstat (limited to 'libavcodec/vc1.h')
-rw-r--r--libavcodec/vc1.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libavcodec/vc1.h b/libavcodec/vc1.h
index ac65348352..6096077660 100644
--- a/libavcodec/vc1.h
+++ b/libavcodec/vc1.h
@@ -161,6 +161,16 @@ enum COTypes {
};
//@}
+/**
+ * FCM Frame Coding Mode
+ * @note some content might be marked interlaced
+ * but have fcm set to 0 as well (e.g. HD-DVD)
+ */
+enum FrameCodingMode {
+ PROGRESSIVE = 0, ///< in the bitstream is reported as 00b
+ ILACE_FRAME, ///< in the bitstream is reported as 10b
+ ILACE_FIELD ///< in the bitstream is reported as 11b
+};
/** The VC1 Context
* @todo Change size wherever another size is more efficient
@@ -296,7 +306,7 @@ typedef struct VC1Context{
/** Frame decoding info for Advanced profile */
//@{
- uint8_t fcm; ///< 0->Progressive, 2->Frame-Interlace, 3->Field-Interlace
+ enum FrameCodingMode fcm;
uint8_t numpanscanwin;
uint8_t tfcntr;
uint8_t rptfrm, tff, rff;