#include <linux/videodev2.h>
#include <sys/ioctl.h>
#include <search.h>
#include "libavcodec/avcodec.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixfmt.h"
#include "libavutil/opt.h"
#include "v4l2_context.h"
#include "v4l2_m2m.h"
Go to the source code of this file.
|
static void | v4l2_set_timeperframe (V4L2m2mContext *s, unsigned int num, unsigned int den) |
|
static void | v4l2_set_ext_ctrl (V4L2m2mContext *s, unsigned int id, signed int value, const char *name) |
|
static int | v4l2_get_ext_ctrl (V4L2m2mContext *s, unsigned int id, signed int *value, const char *name) |
|
static unsigned int | v4l2_h264_profile_from_ff (int p) |
|
static int | v4l2_mpeg4_profile_from_ff (int p) |
|
static int | v4l2_check_b_frame_support (V4L2m2mContext *s) |
|
static int | v4l2_prepare_encoder (V4L2m2mContext *s) |
|
static int | v4l2_send_frame (AVCodecContext *avctx, const AVFrame *frame) |
|
static int | v4l2_receive_packet (AVCodecContext *avctx, AVPacket *avpkt) |
|
static av_cold int | v4l2_encode_init (AVCodecContext *avctx) |
|
| M2MENC (mpeg4,"MPEG4", AV_CODEC_ID_MPEG4) |
|
| M2MENC (h263, "H.263", AV_CODEC_ID_H263) |
|
| M2MENC (h264, "H.264", AV_CODEC_ID_H264) |
|
| M2MENC (hevc, "HEVC", AV_CODEC_ID_HEVC) |
|
| M2MENC (vp8, "VP8", AV_CODEC_ID_VP8) |
|
◆ MPEG_CID
#define MPEG_CID |
( |
|
x | ) |
V4L2_CID_MPEG_VIDEO_##x |
◆ MPEG_VIDEO
#define MPEG_VIDEO |
( |
|
x | ) |
V4L2_MPEG_VIDEO_##x |
◆ OFFSET
◆ FLAGS
◆ M2MENC
#define M2MENC |
( |
|
NAME, |
|
|
|
LONGNAME, |
|
|
|
CODEC |
|
) |
| |
Value:static const AVClass v4l2_m2m_ ## NAME ## _enc_class = {\
};\
\
AVCodec ff_ ## NAME ## _v4l2m2m_encoder = { \
.name = #NAME "_v4l2m2m" ,\
.id = CODEC ,\
.priv_class = &v4l2_m2m_ ## NAME ##_enc_class,\
.wrapper_name = "v4l2m2m", \
};
Definition at line 325 of file v4l2_m2m_enc.c.
◆ v4l2_set_timeperframe()
◆ v4l2_set_ext_ctrl()
static void v4l2_set_ext_ctrl |
( |
V4L2m2mContext * |
s, |
|
|
unsigned int |
id, |
|
|
signed int |
value, |
|
|
const char * |
name |
|
) |
| |
|
inlinestatic |
◆ v4l2_get_ext_ctrl()
◆ v4l2_h264_profile_from_ff()
static unsigned int v4l2_h264_profile_from_ff |
( |
int |
p | ) |
|
|
inlinestatic |
◆ v4l2_mpeg4_profile_from_ff()
static int v4l2_mpeg4_profile_from_ff |
( |
int |
p | ) |
|
|
inlinestatic |
◆ v4l2_check_b_frame_support()
◆ v4l2_prepare_encoder()
◆ v4l2_send_frame()
◆ v4l2_receive_packet()
◆ v4l2_encode_init()
◆ M2MENC() [1/5]
◆ M2MENC() [2/5]
◆ M2MENC() [3/5]
◆ M2MENC() [4/5]
◆ M2MENC() [5/5]
◆ options
Initial value:= {
{ "num_capture_buffers", "Number of buffers in the capture context",
}
Definition at line 318 of file v4l2_m2m_enc.c.