• 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ónfc1cecc71353cbe7ebbd74b2476712b4712cae51 (tree)
Tiempo2014-12-14 01:42:17
AutorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

HEVC: gen9_hcpd_bsd_object()

Issue HCP_BSD_OBJECT to start decoding

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit bb11760356acf67a620bec96ae4b1b9327eec53b)

Cambiar Resumen

Diferencia incremental

--- a/src/gen9_mfd.c
+++ b/src/gen9_mfd.c
@@ -822,6 +822,23 @@ gen9_hcpd_slice_state(VADriverContextP ctx,
822822 ADVANCE_BCS_BATCH(batch);
823823 }
824824
825+static void
826+gen9_hcpd_bsd_object(VADriverContextP ctx,
827+ VASliceParameterBufferHEVC *slice_param,
828+ struct gen9_hcpd_context *gen9_hcpd_context)
829+{
830+ struct intel_batchbuffer *batch = gen9_hcpd_context->base.batch;
831+
832+ BEGIN_BCS_BATCH(batch, 3);
833+
834+ OUT_BCS_BATCH(batch, HCP_BSD_OBJECT | (3 - 2));
835+
836+ OUT_BCS_BATCH(batch, slice_param->slice_data_size);
837+ OUT_BCS_BATCH(batch, slice_param->slice_data_offset);
838+
839+ ADVANCE_BCS_BATCH(batch);
840+}
841+
825842 static VAStatus
826843 gen9_hcpd_hevc_decode_picture(VADriverContextP ctx,
827844 struct decode_state *decode_state,
@@ -874,6 +891,7 @@ gen9_hcpd_hevc_decode_picture(VADriverContextP ctx,
874891 gen9_hcpd_slice_state(ctx, pic_param, slice_param, next_slice_param, gen9_hcpd_context);
875892 gen9_hcpd_ref_idx_state(ctx, pic_param, slice_param, gen9_hcpd_context);
876893 gen9_hcpd_weightoffset_state(ctx, slice_param, gen9_hcpd_context);
894+ gen9_hcpd_bsd_object(ctx, slice_param, gen9_hcpd_context);
877895 slice_param++;
878896 }
879897 }