dshow.cpp File Reference

Include dependency graph for dshow.cpp:


Data Structures

struct  dshow_stream_t

Defines

#define __STDC_CONSTANT_MACROS   1
#define __STDC_FORMAT_MACROS   1
#define CACHING_TEXT   N_("Caching value in ms")
#define CACHING_LONGTEXT
#define VDEV_TEXT   N_("Video device name")
#define VDEV_LONGTEXT
#define ADEV_TEXT   N_("Audio device name")
#define ADEV_LONGTEXT
#define SIZE_TEXT   N_("Video size")
#define SIZE_LONGTEXT
#define CHROMA_TEXT   N_("Video input chroma format")
#define CHROMA_LONGTEXT
#define FPS_TEXT   N_("Video input frame rate")
#define FPS_LONGTEXT
#define CONFIG_TEXT   N_("Device properties")
#define CONFIG_LONGTEXT
#define TUNER_TEXT   N_("Tuner properties")
#define TUNER_LONGTEXT
#define CHANNEL_TEXT   N_("Tuner TV Channel")
#define CHANNEL_LONGTEXT
#define COUNTRY_TEXT   N_("Tuner country code")
#define COUNTRY_LONGTEXT
#define TUNER_INPUT_TEXT   N_("Tuner input type")
#define TUNER_INPUT_LONGTEXT
#define VIDEO_IN_TEXT   N_("Video input pin")
#define VIDEO_IN_LONGTEXT
#define AUDIO_IN_TEXT   N_("Audio input pin")
#define AUDIO_IN_LONGTEXT
#define VIDEO_OUT_TEXT   N_("Video output pin")
#define VIDEO_OUT_LONGTEXT
#define AUDIO_OUT_TEXT   N_("Audio output pin")
#define AUDIO_OUT_LONGTEXT
#define AMTUNER_MODE_TEXT   N_("AM Tuner mode")
#define AMTUNER_MODE_LONGTEXT
#define AUDIO_CHANNELS_TEXT   N_("Number of audio channels")
#define AUDIO_CHANNELS_LONGTEXT
#define AUDIO_SAMPLERATE_TEXT   N_("Audio sample rate")
#define AUDIO_SAMPLERATE_LONGTEXT
#define AUDIO_BITSPERSAMPLE_TEXT   N_("Audio bits per sample")
#define AUDIO_BITSPERSAMPLE_LONGTEXT
#define MAX_MEDIA_TYPES   32

Functions

static block_tReadCompressed (access_t *)
static int AccessControl (access_t *, int, va_list)
static int Demux (demux_t *)
static int DemuxControl (demux_t *, int, va_list)
static int OpenDevice (vlc_object_t *, access_sys_t *, string, bool)
static IBaseFilter * FindCaptureDevice (vlc_object_t *, string *, list< string > *, bool)
static size_t EnumDeviceCaps (vlc_object_t *, IBaseFilter *, int, int, int, int, int, int, AM_MEDIA_TYPE *mt, size_t)
static bool ConnectFilters (vlc_object_t *, access_sys_t *, IBaseFilter *, CaptureFilter *)
static int FindDevicesCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int ConfigDevicesCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static void ShowPropertyPage (IUnknown *)
static void ShowDeviceProperties (vlc_object_t *, ICaptureGraphBuilder2 *, IBaseFilter *, bool)
static void ShowTunerProperties (vlc_object_t *, ICaptureGraphBuilder2 *, IBaseFilter *, bool)
static void ConfigTuner (vlc_object_t *, ICaptureGraphBuilder2 *, IBaseFilter *)
static int CommonOpen (vlc_object_t *, access_sys_t *, bool)
static void CommonClose (vlc_object_t *, access_sys_t *)
static int AccessOpen (vlc_object_t *)
 **************************************************************************
static void AccessClose (vlc_object_t *)
 **************************************************************************
