mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 23:39:44 +03:00
gst: Add getters for Stream and FrameBuffer
This adds getters on pad/pool/allocator so that we can retrieve the Stream or FrameBuffer. Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
6d0cf98bb1
commit
db50b1072a
6 changed files with 50 additions and 0 deletions
|
@ -243,3 +243,11 @@ gst_libcamera_allocator_get_pool_size(GstLibcameraAllocator *self,
|
|||
|
||||
return pool->length;
|
||||
}
|
||||
|
||||
FrameBuffer *
|
||||
gst_libcamera_memory_get_frame_buffer(GstMemory *mem)
|
||||
{
|
||||
auto *frame = reinterpret_cast<FrameWrap *>(gst_mini_object_get_qdata(GST_MINI_OBJECT_CAST(mem),
|
||||
FrameWrap::getQuark()));
|
||||
return frame->buffer_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue