FFmpeg
|
#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 "libavutil/pixdesc.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 |
Variables | |
static AVRational | v4l2_timebase = { 1, USEC_PER_SEC } |
#define USEC_PER_SEC 1000000 |
Definition at line 37 of file v4l2_buffers.c.
|
inlinestatic |
Definition at line 40 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_enqueue(), ff_v4l2_buffer_initialize(), logger(), v4l2_buf_increase_ref(), v4l2_free_buffer(), and v4l2_get_timebase().
|
inlinestatic |
Definition at line 47 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
inlinestatic |
Definition at line 52 of file v4l2_buffers.c.
Referenced by v4l2_get_pts(), and v4l2_set_pts().
|
inlinestatic |
Definition at line 61 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avframe_to_buf(), and ff_v4l2_buffer_avpkt_to_buf().
|
inlinestatic |
Definition at line 74 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
static |
Definition at line 85 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 119 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 137 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 169 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 213 of file v4l2_buffers.c.
Referenced by v4l2_buf_to_bufref().
|
static |
Definition at line 237 of file v4l2_buffers.c.
Referenced by v4l2_buf_to_bufref().
|
static |
Definition at line 257 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avpkt(), and v4l2_buffer_buf_to_swframe().
|
static |
Definition at line 277 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avpkt_to_buf(), and v4l2_buffer_swframe_to_buf().
|
static |
Definition at line 300 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 341 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avframe_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 412 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 419 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 453 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 478 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 494 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 561 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().
|
static |
Definition at line 38 of file v4l2_buffers.c.
Referenced by v4l2_get_pts(), and v4l2_set_pts().