static int DemuxOpen (vlc_object_t *)
static void DemuxClose (vlc_object_t *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static void CreateDirectShowGraph (access_sys_t *p_sys)
static void DeleteDirectShowGraph (access_sys_t *p_sys)
static int GetFourCCPriority (int i_fourcc)

Variables

static const char *const ppsz_vdev [] = { "", "none" }
static const char *const ppsz_vdev_text [] = { N_("Default"), N_("None") }
static const char *const ppsz_adev [] = { "", "none" }
static const char *const ppsz_adev_text [] = { N_("Default"), N_("None") }
static const int pi_tuner_input [] = { 0, 1, 2 }
static const char *const ppsz_tuner_input_text []
static const int pi_amtuner_mode []
static const char *const ppsz_amtuner_mode_text []

Define Documentation

#define __STDC_CONSTANT_MACROS   1

#define __STDC_FORMAT_MACROS   1

#define ADEV_LONGTEXT

Value:

N_( \
    "Name of the audio device that will be used by the " \
    "DirectShow plugin. If you don't specify anything, the default device " \
    "will be used. ")

#define ADEV_TEXT   N_("Audio device name")

#define AMTUNER_MODE_LONGTEXT

Value:

N_( \
    "AM Tuner mode. Can be one of Default (0), TV (1)," \
     "AM Radio (2), FM Radio (3) or DSS (4).")

#define AMTUNER_MODE_TEXT   N_("AM Tuner mode")

#define AUDIO_BITSPERSAMPLE_LONGTEXT

Value:

N_( \
    "Select audio input format with the given bits/sample (if non 0)" )

#define AUDIO_BITSPERSAMPLE_TEXT   N_("Audio bits per sample")

#define AUDIO_CHANNELS_LONGTEXT

Value:

N_( \
    "Select audio input format with the given number of audio channels (if non 0)" )

#define AUDIO_CHANNELS_TEXT   N_("Number of audio channels")

#define AUDIO_IN_LONGTEXT

Value:

N_( \
  "Select the audio input source. See the \"video input\" option." )

#define AUDIO_IN_TEXT   N_("Audio input pin")

#define AUDIO_OUT_LONGTEXT

Value:

N_( \
  "Select the audio output type. See the \"video input\" option." )

#define AUDIO_OUT_TEXT   N_("Audio output pin")

#define AUDIO_SAMPLERATE_LONGTEXT

Value:

N_( \
    "Select audio input format with the given sample rate (if non 0)" )

#define AUDIO_SAMPLERATE_TEXT   N_("Audio sample rate")

#define CACHING_LONGTEXT

Value:

N_( \
    "Caching value for DirectShow streams. " \
    "This value should be set in milliseconds." )

#define CACHING_TEXT   N_("Caching value in ms")

#define CHANNEL_LONGTEXT

Value:

N_( \
    "Set the TV channel the tuner will set to " \
    "(0 means default)." )

#define CHANNEL_TEXT   N_("Tuner TV Channel")

#define CHROMA_LONGTEXT

Value:

N_( \
    "Force the DirectShow video input to use a specific chroma format " \
    "(eg. I420 (default), RV24, etc.)")

#define CHROMA_TEXT   N_("Video input chroma format")

#define CONFIG_LONGTEXT

Value:

N_( \
    "Show the properties dialog of the selected device before starting the " \
    "stream.")

#define CONFIG_TEXT   N_("Device properties")

#define COUNTRY_LONGTEXT

Value:

N_( \
    "Set the tuner country code that establishes the current " \
    "channel-to-frequency mapping (0 means default)." )

#define COUNTRY_TEXT   N_("Tuner country code")

#define FPS_LONGTEXT

Value:

N_( \
    "Force the DirectShow video input to use a specific frame rate" \
    "(eg. 0 means default, 25, 29.97, 50, 59.94, etc.)")

#define FPS_TEXT   N_("Video input frame rate")

#define MAX_MEDIA_TYPES   32

Referenced by OpenDevice().

#define SIZE_LONGTEXT

Value:

N_( \
    "Size of the video that will be displayed by the " \
    "DirectShow plugin. If you don't specify anything the default size for " \
    "your device will be used. You can specify a standard size (cif, d1, ...) or <width>x<height>.")

#define SIZE_TEXT   N_("Video size")

#define TUNER_INPUT_LONGTEXT

Value:

N_( \
    "Select the tuner input type (Cable/Antenna)." )

#define TUNER_INPUT_TEXT   N_("Tuner input type")

#define TUNER_LONGTEXT

Value:

N_( \
    "Show the tuner properties [channel selection] page." )

#define TUNER_TEXT   N_("Tuner properties")

#define VDEV_LONGTEXT

Value:

N_( \
    "Name of the video device that will be used by the " \
    "DirectShow plugin. If you don't specify anything, the default device " \
    "will be used.")

#define VDEV_TEXT   N_("Video device name")

#define VIDEO_IN_LONGTEXT

Value:

N_( \
  "Select the video input source, such as composite, s-video, " \
  "or tuner. Since these settings are hardware-specific, you should find good " \
  "settings in the \"Device config\" area, and use those numbers here. -1 " \
  "means that settings will not be changed.")

#define VIDEO_IN_TEXT   N_("Video input pin")

#define VIDEO_OUT_LONGTEXT

Value:

N_( \
  "Select the video output type. See the \"video input\" option." )

#define VIDEO_OUT_TEXT   N_("Video output pin")


Function Documentation

static void AccessClose ( vlc_object_t p_this  )  [static]

**************************************************************************

Close access: free structures

References CommonClose(), access_sys_t::p_control, access_t::p_sys, and p_sys.

Referenced by AccessOpen().

static int AccessControl ( access_t p_access,
int  i_query,
va_list  args 
) [static]

static int AccessOpen ( vlc_object_t p_this  )  [static]

static void CommonClose ( vlc_object_t p_this,
access_sys_t p_sys 
) [static]

static int CommonOpen ( vlc_object_t p_this,
access_sys_t p_sys,
bool  b_access_demux 
) [static]

static int ConfigDevicesCallback ( vlc_object_t p_this,
char const *  psz_name,
vlc_value_t  newval,
vlc_value_t  oldval,
void *   
) [static]

static void ConfigTuner ( vlc_object_t p_this,
ICaptureGraphBuilder2 *  p_graph,
IBaseFilter *  p_device_filter 
) [static]

static bool ConnectFilters ( vlc_object_t p_this,
access_sys_t p_sys,
IBaseFilter *  p_filter,
CaptureFilter p_capture_filter 
) [static]

static void CreateDirectShowGraph ( access_sys_t p_sys  )  [static]

static void DeleteDirectShowGraph ( access_sys_t p_sys  )  [static]

static int Demux ( demux_t p_demux  )  [static]

static void DemuxClose ( vlc_object_t p_this  )  [static]

static int DemuxControl ( demux_t p_demux,
int  i_query,
va_list  args 
) [static]

static int DemuxOpen ( vlc_object_t p_this  )  [static]

static size_t EnumDeviceCaps ( vlc_object_t p_this,
IBaseFilter *  p_filter,
int  i_fourcc,
int  i_width,
int  i_height,
int  i_channels,
int  i_samplespersec,
int  i_bitspersample,
AM_MEDIA_TYPE *  mt,
size_t  mt_max 
) [static]

static IBaseFilter * FindCaptureDevice ( vlc_object_t p_this,
string *  p_devicename,
list< string > *  p_listdevices,
bool  b_audio 
) [static]

static int FindDevicesCallback ( vlc_object_t p_this,
char const *  psz_name,
vlc_value_t  newval,
vlc_value_t  oldval,
void *   
) [static]

static int GetFourCCPriority ( int  i_fourcc  )  [static]

static int OpenDevice ( vlc_object_t p_this,
access_sys_t p_sys,
string  devicename,
bool  b_audio 
) [static]

static block_t * ReadCompressed ( access_t p_access  )  [static]

static void ShowDeviceProperties ( vlc_object_t p_this,
ICaptureGraphBuilder2 *  p_graph,
IBaseFilter *  p_device_filter,
bool  b_audio 
) [static]

static void ShowPropertyPage ( IUnknown obj  )  [static]

static void ShowTunerProperties ( vlc_object_t p_this,
ICaptureGraphBuilder2 *  p_graph,
IBaseFilter *  p_device_filter,
bool  b_audio 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const int pi_amtuner_mode[] [static]

Initial value:

 { AMTUNER_MODE_DEFAULT,
                                 AMTUNER_MODE_TV,
                                 AMTUNER_MODE_FM_RADIO,
                                 AMTUNER_MODE_AM_RADIO,
                                 AMTUNER_MODE_DSS }

const int pi_tuner_input[] = { 0, 1, 2 } [static]

const char* const ppsz_adev[] = { "", "none" } [static]

const char* const ppsz_adev_text[] = { N_("Default"), N_("None") } [static]

const char* const ppsz_amtuner_mode_text[] [static]

Initial value:

 { N_("Default"),
                                          N_("TV"),
                                          N_("FM radio"),
                                          N_("AM radio"),
                                          N_("DSS") }

const char* const ppsz_tuner_input_text[] [static]

Initial value:

    {N_("Default"), N_("Cable"), N_("Antenna")}

const char* const ppsz_vdev[] = { "", "none" } [static]

const char* const ppsz_vdev_text[] = { N_("Default"), N_("None") } [static]


Generated on Tue May 25 08:05:06 2010 for VLC by  doxygen 1.5.6