IAMStreamConfig Interface
|
Retrieves the video stream's format.
|
.
|
Sets the video stream's format.
|
Retrieves the number of stream capabilities (video modes) available for the current camera.
|
|
Obtains video capabilities of a stream.
|
pmt
|
[in/out] Pointer to a AM_MEDIA_TYPE structure.
|
piCount
|
[out] Pointer to the number of VIDEO_STREAM_CONFIG_CAPS (video modes) supported.
|
piSize
|
[out] Pointer to the size of the VIDEO_STREAM_CONFIG_CAPS structure.
|
iIndex
|
[in] Index to the desired media type and capability pair.
|
pSCC
|
[out] Pointer to a stream configuration structure. The structure is defined as follows:
|
|
typedef struct _VIDEO_STREAM_CONFIG_CAPS
|
{
|
GUID guid; // set to MEDIATYPE_Video
|
ULONG VideoStandard; // set to AnalogVideo_None
|
SIZE InputSize; // maximum image size
|
SIZE MinCroppingSize; // minimum ROI size (Format 7)
|
SIZE MaxCroppingSize; // maximum ROI size (Format 7)
|
int CropGranularityX; // horizontal size granularity (Format 7)
|
int CropGranularityY; // vertical size granularity (Format 7)
|
int CropAlignX; // horizontal offset granularity (Format 7)
|
int CropAlignY; // vertical offset granularity (Format 7)
|
SIZE MinOutputSize; // same as MinCroppingSize
|
SIZE MaxOutputSize; // same as MaxCroppingSize
|
int OutputGranularityX; // set to zero
|
int OutputGranularityY; // set to zero
|
int StretchTapsX; // set to zero
|
int StretchTapsY; // set to zero
|
int ShrinkTapsX; // set to zero
|
int ShrinkTapsY; // set to zero
|
LONGLONG MinFrameInterval; // minimum frame interval in 100 nanoseconds
|
LONGLONG MaxFrameInterval; // maximum frame interval in 100 nanoseconds
|
LONG MinBitsPerSecond; // minimum bandwidth
|
LONG MaxBitsPerSecond; // maximum bandwidth
|
} VIDEO_STREAM_CONFIG_CAPS;
|
|
|
S_OK
|
Success
|
E_FAIL
|
Failure.
|
E_INVALIDARG
|
Invalid argument.
|
|
|
|