|
FFmpeg
|
#include <linux/videodev2.h>#include <sys/ioctl.h>#include <sys/mman.h>#include <unistd.h>#include <fcntl.h>#include <limits.h>#include <poll.h>#include "libavcodec/avcodec.h"#include "libavutil/attributes.h"#include "libavutil/imgutils.h"#include "libavutil/pixdesc.h"#include "libavutil/refstruct.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 41 of file v4l2_buffers.c.
Referenced by v4l2_get_pts(), and v4l2_set_pts().
|
inlinestatic |
Definition at line 46 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 53 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
inlinestatic |
Definition at line 58 of file v4l2_buffers.c.
Referenced by v4l2_get_pts(), and v4l2_set_pts().
|
inlinestatic |
Definition at line 67 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avframe_to_buf(), and ff_v4l2_buffer_avpkt_to_buf().
|
inlinestatic |
Definition at line 80 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe(), and ff_v4l2_buffer_buf_to_avpkt().
|
static |
Definition at line 91 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 125 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 143 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 175 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 222 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Definition at line 239 of file v4l2_buffers.c.
Referenced by v4l2_buf_to_bufref().
|
static |
Definition at line 263 of file v4l2_buffers.c.
Referenced by v4l2_buf_to_bufref().
|
static |
Definition at line 281 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avpkt(), and v4l2_buffer_buf_to_swframe().
|
static |
Definition at line 301 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_avpkt_to_buf().
|
static |
Definition at line 324 of file v4l2_buffers.c.
Referenced by ff_v4l2_buffer_buf_to_avframe().
|
static |
Copy a software frame into one contiguous V4L2 memory plane while keeping the visible frame geometry separate from the driver-aligned storage layout.
Definition at line 369 of file v4l2_buffers.c.
Referenced by v4l2_buffer_swframe_to_buf().
|
static |
Definition at line 474 of file v4l2_buffers.c.
Referenced by v4l2_buffer_swframe_to_buf().
|
static |
Definition at line 510 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 568 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 575 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 611 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 636 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 652 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 719 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 44 of file v4l2_buffers.c.
Referenced by v4l2_get_pts(), and v4l2_set_pts().