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