summaryrefslogtreecommitdiff
path: root/src/gen75_mfc.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-03-11 10:44:56 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-03-15 15:45:28 +0800
commit5fd61ebcd8621c095995e39cee1abda6b7d1b235 (patch)
treed64b464bc16be994bba3ff6a082623dfd1ac7f5a /src/gen75_mfc.c
parentb391d699b35e6f64f9a9bd82b02fdcf845a6adf3 (diff)
downloadlibva-intel-driver-5fd61ebcd8621c095995e39cee1abda6b7d1b235.tar.gz
libva-intel-driver-5fd61ebcd8621c095995e39cee1abda6b7d1b235.tar.bz2
libva-intel-driver-5fd61ebcd8621c095995e39cee1abda6b7d1b235.zip
Encoder: directly use the objects for the reconstructed picture and coded buffer
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/gen75_mfc.c')
-rw-r--r--src/gen75_mfc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c
index 5da00de..2674aef 100644
--- a/src/gen75_mfc.c
+++ b/src/gen75_mfc.c
@@ -2411,8 +2411,7 @@ intel_mfc_mpeg2_prepare(VADriverContextP ctx,
int i;
/* reconstructed surface */
- obj_surface = SURFACE(pic_param->reconstructed_picture);
- assert(obj_surface);
+ obj_surface = encode_state->reconstructed_object;
i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('N','V','1','2'), SUBSAMPLE_YUV420);
mfc_context->pre_deblocking_output.bo = obj_surface->bo;
dri_bo_reference(mfc_context->pre_deblocking_output.bo);
@@ -2456,9 +2455,8 @@ intel_mfc_mpeg2_prepare(VADriverContextP ctx,
dri_bo_reference(mfc_context->uncompressed_picture_source.bo);
/* coded buffer */
- obj_buffer = BUFFER(pic_param->coded_buf);
+ obj_buffer = encode_state->coded_buf_object;
bo = obj_buffer->buffer_store->bo;
- assert(bo);
mfc_context->mfc_indirect_pak_bse_object.bo = bo;
mfc_context->mfc_indirect_pak_bse_object.offset = I965_CODEDBUFFER_HEADER_SIZE;
mfc_context->mfc_indirect_pak_bse_object.end_offset = ALIGN(obj_buffer->size_element - 0x1000, 0x1000);