diff options
author | Zou Nan hai <nanhai.zou@intel.com> | 2009-03-26 15:24:29 +0800 |
---|---|---|
committer | Zou Nan hai <nanhai.zou@intel.com> | 2009-03-26 15:24:29 +0800 |
commit | defa6971c6b639ab72d9d4c85c4607d5f852b2b0 (patch) | |
tree | 7a6cc8145e356ae99314e56dd4b0811285f7925a /src/xvmc/xvmc_vld.c | |
parent | fe96e517699e37cc990a14dfb48b9611a02254ed (diff) |
enable UV half pixel
Diffstat (limited to 'src/xvmc/xvmc_vld.c')
-rw-r--r-- | src/xvmc/xvmc_vld.c | 7 |
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); |