• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/intel-driver


Commit MetaInfo

Revisión37d1ee43a223766164ccc1de9079cac27c44e8f0 (tree)
Tiempo2015-04-29 17:01:50
AutorZhong Li <zhong.li@inte...>
CommiterXiang, Haihao

Log Message

VP8 HWEnc: Alloc larger memory for internal buffer

It is to prevent the internal bitstream buffer overflow when qp is low.

Signed-off-by: Zhong Li <zhong.li@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/src/gen8_mfc.c
+++ b/src/gen8_mfc.c
@@ -3722,9 +3722,9 @@ static void gen8_mfc_vp8_init(VADriverContextP ctx,
37223722 assert(bo);
37233723 mfc_context->vp8_state.frame_header_bo = bo;
37243724
3725- mfc_context->vp8_state.intermediate_buffer_max_size = width_in_mbs * height_in_mbs * 256 * 9;
3725+ mfc_context->vp8_state.intermediate_buffer_max_size = width_in_mbs * height_in_mbs * 384 * 9;
37263726 for(i = 0; i < 8; i++) {
3727- mfc_context->vp8_state.intermediate_partition_offset[i] = width_in_mbs * height_in_mbs * 256 * (i + 1);
3727+ mfc_context->vp8_state.intermediate_partition_offset[i] = width_in_mbs * height_in_mbs * 384 * (i + 1);
37283728 }
37293729 dri_bo_unreference(mfc_context->vp8_state.intermediate_bo);
37303730 bo = dri_bo_alloc(i965->intel.bufmgr,