gst: utils: Add StreamConfiguration helpers
This adds helpers to deal with the conversion from StreamConfiguration to caps and vice-versa. This is needed to implement caps negotiation. 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
e5f4398c19
commit
bd0c2df110
2 changed files with 67 additions and 0 deletions
|
@ -15,6 +15,9 @@
|
|||
#include <libcamera/stream.h>
|
||||
|
||||
GstCaps *gst_libcamera_stream_formats_to_caps(const libcamera::StreamFormats &formats);
|
||||
GstCaps *gst_libcamera_stream_configuration_to_caps(const libcamera::StreamConfiguration &stream_cfg);
|
||||
void gst_libcamera_configure_stream_from_caps(libcamera::StreamConfiguration &stream_cfg,
|
||||
GstCaps *caps);
|
||||
|
||||
/**
|
||||
* \class GLibLocker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue