FFmpeg
|
#include <stdatomic.h>
#include <stddef.h>
#include <linux/videodev2.h>
#include "libavutil/buffer.h"
#include "libavutil/frame.h"
#include "packet.h"
Go to the source code of this file.
Data Structures | |
struct | V4L2Buffer |
V4L2Buffer (wrapper for v4l2_buffer management) More... | |
struct | V4L2Buffer::V4L2Plane_info |
Enumerations | |
enum | V4L2Buffer_status { V4L2BUF_AVAILABLE, V4L2BUF_IN_DRIVER, V4L2BUF_RET_USER } |
Functions | |
int | ff_v4l2_buffer_buf_to_avframe (AVFrame *frame, V4L2Buffer *buf) |
Extracts the data from a V4L2Buffer to an AVFrame. More... | |
int | ff_v4l2_buffer_buf_to_avpkt (AVPacket *pkt, V4L2Buffer *buf) |
Extracts the data from a V4L2Buffer to an AVPacket. More... | |
int | ff_v4l2_buffer_avpkt_to_buf (const AVPacket *pkt, V4L2Buffer *out) |
Extracts the data from an AVPacket to a V4L2Buffer. More... | |
int | ff_v4l2_buffer_avframe_to_buf (const AVFrame *frame, V4L2Buffer *out) |
Extracts the data from an AVFrame to a V4L2Buffer. More... | |
int | ff_v4l2_buffer_initialize (V4L2Buffer *avbuf, int index) |
Initializes a V4L2Buffer. More... | |
int | ff_v4l2_buffer_enqueue (V4L2Buffer *avbuf) |
Enqueues a V4L2Buffer. More... | |
enum V4L2Buffer_status |
Enumerator | |
---|---|
V4L2BUF_AVAILABLE | |
V4L2BUF_IN_DRIVER | |
V4L2BUF_RET_USER |
Definition at line 35 of file v4l2_buffers.h.
int ff_v4l2_buffer_buf_to_avframe | ( | AVFrame * | frame, |
V4L2Buffer * | buf | ||
) |
Extracts the data from a V4L2Buffer to an AVFrame.
[in] | frame | The AVFRame to push the information to |
[in] | buf | The V4L2Buffer to get the information from |
Definition at line 418 of file v4l2_buffers.c.
Referenced by ff_v4l2_context_dequeue_frame().
int ff_v4l2_buffer_buf_to_avpkt | ( | AVPacket * | pkt, |
V4L2Buffer * | buf | ||
) |
Extracts the data from a V4L2Buffer to an AVPacket.
[in] | pkt | The AVPacket to push the information to |
[in] | buf | The V4L2Buffer to get the information from |
Definition at line 452 of file v4l2_buffers.c.
Referenced by ff_v4l2_context_dequeue_packet().
int ff_v4l2_buffer_avpkt_to_buf | ( | const AVPacket * | pkt, |
V4L2Buffer * | out | ||
) |
Extracts the data from an AVPacket to a V4L2Buffer.
[in] | frame | AVPacket to get the data from |
[in] | avbuf | V4L2Bfuffer to push the information to |
Definition at line 477 of file v4l2_buffers.c.
Referenced by ff_v4l2_context_enqueue_packet().
int ff_v4l2_buffer_avframe_to_buf | ( | const AVFrame * | frame, |
V4L2Buffer * | out | ||
) |
Extracts the data from an AVFrame to a V4L2Buffer.
[in] | frame | AVFrame to get the data from |
[in] | avbuf | V4L2Bfuffer to push the information to |
Definition at line 411 of file v4l2_buffers.c.
Referenced by ff_v4l2_context_enqueue_frame().
int ff_v4l2_buffer_initialize | ( | V4L2Buffer * | avbuf, |
int | index | ||
) |
Initializes a V4L2Buffer.
[in] | avbuf | V4L2Bfuffer to initialize |
[in] | index | v4l2 buffer id |
Definition at line 493 of file v4l2_buffers.c.
Referenced by ff_v4l2_context_init().
int ff_v4l2_buffer_enqueue | ( | V4L2Buffer * | avbuf | ) |
Enqueues a V4L2Buffer.
[in] | avbuf | V4L2Bfuffer to push to the driver |
Definition at line 560 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_initialize(), ff_v4l2_context_enqueue_frame(), ff_v4l2_context_enqueue_packet(), and v4l2_free_buffer().