FFmpeg
Data Structures | Functions | Variables
v4l2-common.h File Reference
#include "config.h"
#include "libavformat/internal.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <linux/videodev2.h>
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avdevice.h"
#include "timefilter.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/time.h"
#include "libavutil/avstring.h"

Go to the source code of this file.

Data Structures

struct  fmt_map
 

Functions

uint32_t ff_fmt_ff2v4l (enum AVPixelFormat pix_fmt, enum AVCodecID codec_id)
 
enum AVPixelFormat ff_fmt_v4l2ff (uint32_t v4l2_fmt, enum AVCodecID codec_id)
 
enum AVCodecID ff_fmt_v4l2codec (uint32_t v4l2_fmt)
 

Variables

const struct fmt_map ff_fmt_conversion_table []
 

Function Documentation

◆ ff_fmt_ff2v4l()

uint32_t ff_fmt_ff2v4l ( enum AVPixelFormat  pix_fmt,
enum AVCodecID  codec_id 
)

Definition at line 73 of file v4l2-common.c.

Referenced by device_try_init(), and write_header().

◆ ff_fmt_v4l2ff()

enum AVPixelFormat ff_fmt_v4l2ff ( uint32_t  v4l2_fmt,
enum AVCodecID  codec_id 
)

Definition at line 89 of file v4l2-common.c.

Referenced by list_formats(), and v4l2_read_header().

◆ ff_fmt_v4l2codec()

enum AVCodecID ff_fmt_v4l2codec ( uint32_t  v4l2_fmt)

Definition at line 103 of file v4l2-common.c.

Referenced by device_try_init(), and list_formats().

Variable Documentation

◆ ff_fmt_conversion_table

const struct fmt_map ff_fmt_conversion_table[]

Definition at line 21 of file v4l2-common.c.

Referenced by device_try_init(), ff_fmt_ff2v4l(), ff_fmt_v4l2codec(), and ff_fmt_v4l2ff().