I having a two custom plugin where the video frame is captures by using the below function.
gst_custom_transform_frame_ip (GstVideoFilter * filter, GstVideoFrame * frame)
In this video frame i wanted to add meta data in Tx side & also wanted to extract the same meta data once i get the frame in Rx side.
Below are the function I am using to add & get the meta data.
GstMeta meta = gst_buffer_add_video_crop_meta( GstBuffer * Tx_buffer) // Add the meta data in TX side.
GstMeta meta = gst_buffer_get_video_crop_meta (GstBuffer *Rx_buffer); // Rx side.
As you can see both the function are expecting type **GstBuffer buffer instead of GstVideoFrame
Can anyone helps me on how do i can convert the GstVideoFrame buffer to GstBuffer & vise versa. Very new in this environment any input will be highly appreciated Ref. link https://gstreamer.freedesktop.org/documentation/plugin-development/advanced/allocation.html?gi-language=c#gstmeta Thanks in advance,
Aucun commentaire:
Enregistrer un commentaire