FFmpeg
4.0
|
#include <linux/videodev2.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include "libavcodec/avcodec.h"
#include "libavcodec/internal.h"
#include "v4l2_context.h"
#include "v4l2_buffers.h"
#include "v4l2_m2m.h"
Go to the source code of this file.
Macros | |
#define | USEC_PER_SEC 1000000 |
#define USEC_PER_SEC 1000000 |
Definition at line 36 of file v4l2_buffers.c.
Referenced by v4l2_get_pts(), and v4l2_set_pts().
|
inlinestatic |
Definition at line 38 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), ff_v4l2_buffer_enqueue(), ff_v4l2_buffer_initialize(), logger(), v4l2_buf_to_bufref(), v4l2_free_buffer(), v4l2_get_pts(), and v4l2_set_pts().
|
inlinestatic |
Definition at line 45 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
inlinestatic |
Definition at line 50 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avframe_to_buf(), and ff_v4l2_buffer_avpkt_to_buf().
|
inlinestatic |
Definition at line 65 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
static |
Definition at line 78 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 112 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 130 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 162 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
Definition at line 206 of file v4l2_buffers.c.
Referenced by v4l2_buf_to_bufref().
|
static |
Definition at line 230 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
static |
Definition at line 260 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avframe_to_buf(), and ff_v4l2_buffer_avpkt_to_buf().
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 289 of file v4l2_buffers.c.
Referenced by ff_v4l2_context_enqueue_frame().
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 304 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 355 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 380 of file v4l2_buffers.c.
Referenced by ff_v4l2_context_enqueue_packet().
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 396 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 465 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().