libavdevice/vfwcap.c File Reference

#include "libavformat/avformat.h"
#include <windows.h>
#include <vfw.h>

Go to the source code of this file.

Data Structures

struct  vfw_ctx

Defines

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

Functions

static enum PixelFormat vfw_pixfmt (DWORD biCompression, WORD biBitCount)
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 (struct vfw_ctx *ctx)
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

AVInputFormat vfwcap_demuxer


Define Documentation

#define BI_RGB   0

Definition at line 32 of file vfwcap.c.

Referenced by vfw_pixfmt(), and vfw_read_header().

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

Definition at line 72 of file vfwcap.c.

Referenced by dump_bih(), dump_captureparms(), and dump_videohdr().

#define HWND_MESSAGE   ((HWND)-3)

Definition at line 30 of file vfwcap.c.

Referenced by vfw_read_header().


Function Documentation

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

Definition at line 121 of file vfwcap.c.

Referenced by vfw_read_header().

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

Definition at line 75 of file vfwcap.c.

Referenced by vfw_read_header().

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

Definition at line 104 of file vfwcap.c.

Referenced by videostream_cb().

static int shall_we_drop ( struct vfw_ctx ctx  )  [static]

Definition at line 139 of file vfwcap.c.

Referenced by videostream_cb().

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

Definition at line 46 of file vfwcap.c.

Referenced by vfw_read_header().

static int vfw_read_close ( AVFormatContext s  )  [static]

Definition at line 392 of file vfwcap.c.

Referenced by vfw_read_header().

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

Definition at line 197 of file vfwcap.c.

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

Definition at line 363 of file vfwcap.c.

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

Definition at line 155 of file vfwcap.c.

Referenced by vfw_read_header().


Variable Documentation

Initial value:

 {
    "vfwcap",
    NULL_IF_CONFIG_SMALL("VFW video capture"),
    sizeof(struct vfw_ctx),
    NULL,
    vfw_read_header,
    vfw_read_packet,
    vfw_read_close,
    .flags = AVFMT_NOFILE,
}

Definition at line 409 of file vfwcap.c.


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8