Skip to content
Snippets Groups Projects
Commit a66d5620 authored by Hyunjun Ko's avatar Hyunjun Ko Committed by Sreerenj Balachandran
Browse files

msdkdec: use bufferpool

1\ In decide_allocation, it makes its own msdk bufferpool.
  - If downstream supports video meta, it just replace it with the msdk
bufferpool.
  - If not, it uses the msdk bufferpool as a side pool, which will be
decoded into.
    and will copy it to downstream's bufferpool.

2\ Decide if using video memory or system memory.
  - This is not completed in this patch.
  - It might be decided in update_src_caps.
  - But tested for both system memory and video memory cases.

https://bugzilla.gnome.org/show_bug.cgi?id=790752
parent 580a52ec
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -65,15 +65,19 @@ struct _GstMsdkDec
GstVideoInfo output_info;
GstBufferPool *pool;
GstVideoInfo pool_info;
mfxFrameAllocResponse alloc_resp;
gboolean use_video_memory;
/* MFX context */
GstMsdkContext *context;
mfxVideoParam param;
GPtrArray *extra_params;
GArray *surfaces;
GArray *tasks;
guint next_task;
GList *decoded_msdk_surfaces;
GList *locked_buffer;
/* element properties */
gboolean hardware;
guint async_depth;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment