FFmpeg
Data Structures | Macros | Functions | Variables
v4l.c File Reference
#include "avdevice.h"
#include "config.h"
#include "libavutil/rational.h"
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavformat/internal.h"
#include "libavcodec/dsputil.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <linux/videodev.h>
#include <time.h>

Go to the source code of this file.

Data Structures

struct   VideoData
 

Macros

#define  _LINUX_TIME_H   1
 

Functions

static int  grab_read_header (AVFormatContext *s1, AVFormatParameters *ap)
 
 
 
 

Variables

struct {
   int   palette
 
   int   depth
 
   enum AVPixelFormat   pix_fmt
 
 
static const AVOption  options []
 
static const AVClass  v4l_class
 
 

Macro Definition Documentation

#define _LINUX_TIME_H   1

Definition at line 37 of file v4l.c.

Function Documentation

static int grab_read_header ( AVFormatContexts1,
AVFormatParameters *  ap 
)
static

Definition at line 75 of file v4l.c.

static int v4l_mm_read_picture ( VideoDatas,
uint8_tbuf 
)
static

Definition at line 256 of file v4l.c.

Referenced by grab_read_packet().

static int grab_read_packet ( AVFormatContexts1,
AVPacketpkt 
)
static

Definition at line 282 of file v4l.c.

static int grab_read_close ( AVFormatContexts1 )
static

Definition at line 322 of file v4l.c.

Variable Documentation

int palette

Definition at line 60 of file v4l.c.

Referenced by apply_color_indexing_transform(), avs_read_packet(), cdg_load_palette(), cmap_read_palette(), count_colors(), debug_mean_error(), decode_frame(), display_end_segment(), encode_frame(), extract_header(), flush_packet(), gif_encode_frame(), gif_image_write_image(), gif_write_header(), gif_write_packet(), idcin_read_packet(), mov_create_dvd_sub_decoder_specific_info(), palToRgbWrapper(), parse_palette_segment(), seqvideo_decode(), set_frame(), set_palette(), smush_read_header(), and yop_decode_frame().

int depth

Definition at line 61 of file v4l.c.

Referenced by ast_read_header(), av_read_image_line(), av_write_image_line(), bmp_decode_frame(), decode_frame(), decode_macroblock(), denoise_spatial(), dvbsub_parse_clut_segment(), encode_frame(), ff_pnm_decode_header(), fill_iplimage_from_frame(), filter(), filter_frame(), flic_decode_init(), guess_mv(), pam_encode_frame(), process_anticollapse(), query_formats(), recurse_mono(), recurse_stereo(), store_slice16_c(), sunrast_decode_frame(), targa_decode_rle(), tta_decode_frame(), txd_decode_frame(), unpack_codebook(), and wtvfile_open2().

enum AVPixelFormat pix_fmt

Definition at line 62 of file v4l.c.

struct { ... } video_formats[]
Initial value:
= {
{.palette = VIDEO_PALETTE_YUV420P, .depth = 12, .pix_fmt = AV_PIX_FMT_YUV420P },
{.palette = VIDEO_PALETTE_YUV422, .depth = 16, .pix_fmt = AV_PIX_FMT_YUYV422 },
{.palette = VIDEO_PALETTE_UYVY, .depth = 16, .pix_fmt = AV_PIX_FMT_UYVY422 },
{.palette = VIDEO_PALETTE_YUYV, .depth = 16, .pix_fmt = AV_PIX_FMT_YUYV422 },
{.palette = VIDEO_PALETTE_RGB24, .depth = 24, .pix_fmt = AV_PIX_FMT_BGR24 },
{.palette = VIDEO_PALETTE_RGB565, .depth = 16, .pix_fmt = AV_PIX_FMT_BGR565 },
{.palette = VIDEO_PALETTE_GREY, .depth = 8, .pix_fmt = AV_PIX_FMT_GRAY8 },
}

Referenced by grab_read_header().

const AVOption options[]
static
Initial value:
= {
{ "standard", "", 0x42, AV_OPT_TYPE_INT, {.i64 = VIDEO_MODE_NTSC}, VIDEO_MODE_PAL, VIDEO_MODE_NTSC, AV_OPT_FLAG_DECODING_PARAM, "standard" },
{ "PAL", "", 0, AV_OPT_TYPE_CONST, {.i64 = VIDEO_MODE_PAL}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" },
{ "SECAM", "", 0, AV_OPT_TYPE_CONST, {.i64 = VIDEO_MODE_SECAM}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" },
{ "NTSC", "", 0, AV_OPT_TYPE_CONST, {.i64 = VIDEO_MODE_NTSC}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" },
{ NULL },
}

Definition at line 338 of file v4l.c.

const AVClass v4l_class
static
Initial value:
= {
.class_name = "V4L indev",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 346 of file v4l.c.

AVInputFormat ff_v4l_demuxer
Initial value:
= {
.name = "video4linux,v4l",
.long_name = NULL_IF_CONFIG_SMALL("Video4Linux device grab"),
.priv_data_size = sizeof(VideoData),
.priv_class = &v4l_class,
}

Definition at line 354 of file v4l.c.


Generated on Sun Mar 8 2015 02:35:27 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /