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 "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 36 of file v4l2_buffers.c.
|
inlinestatic |
Definition at line 39 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 46 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
inlinestatic |
Definition at line 51 of file v4l2_buffers.c.
Referenced by v4l2_get_pts(), and v4l2_set_pts().
|
inlinestatic |
Definition at line 60 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avframe_to_buf(), and ff_v4l2_buffer_avpkt_to_buf().
|
inlinestatic |
Definition at line 73 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
static |
Definition at line 84 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 118 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 136 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 168 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 212 of file v4l2_buffers.c.
Referenced by v4l2_buf_to_bufref().
|
static |
Definition at line 236 of file v4l2_buffers.c.
Referenced by v4l2_buf_to_bufref().
|
static |
Definition at line 256 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avpkt(), and v4l2_buffer_buf_to_swframe().
|
static |
Definition at line 276 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avpkt_to_buf(), and v4l2_buffer_swframe_to_buf().
|
static |
Definition at line 299 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 340 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 411 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 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 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 37 of file v4l2_buffers.c.
Referenced by v4l2_get_pts(), and v4l2_set_pts().