libavdevice/vfwcap.c File Reference

#include "libavformat/internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include <windows.h>
#include <vfw.h>
#include "avdevice.h"

Go to the source code of this file.

Data Structures

struct  vfw_ctx

Defines

#define HWND_MESSAGE   ((HWND)-3)
#define dstruct(pctx, sname, var, type)   av_log(pctx, AV_LOG_DEBUG, #var":\t%"type"\n", sname->var)
#define OFFSET(x)   offsetof(struct vfw_ctx, x)
#define DEC   AV_OPT_FLAG_DECODING_PARAM

Functions

static enum PixelFormat vfw_pixfmt (DWORD biCompression, WORD biBitCount)
static enum CodecID vfw_codecid (DWORD biCompression)
static void dump_captureparms (AVFormatContext *s, CAPTUREPARMS *cparms)
static void dump_videohdr (AVFormatContext *s, VIDEOHDR *vhdr)
static void dump_bih (AVFormatContext *s, BITMAPINFOHEADER *bih)
static int shall_we_drop (AVFormatContext *s)
static LRESULT CALLBACK videostream_cb (HWND hwnd, LPVIDEOHDR vdhdr)
static int vfw_read_close (AVFormatContext *s)
static int vfw_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int vfw_read_packet (AVFormatContext *s, AVPacket *pkt)

Variables

static const AVOption options []
static const AVClass vfw_class
AVInputFormat ff_vfwcap_demuxer


Define Documentation

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 460 of file vfwcap.c.

#define dstruct ( pctx,
sname,
var,
type   )     av_log(pctx, AV_LOG_DEBUG, #var":\t%"type"\n", sname->var)

Definition at line 88 of file vfwcap.c.

#define HWND_MESSAGE   ((HWND)-3)

Definition at line 32 of file vfwcap.c.

Referenced by vfw_read_header().

#define OFFSET (  )     offsetof(struct vfw_ctx, x)

Definition at line 459 of file vfwcap.c.


Function Documentation

static void dump_bih ( AVFormatContext s,
BITMAPINFOHEADER *  bih 
) [static]

Definition at line 137 of file vfwcap.c.

Referenced by ff_print_AM_MEDIA_TYPE(), and vfw_read_header().

static void dump_captureparms ( AVFormatContext s,
CAPTUREPARMS *  cparms 
) [static]

Definition at line 91 of file vfwcap.c.

Referenced by vfw_read_header().

static void dump_videohdr ( AVFormatContext s,
VIDEOHDR *  vhdr 
) [static]

Definition at line 120 of file vfwcap.c.

Referenced by videostream_cb().

static int shall_we_drop ( AVFormatContext s  )  [static]

Definition at line 155 of file vfwcap.c.

static enum CodecID vfw_codecid ( DWORD  biCompression  )  [static]

Definition at line 76 of file vfwcap.c.

Referenced by vfw_read_header().

static enum PixelFormat vfw_pixfmt ( DWORD  biCompression,
WORD  biBitCount 
) [static]

Definition at line 48 of file vfwcap.c.

Referenced by vfw_read_header().

static int vfw_read_close ( AVFormatContext s  )  [static]

Definition at line 213 of file vfwcap.c.

Referenced by vfw_read_header().

static int vfw_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 239 of file vfwcap.c.

static int vfw_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 430 of file vfwcap.c.

static LRESULT CALLBACK videostream_cb ( HWND  hwnd,
LPVIDEOHDR  vdhdr 
) [static]

Definition at line 171 of file vfwcap.c.

Referenced by vfw_read_header().


Variable Documentation

Initial value:

 {
    .name           = "vfwcap",
    .long_name      = NULL_IF_CONFIG_SMALL("VfW video capture"),
    .priv_data_size = sizeof(struct vfw_ctx),
    .read_header    = vfw_read_header,
    .read_packet    = vfw_read_packet,
    .read_close     = vfw_read_close,
    .flags          = AVFMT_NOFILE,
    .priv_class     = &vfw_class,
}

Definition at line 474 of file vfwcap.c.

const AVOption options[] [static]

Initial value:

 {
    { "video_size", "A string describing frame size, such as 640x480 or hd720.", OFFSET(video_size), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
    { "framerate", "", OFFSET(framerate), AV_OPT_TYPE_STRING, {.str = "ntsc"}, 0, 0, DEC },
    { NULL },
}

Definition at line 461 of file vfwcap.c.

const AVClass vfw_class [static]

Initial value:

 {
    .class_name = "VFW indev",
    .item_name  = av_default_item_name,
    .option     = options,
    .version    = LIBAVUTIL_VERSION_INT,
}

Definition at line 467 of file vfwcap.c.


Generated on Fri Oct 26 02:46:11 2012 for FFmpeg by  doxygen 1.5.8