• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine 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

Revision6dc5b8bc2ba06e2dc48ee1277c250ca579058d21 (tree)
Zeit2014-12-14 01:42:17
AutorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

HEVC: Add the frame store array

The function to update the frame store index will be added later

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

Ändern Zusammenfassung

Diff

--- a/src/gen9_mfd.c
+++ b/src/gen9_mfd.c
@@ -253,6 +253,7 @@ gen9_hcpd_context_init(VADriverContextP ctx, struct object_config *object_config
253253 {
254254 struct intel_driver_data *intel = intel_driver_data(ctx);
255255 struct gen9_hcpd_context *gen9_hcpd_context = calloc(1, sizeof(struct gen9_hcpd_context));
256+ int i;
256257
257258 if (!gen9_hcpd_context)
258259 return NULL;
@@ -261,6 +262,12 @@ gen9_hcpd_context_init(VADriverContextP ctx, struct object_config *object_config
261262 gen9_hcpd_context->base.run = gen9_hcpd_decode_picture;
262263 gen9_hcpd_context->base.batch = intel_batchbuffer_new(intel, I915_EXEC_VEBOX, 0);
263264
265+ for (i = 0; i < ARRAY_ELEMS(gen9_hcpd_context->reference_surfaces); i++) {
266+ gen9_hcpd_context->reference_surfaces[i].surface_id = VA_INVALID_ID;
267+ gen9_hcpd_context->reference_surfaces[i].frame_store_id = -1;
268+ gen9_hcpd_context->reference_surfaces[i].obj_surface = NULL;
269+ }
270+
264271 return (struct hw_context *)gen9_hcpd_context;
265272 }
266273
--- a/src/gen9_mfd.h
+++ b/src/gen9_mfd.h
@@ -41,6 +41,8 @@ struct gen9_hcpd_context
4141 {
4242 struct hw_context base;
4343
44+ GenFrameStore reference_surfaces[MAX_GEN_HCP_REFERENCE_FRAMES];
45+
4446 uint16_t picture_width_in_pixels;
4547 uint16_t picture_height_in_pixels;
4648 uint16_t picture_width_in_ctbs;