#include <vidl_dshow.h>
Static Public Member Functions | |
static void | initialize_com () |
Initialize COM (must be called before using any of these functions). | |
static vcl_string | get_error_text (const char *file, int line, HRESULT hr) |
Get an error description for the given HRESULT. | |
static void | register_in_rot (IUnknown *unknown, DWORD ®) |
Register object in Running Object Table (ROT). | |
static void | remove_from_rot (DWORD reg) |
Remove object from Running Object Table (ROT). | |
static void | save_graph_to_file (const CComPtr< IFilterGraph2 > &filter_graph, const vcl_string &filename) |
Save filter graph to a *.grf file. | |
static void | load_graph_from_file (const CComPtr< IFilterGraph2 > &filter_graph, const vcl_wstring &filename) |
Load filter graph from a *.grf file. | |
static vcl_string | get_guid_name (const GUID &guid) |
Get GUID name or FOURCC. | |
static GUID | get_guid_from_fourcc (const vcl_string &fourcc) |
Get multimedia subtype GUID from FOURCC. | |
static void | get_media_info (const AM_MEDIA_TYPE &amt, unsigned int &width, unsigned int &height, vidl_pixel_format &pixel_format) |
Extract information from AM_MEDIA_TYPE object. | |
static void | delete_media_type (AM_MEDIA_TYPE &amt) |
Delete AM_MEDIA_TYPE memory. | |
static void | print_capture_device_names () |
Print a list of capture device names (i.e., FriendlyName). | |
static vcl_vector< vcl_string > | get_capture_device_names () |
Get a list of capture device names (i.e., FriendlyName). | |
static CComPtr< IMoniker > | get_capture_device_moniker (const vcl_string &name) |
Get IMoniker associated with name. | |
static void | connect_filters (CComPtr< IFilterGraph2 > &filter_graph, CComPtr< IBaseFilter > &source, CComPtr< IBaseFilter > &target) |
Connect two filters directly. ***** check this, might have errors. |
Definition at line 28 of file vidl_dshow.h.
void vidl_dshow::connect_filters | ( | CComPtr< IFilterGraph2 > & | filter_graph, |
CComPtr< IBaseFilter > & | source, | ||
CComPtr< IBaseFilter > & | target | ||
) | [static] |
Connect two filters directly. ***** check this, might have errors.
Definition at line 517 of file vidl_dshow.cxx.
void vidl_dshow::delete_media_type | ( | AM_MEDIA_TYPE & | amt | ) | [static] |
Delete AM_MEDIA_TYPE memory.
Definition at line 469 of file vidl_dshow.cxx.
CComPtr< IMoniker > vidl_dshow::get_capture_device_moniker | ( | const vcl_string & | name | ) | [static] |
Get IMoniker associated with name.
Definition at line 507 of file vidl_dshow.cxx.
vcl_vector< vcl_string > vidl_dshow::get_capture_device_names | ( | void | ) | [static] |
Get a list of capture device names (i.e., FriendlyName).
Definition at line 496 of file vidl_dshow.cxx.
vcl_string vidl_dshow::get_error_text | ( | const char * | file, |
int | line, | ||
HRESULT | hr | ||
) | [static] |
Get an error description for the given HRESULT.
Definition at line 242 of file vidl_dshow.cxx.
GUID vidl_dshow::get_guid_from_fourcc | ( | const vcl_string & | fourcc | ) | [static] |
Get multimedia subtype GUID from FOURCC.
Definition at line 355 of file vidl_dshow.cxx.
vcl_string vidl_dshow::get_guid_name | ( | const GUID & | guid | ) | [static] |
Get GUID name or FOURCC.
Definition at line 349 of file vidl_dshow.cxx.
void vidl_dshow::get_media_info | ( | const AM_MEDIA_TYPE & | amt, |
unsigned int & | width, | ||
unsigned int & | height, | ||
vidl_pixel_format & | pixel_format | ||
) | [static] |
Extract information from AM_MEDIA_TYPE object.
Definition at line 373 of file vidl_dshow.cxx.
void vidl_dshow::initialize_com | ( | void | ) | [static] |
Initialize COM (must be called before using any of these functions).
Definition at line 235 of file vidl_dshow.cxx.
void vidl_dshow::load_graph_from_file | ( | const CComPtr< IFilterGraph2 > & | filter_graph, |
const vcl_wstring & | filename | ||
) | [static] |
Load filter graph from a *.grf file.
Definition at line 317 of file vidl_dshow.cxx.
void vidl_dshow::print_capture_device_names | ( | void | ) | [static] |
Print a list of capture device names (i.e., FriendlyName).
Definition at line 486 of file vidl_dshow.cxx.
void vidl_dshow::register_in_rot | ( | IUnknown * | unknown, |
DWORD & | reg | ||
) | [static] |
Register object in Running Object Table (ROT).
Register a filter graph in ROT for external loading with GraphEdit.
Definition at line 257 of file vidl_dshow.cxx.
void vidl_dshow::remove_from_rot | ( | DWORD | reg | ) | [static] |
Remove object from Running Object Table (ROT).
Remove a filter graph from ROT.
Definition at line 279 of file vidl_dshow.cxx.
void vidl_dshow::save_graph_to_file | ( | const CComPtr< IFilterGraph2 > & | filter_graph, |
const vcl_string & | filename | ||
) | [static] |
Save filter graph to a *.grf file.
Definition at line 287 of file vidl_dshow.cxx.