libavdevice/dshow.c File Reference

#include "libavformat/timefilter.h"
#include "avdevice.h"
#include "dshow.h"

Go to the source code of this file.

Data Structures

struct  dshow_ctx

Functions

static enum PixelFormat dshow_pixfmt (DWORD biCompression, WORD biBitCount)
static enum CodecID dshow_codecid (DWORD biCompression)
static int dshow_read_close (AVFormatContext *s)
static char * dup_wchar_to_utf8 (wchar_t *w)
static int shall_we_drop (AVFormatContext *s)
static void callback (void *priv_data, int index, uint8_t *buf, int buf_size, int64_t time)
static int dshow_open_device (AVFormatContext *avctx, ICreateDevEnum *devenum, enum dshowDeviceType devtype)
static enum CodecID waveform_codec_id (enum AVSampleFormat sample_fmt)
static enum SampleFormat sample_fmt_bits_per_sample (int bits)
static int dshow_add_device (AVFormatContext *avctx, AVFormatParameters *ap, enum dshowDeviceType devtype)
static int parse_device_name (AVFormatContext *avctx)
static int dshow_read_header (AVFormatContext *avctx, AVFormatParameters *ap)
static int dshow_read_packet (AVFormatContext *s, AVPacket *pkt)

Variables

AVInputFormat ff_dshow_demuxer


Function Documentation

static void callback ( void *  priv_data,
int  index,
uint8_t *  buf,
int  buf_size,
int64_t  time 
) [static]

Definition at line 170 of file dshow.c.

Referenced by av_log_set_callback(), dshow_open_device(), and libspeex_decode_init().

static int dshow_add_device ( AVFormatContext avctx,
AVFormatParameters ap,
enum dshowDeviceType  devtype 
) [static]

Definition at line 396 of file dshow.c.

Referenced by dshow_read_header().

static enum CodecID dshow_codecid ( DWORD  biCompression  )  [static]

Definition at line 77 of file dshow.c.

Referenced by dshow_add_device().

static int dshow_open_device ( AVFormatContext avctx,
ICreateDevEnum *  devenum,
enum dshowDeviceType  devtype 
) [static]

Definition at line 211 of file dshow.c.

Referenced by dshow_read_header().

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

Definition at line 49 of file dshow.c.

Referenced by dshow_add_device().

static int dshow_read_close ( AVFormatContext s  )  [static]

Definition at line 90 of file dshow.c.

Referenced by dshow_add_device(), and dshow_read_header().

static int dshow_read_header ( AVFormatContext avctx,
AVFormatParameters ap 
) [static]

Definition at line 519 of file dshow.c.

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

Definition at line 608 of file dshow.c.

static char* dup_wchar_to_utf8 ( wchar_t *  w  )  [static]

Definition at line 143 of file dshow.c.

Referenced by dshow_open_device().

static int parse_device_name ( AVFormatContext avctx  )  [static]

Definition at line 482 of file dshow.c.

Referenced by dshow_read_header().

static enum SampleFormat sample_fmt_bits_per_sample ( int  bits  )  [static]

Definition at line 385 of file dshow.c.

Referenced by dshow_add_device().

static int shall_we_drop ( AVFormatContext s  )  [static]

Definition at line 153 of file dshow.c.

Referenced by callback(), and videostream_cb().

static enum CodecID waveform_codec_id ( enum AVSampleFormat  sample_fmt  )  [static]

Definition at line 375 of file dshow.c.

Referenced by dshow_add_device().


Variable Documentation

Initial value:

 {
    "dshow",
    NULL_IF_CONFIG_SMALL("DirectShow capture"),
    sizeof(struct dshow_ctx),
    NULL,
    dshow_read_header,
    dshow_read_packet,
    dshow_read_close,
    .flags = AVFMT_NOFILE,
}

Definition at line 637 of file dshow.c.


Generated on Fri Oct 26 02:39:47 2012 for FFmpeg by  doxygen 1.5.8