TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
A class to perform various tests on DirectShow and BDA (Windows-specific). More...
#include <tsDirectShowTest.h>
Public Types | |
enum | TestType { NONE , LIST_DEVICES , ENUMERATE_DEVICES , TUNING_SPACES , BDA_TUNERS } |
List of DirectShow tests. More... | |
Public Member Functions | |
DirectShowTest (std::ostream &output, Report &report) | |
Constructor. | |
bool | displayDevicesByCategory (const ::GUID &category, const UString &name, bool details=true, const UString &margin=UString()) |
Display all devices of the specified category. | |
void | displayInterfaces (::IUnknown *object, const UString &margin=UString()) |
List some known interfaces that an object may expose. | |
void | displayObject (::IUnknown *object, const UString &margin=UString()) |
Show selected properties of a COM object. | |
bool | displayTuningSpaces (const UString &margin=UString()) |
Display all DirectShow tuning spaces. | |
void | enumerateDevices (const UString &margin=UString()) |
Enumerate DirectShow devices, same as runTest(ENUMERATE_DEVICES). | |
void | listDevices (const UString &margin=UString()) |
Brief list of DirectShow devices, same as runTest(LIST_DEVICES). | |
void | runTest (TestType type) |
Run one test. | |
void | testBDATuners (const UString &margin=UString()) |
Test BDA tuners, same as runTest(BDA_TUNERS). | |
void | testTuningSpaces (const UString &margin=UString()) |
Test tuning spaces, same as runTest(TUNING_SPACES). | |
Static Public Attributes | |
static const Enumeration | TestNames |
An enumeration of TestType names, typically used for command line options. | |
A class to perform various tests on DirectShow and BDA (Windows-specific).
ts::DirectShowTest::DirectShowTest | ( | std::ostream & | output, |
Report & | report | ||
) |
Constructor.
[in,out] | output | Where to display test results. |
[in,out] | report | Where to report errors. |
void ts::DirectShowTest::runTest | ( | TestType | type | ) |
Run one test.
[in] | type | The test to run. |
Brief list of DirectShow devices, same as runTest(LIST_DEVICES).
[in] | margin | Left margin to display. |
Enumerate DirectShow devices, same as runTest(ENUMERATE_DEVICES).
[in] | margin | Left margin to display. |
Test tuning spaces, same as runTest(TUNING_SPACES).
[in] | margin | Left margin to display. |
Test BDA tuners, same as runTest(BDA_TUNERS).
[in] | margin | Left margin to display. |
bool ts::DirectShowTest::displayDevicesByCategory | ( | const ::GUID & | category, |
const UString & | name, | ||
bool | details = true , |
||
const UString & | margin = UString() |
||
) |
Display all devices of the specified category.
[in] | category | Category of the devices to display. |
[in] | name | Name of the category to display. |
[in] | details | When true, list all details. |
[in] | margin | Left margin to display. |
Display all DirectShow tuning spaces.
[in] | margin | Left margin to display. |
void ts::DirectShowTest::displayInterfaces | ( | ::IUnknown * | object, |
const UString & | margin = UString() |
||
) |
List some known interfaces that an object may expose.
Warning, very slow, test interfaces one by one.
[in] | object | Object to query. |
[in] | margin | Left margin to display. |