summaryrefslogtreecommitdiff
path: root/src/py/examples/simple-continuous-capture.py
AgeCommit message (Expand)Author
2023-05-30py: Use exceptions instead of returning error codesTomi Valkeinen
2022-08-19py: Switch to non-blocking eventfdTomi Valkeinen
2022-06-08py: examples: Add simple-continuous-capture.pyTomi Valkeinen
lass="hl ppc">#include <gst/allocators/allocators.h> #include <libcamera/stream.h> #define GST_TYPE_LIBCAMERA_ALLOCATOR gst_libcamera_allocator_get_type() G_DECLARE_FINAL_TYPE(GstLibcameraAllocator, gst_libcamera_allocator, GST_LIBCAMERA, ALLOCATOR, GstDmaBufAllocator) GstLibcameraAllocator *gst_libcamera_allocator_new(std::shared_ptr<libcamera::Camera> camera); bool gst_libcamera_allocator_prepare_buffer(GstLibcameraAllocator *self, libcamera::Stream *stream, GstBuffer *buffer); gsize gst_libcamera_allocator_get_pool_size(GstLibcameraAllocator *allocator, libcamera::Stream *stream); libcamera::FrameBuffer *gst_libcamera_memory_get_frame_buffer(GstMemory *mem); #endif /* __GST_LIBCAMERA_ALLOCATOR_H__ */