Skip to content

VideoSubtypeIndex

function

Delphi
function VideoSubtypeIndex (Value: string): LongInt;
C++Builder
System::LongInt __fastcall VideoSubtypeIndex(System::UnicodeString Value);
C#
public int VideoSubtypeIndex(string Value);
VB.NET
Public Function VideoSubtypeIndex(Value As String) As Integer
C++/Qt
int VideoSubtypeIndex (wchar_t *Value);

Returns the index of a given video subtype in the VideoSubtypes list. The function accepts wildcards, e.g.:

VideoGrabber1.VideoSubtype := VideoGrabber1.VideoSubtypeIndex ('RGB24'); // selects the "RGB24" video subtype.
VideoGrabber1.VideoSubtype := VideoGrabber1.VideoSubtypeIndex ('RGB*'); // selects the 1st video subtype that begins with "RGB".
VideoGrabber1.VideoSubtype := VideoGrabber1.VideoSubtypeIndex ('*RGB*'); // selects the 1st video subtype that contains "RGB".