summaryrefslogtreecommitdiff
path: root/src/brw_defines.h
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2007-09-19 13:29:31 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-09-19 13:29:31 +0800
commit798448e4641acf241b7cbae0d6c243ae383da9f4 (patch)
treebbe0851932b35135a0c33a9e155faedafc8e8c2a /src/brw_defines.h
parent36b81ba20d20e7b235cb701c5135cbf3f3eedb12 (diff)
Add media state definition on i965
This adds VFE state and interface descriptor struct define.
Diffstat (limited to 'src/brw_defines.h')
-rw-r--r--src/brw_defines.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/brw_defines.h b/src/brw_defines.h
index 93aed544..13cb4396 100644
--- a/src/brw_defines.h
+++ b/src/brw_defines.h
@@ -842,6 +842,30 @@
#define R02_PRIM_END 0x1
#define R02_PRIM_START 0x2
-
+/* media pipeline */
+
+#define BRW_VFE_MODE_GENERIC 0x0
+#define BRW_VFE_MODE_VLD_MPEG2 0x1
+#define BRW_VFE_MODE_IS 0x2
+#define BRW_VFE_MODE_AVC_MC 0x4
+#define BRW_VFE_MODE_AVC_IT 0x7
+#define BRW_VFE_MODE_VC1_IT 0xB
+
+#define BRW_VFE_DEBUG_COUNTER_FREE 0
+#define BRW_VFE_DEBUG_COUNTER_FROZEN 1
+#define BRW_VFE_DEBUG_COUNTER_ONCE 2
+#define BRW_VFE_DEBUG_COUNTER_ALWAYS 3
+
+/* VLD_STATE */
+#define BRW_MPEG_TOP_FIELD 1
+#define BRW_MPEG_BOTTOM_FIELD 2
+#define BRW_MPEG_FRAME 3
+#define BRW_MPEG_QSCALE_LINEAR 0
+#define BRW_MPEG_QSCALE_NONLINEAR 1
+#define BRW_MPEG_ZIGZAG_SCAN 0
+#define BRW_MPEG_ALTER_VERTICAL_SCAN 1
+#define BRW_MPEG_I_PICTURE 1
+#define BRW_MPEG_P_PICTURE 2
+#define BRW_MPEG_B_PICTURE 3
#endif