How do we can implement the GstBufferPool - In Gstreamer Custom plugin
I having a GstPipeline where two custom plugin A (upstream) B (Downstream)
are implemented as a pass through elements.
* RTSP ->dec -> A ->B -> videosink. // working fine as a pass through
*Requirement*:- My upstream custom element 'A' will fetch a signal video
frame from decoder and it will crop and procedure multiple frames those will
be consumed or pass to the downstream element 'B' The B element will mix all
these frames and will give single frame to videosink.
To achieve this implementation I has the GstBufferPool concept in gstreamer
and I hope this concept can be used for my requirement. The link is given
Below are the doubt I have in order to implement the same.
1- How do add the croped Gstbuffer to the GstBufferPool inorder to get it
back in the downstream element.
2- How do I can share the Pool configuration to the downstream element ('B')
in order to acquire the Gstbuffer -gst_buffer_pool_acquire_buffer()
It will be very much helpful for me if anyone can share some useful
reference link where the explanation is there along with some reference code
or anyone can share pseudo code for the same would be great great. thank you