encode: sequence params should be reusable across frames
authorHaitao Huang <haitao.huang@intel.com>
Wed, 15 Aug 2012 17:43:56 +0000 (12:43 -0500)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 17 Aug 2012 00:57:01 +0000 (08:57 +0800)
Client should not be required to send seq for each picture.

Change-Id: I4f24ac7dd7ad2d0657a641fb82793c9bae665694

src/i965_drv_video.c

index 8c913a5..d112d24 100755 (executable)
@@ -1496,7 +1496,6 @@ i965_BeginPicture(VADriverContextP ctx,
         obj_context->codec_state.proc.current_render_target = render_target;
     } else if (obj_context->codec_type == CODEC_ENC) {
         i965_release_buffer_store(&obj_context->codec_state.encode.pic_param);
-        i965_release_buffer_store(&obj_context->codec_state.encode.seq_param);
 
         for (i = 0; i < obj_context->codec_state.encode.num_slice_params; i++) {
             i965_release_buffer_store(&obj_context->codec_state.encode.slice_params[i]);
@@ -1506,7 +1505,6 @@ i965_BeginPicture(VADriverContextP ctx,
 
         /* ext */
         i965_release_buffer_store(&obj_context->codec_state.encode.pic_param_ext);
-        i965_release_buffer_store(&obj_context->codec_state.encode.seq_param_ext);
 
         for (i = 0; i < ARRAY_ELEMS(obj_context->codec_state.encode.packed_header_param); i++)
             i965_release_buffer_store(&obj_context->codec_state.encode.packed_header_param[i]);