GNOME Bugzilla – Bug 773165
videodecoder: add _allocate_output_frame_with_params() to pass custom GstBufferPoolAcquireParams [API]
Last modified: 2016-11-04 16:38:40 UTC
It add a 3th argument GstBufferPoolAcquireParams to pass to gst_buffer_pool_acquire_buffer. If a user subclass GstBufferPoolAcquireParams, this allow to pass an updated param to the underlying buffer pool at each gst_video_decoder_allocate_output_frame_full call. I need that in gstvaapidecode to pass the current "surface" (not exaclty but to simplify) to the pool, when it calls "gst_video_decoder_allocate_output_frame(_full)" Patch will follow.
Created attachment 337948 [details] [review] video: add gst_video_decoder_allocate_output_frame_full
Review of attachment 337948 [details] [review]: it makes sense to me ::: gst-libs/gst/video/gstvideodecoder.c @@ +3966,3 @@ + */ +GstFlowReturn +gst_video_decoder_allocate_output_frame_full (GstVideoDecoder * Naming new API makes me nervous. What about gst_video_decoder_allocate_output_frame_with_params()?
In reply to Víctor Manuel Jáquez Leal from comment #2) > +gst_video_decoder_allocate_output_frame_full (GstVideoDecoder * > > What about gst_video_decoder_allocate_output_frame_with_params()? Good idea, will update the patch. Thx.
Comment on attachment 337948 [details] [review] video: add gst_video_decoder_allocate_output_frame_full Generally makes sense to me too. It's "Since: 1.12" though, we only put stable versions there
Created attachment 339077 [details] [review] video: add gst_video_decoder_allocate_output_frame_with_params rename and fix version
Go ahead :)
commit 3bf893e12aa1161944f4fb1a1da7a1e14af92fdb Author: Julien Isorce <j.isorce@samsung.com> Date: Fri Oct 14 15:14:14 2016 +0100 video: add gst_video_decoder_allocate_output_frame_with_params It adds a third argument to pass GstBufferPoolAcquireParams to gst_buffer_pool_acquire_buffer. If a user subclasses GstBufferPoolAcquireParams, this allows to pass an updated param to the underlying buffer pool at each gst_video_decoder_allocate_output_frame_with_params call. https://bugzilla.gnome.org/show_bug.cgi?id=773165