summaryrefslogtreecommitdiff
path: root/src/xvmc/xvmc_vld.c
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2009-03-26 15:24:29 +0800
committerZou Nan hai <nanhai.zou@intel.com>2009-03-26 15:24:29 +0800
commitdefa6971c6b639ab72d9d4c85c4607d5f852b2b0 (patch)
tree7a6cc8145e356ae99314e56dd4b0811285f7925a /src/xvmc/xvmc_vld.c
parentfe96e517699e37cc990a14dfb48b9611a02254ed (diff)
enable UV half pixel
Diffstat (limited to 'src/xvmc/xvmc_vld.c')
-rw-r--r--src/xvmc/xvmc_vld.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xvmc/xvmc_vld.c b/src/xvmc/xvmc_vld.c
index d563e0e3..4f958422 100644
--- a/src/xvmc/xvmc_vld.c
+++ b/src/xvmc/xvmc_vld.c
@@ -190,8 +190,7 @@ static void calc_state_layout()
static void *offset_to_ptr(unsigned long offset)
{
- return media_state.state_ptr +
- (offset - media_state.state_base);
+ return media_state.state_ptr + (offset - media_state.state_base);
}
static void vfe_state()
@@ -532,7 +531,6 @@ static void vld_send_media_object(unsigned long slice_offset,
OUT_BATCH(q_scale_code<<24);
ADVANCE_BATCH();
}
-
static Status put_slice2(Display *display, XvMCContext *context,
unsigned char *slice, int nbytes, int sliceCode)
{
@@ -557,7 +555,8 @@ static Status put_slice2(Display *display, XvMCContext *context,
urb_layout();
cs_urb_layout();
cs_buffer();
- vld_send_media_object(i965_ctx->slice.offset, nbytes,
+ vld_send_media_object(i965_ctx->slice.offset,
+ nbytes,
0, mb_row, 6, 127, q_scale_code);
intelFlushBatch(TRUE);
UNLOCK_HARDWARE(intel_ctx->hw_context);