msdk: add async depth from each msdk element to GstMsdkContext to be shared
authorHyunjun Ko <zzoon@igalia.com>
Tue, 13 Feb 2018 22:52:14 +0000 (13:52 -0900)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Tue, 13 Feb 2018 22:52:14 +0000 (13:52 -0900)
commit375a50a876f028d967532a84e745fbd38a983299
tree71f7ec67bcf1615e7e5bdab1ab274b1c9e0858c5
parentf2b35abcabeafe5de0bc78bfcde4e5615deb166d
msdk: add async depth from each msdk element to GstMsdkContext to be shared

In case that pipeline is like ".. ! decoder ! encoder ! ..." with using
video memory,
decoder needs to know the async depth of the following msdk element so
that it could
allocate the correct number of video memory.

Otherwise, decoder's memory is exhausted while processing.

https://bugzilla.gnome.org/show_bug.cgi?id=790752
sys/msdk/gstmsdkcontext.c
sys/msdk/gstmsdkcontext.h
sys/msdk/gstmsdkdec.c
sys/msdk/gstmsdkenc.c