FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
v4l2_fmt.c File Reference
#include <linux/videodev2.h>
#include <search.h>
#include "v4l2_fmt.h"

Go to the source code of this file.

Data Structures

struct  fmt_conversion
 

Macros

#define V4L2_FMT(x)   V4L2_PIX_FMT_##x
 
#define AV_CODEC(x)   AV_CODEC_ID_##x
 
#define AV_FMT(x)   AV_PIX_FMT_##x
 

Functions

uint32_t ff_v4l2_format_avcodec_to_v4l2 (enum AVCodecID avcodec)
 
uint32_t ff_v4l2_format_avfmt_to_v4l2 (enum AVPixelFormat avfmt)
 
enum AVPixelFormat ff_v4l2_format_v4l2_to_avfmt (uint32_t v4l2_fmt, enum AVCodecID avcodec)
 

Variables

static const struct fmt_conversion fmt_map []
 

Macro Definition Documentation

#define V4L2_FMT (   x)    V4L2_PIX_FMT_##x

Definition at line 28 of file v4l2_fmt.c.

#define AV_CODEC (   x)    AV_CODEC_ID_##x

Definition at line 29 of file v4l2_fmt.c.

#define AV_FMT (   x)    AV_PIX_FMT_##x

Definition at line 30 of file v4l2_fmt.c.

Function Documentation

uint32_t ff_v4l2_format_avcodec_to_v4l2 ( enum AVCodecID  avcodec)

Definition at line 112 of file v4l2_fmt.c.

Referenced by v4l2_get_coded_format().

uint32_t ff_v4l2_format_avfmt_to_v4l2 ( enum AVPixelFormat  avfmt)

Definition at line 122 of file v4l2_fmt.c.

Referenced by v4l2_try_raw_format().

enum AVPixelFormat ff_v4l2_format_v4l2_to_avfmt ( uint32_t  v4l2_fmt,
enum AVCodecID  avcodec 
)

Definition at line 132 of file v4l2_fmt.c.

Referenced by v4l2_get_raw_format(), and v4l2_try_start().

Variable Documentation

const struct fmt_conversion fmt_map[]
static