Go to the documentation of this file.
24 #ifndef AVCODEC_V4L2_BUFFERS_H
25 #define AVCODEC_V4L2_BUFFERS_H
27 #include <stdatomic.h>
29 #include <linux/videodev2.h>
63 struct v4l2_buffer
buf;
64 struct v4l2_plane
planes[VIDEO_MAX_PLANES];
134 #endif // AVCODEC_V4L2_BUFFERS_H
int ff_v4l2_buffer_initialize(V4L2Buffer *avbuf, int index)
Initializes a V4L2Buffer.
This structure describes decoded (raw) audio or video data.
int ff_v4l2_buffer_avframe_to_buf(const AVFrame *frame, V4L2Buffer *out)
Extracts the data from an AVFrame to a V4L2Buffer.
int ff_v4l2_buffer_enqueue(V4L2Buffer *avbuf)
Enqueues a V4L2Buffer.
struct V4L2Context * context
V4L2Buffer (wrapper for v4l2_buffer management)
int ff_v4l2_buffer_buf_to_avpkt(AVPacket *pkt, V4L2Buffer *buf)
Extracts the data from a V4L2Buffer to an AVPacket.
AVBufferRef * context_ref
atomic_uint context_refcount
struct v4l2_plane planes[VIDEO_MAX_PLANES]
int ff_v4l2_buffer_avpkt_to_buf(const AVPacket *pkt, V4L2Buffer *out)
Extracts the data from an AVPacket to a V4L2Buffer.
A reference to a data buffer.
This structure stores compressed data.
int ff_v4l2_buffer_buf_to_avframe(AVFrame *frame, V4L2Buffer *buf)
Extracts the data from a V4L2Buffer to an AVFrame.
enum V4L2Buffer_status status