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);

Retrieves the index of a given video subtype in the VideoSubtypes list. The function accepts wildcards. E.g.: VideoGrabber1.VideoSubtype := VideoSubtypeIndex ('RGB24'); // selects the "RGB24" video subtype. VideoGrabber1.VideoSubtype := VideoSubtypeIndex ('RGB'); // selects the 1st video subtype that begins with "RGB". VideoGrabber1.VideoSubtype := VideoSubtypeIndex ('RGB'); // selects the 1st video subtype that contains "RGB".