| FFmpeg
    4.0
    | 
#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.
| Macros | |
| #define | MPEG_CID(x) V4L2_CID_MPEG_VIDEO_##x | 
| #define | MPEG_VIDEO(x) V4L2_MPEG_VIDEO_##x | 
| #define | OFFSET(x) offsetof(V4L2m2mPriv, x) | 
| #define | FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM | 
| #define | M2MENC(NAME, LONGNAME, CODEC) | 
| Functions | |
| 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) | |
| Variables | |
| static const AVOption | options [] | 
| #define MPEG_CID | ( | x | ) | V4L2_CID_MPEG_VIDEO_##x | 
Definition at line 34 of file v4l2_m2m_enc.c.
Referenced by v4l2_check_b_frame_support(), and v4l2_prepare_encoder().
| #define MPEG_VIDEO | ( | x | ) | V4L2_MPEG_VIDEO_##x | 
Definition at line 35 of file v4l2_m2m_enc.c.
Referenced by v4l2_h264_profile_from_ff(), v4l2_mpeg4_profile_from_ff(), and v4l2_prepare_encoder().
| #define OFFSET | ( | x | ) | offsetof(V4L2m2mPriv, x) | 
Definition at line 315 of file v4l2_m2m_enc.c.
| #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM | 
Definition at line 316 of file v4l2_m2m_enc.c.
| #define M2MENC | ( | NAME, | |
| LONGNAME, | |||
| CODEC | |||
| ) | 
Definition at line 325 of file v4l2_m2m_enc.c.
| 
 | inlinestatic | 
Definition at line 37 of file v4l2_m2m_enc.c.
Referenced by v4l2_prepare_encoder().
| 
 | inlinestatic | 
Definition at line 49 of file v4l2_m2m_enc.c.
Referenced by v4l2_check_b_frame_support(), and v4l2_prepare_encoder().
| 
 | inlinestatic | 
Definition at line 69 of file v4l2_m2m_enc.c.
Referenced by v4l2_check_b_frame_support().
Definition at line 94 of file v4l2_m2m_enc.c.
Referenced by v4l2_prepare_encoder().
Definition at line 121 of file v4l2_m2m_enc.c.
Referenced by v4l2_prepare_encoder().
| 
 | static | 
Definition at line 142 of file v4l2_m2m_enc.c.
Referenced by v4l2_prepare_encoder().
| 
 | static | 
requirements
settingss
Definition at line 157 of file v4l2_m2m_enc.c.
Referenced by v4l2_encode_init().
| 
 | static | 
Definition at line 243 of file v4l2_m2m_enc.c.
| 
 | static | 
Definition at line 251 of file v4l2_m2m_enc.c.
| 
 | static | 
Definition at line 281 of file v4l2_m2m_enc.c.
| 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 | |||
| ) | 
| 
 | static | 
Definition at line 318 of file v4l2_m2m_enc.c.
 1.8.13
 1.8.13