Libav
|
#include "config.h"
#include "libavutil/rational.h"
#include "libavformat/avformat.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>
#include <strings.h>
Go to the source code of this file.
Data Structures | |
struct | VideoData |
Defines | |
#define | _LINUX_TIME_H 1 |
Functions | |
static int | grab_read_header (AVFormatContext *s1, AVFormatParameters *ap) |
static int | v4l_mm_read_picture (VideoData *s, uint8_t *buf) |
static int | grab_read_packet (AVFormatContext *s1, AVPacket *pkt) |
static int | grab_read_close (AVFormatContext *s1) |
Variables | |
struct { | |
int palette | |
int depth | |
enum PixelFormat pix_fmt | |
} | video_formats [] |
AVInputFormat | v4l_demuxer |
static int grab_read_close | ( | AVFormatContext * | s1 | ) | [static] |
static int grab_read_header | ( | AVFormatContext * | s1, |
AVFormatParameters * | ap | ||
) | [static] |
static int grab_read_packet | ( | AVFormatContext * | s1, |
AVPacket * | pkt | ||
) | [static] |
static int v4l_mm_read_picture | ( | VideoData * | s, |
uint8_t * | buf | ||
) | [static] |
Definition at line 259 of file v4l.c.
Referenced by grab_read_packet().
int depth |
Definition at line 55 of file v4l.c.
Referenced by bmp_decode_frame(), decode_frame(), decode_macroblock(), dvbsub_parse_clut_segment(), encode_frame(), ff_pnm_decode_header(), flic_decode_init(), guess_mv(), pam_encode_frame(), read_line(), sunrast_decode_frame(), targa_decode_rle(), tta_decode_frame(), txd_decode_frame(), unpack_codebook(), and write_line().
int palette |
Definition at line 54 of file v4l.c.
Referenced by avs_read_packet(), cdg_load_palette(), decode_frame(), encode_frame(), get_alpha_info_pal8(), gif_read_image(), palToRgbWrapper(), pcx_decode_frame(), seqvideo_decode(), set_palette(), txd_decode_frame(), and yop_decode_frame().
enum PixelFormat pix_fmt |
Definition at line 56 of file v4l.c.
Referenced by av_get_pix_fmt(), av_picture_copy(), av_picture_crop(), av_picture_pad(), avcodec_get_chroma_sub_sample(), avcodec_get_pix_fmt_name(), avcodec_pix_fmt_string(), avfilter_add_colorspace(), avfilter_all_colorspaces(), avg_bits_per_pixel(), avpicture_layout(), dc1394_read_common(), device_init(), ff_fill_linesize(), ff_fill_pointer(), ff_get_plane_bytewidth(), ff_is_hwaccel_pix_fmt(), fmt_ff2v4l(), get_pix_fmt_internal(), img_get_alpha_info(), init(), make_format_list(), query_formats(), show_pix_fmts(), and yuv4_read_header().
{ "video4linux", NULL_IF_CONFIG_SMALL("Video4Linux device grab"), sizeof(VideoData), NULL, grab_read_header, grab_read_packet, grab_read_close, .flags = AVFMT_NOFILE, }
struct { ... } video_formats[] [static] |
Referenced by grab_read_header().