VideoFormatList Class¶
Namespace: id3.Devices
Definition¶
Manages a list of video_format objects, allowing applications to query and select from the available video formats offered by a device
This class supports operations to find the video format that best matches desired specifications, facilitating optimal video capture and playback configurations.
class VideoFormatList
class VideoFormatList implements Finalizable
public partial class VideoFormatList
public class VideoFormatList implements AutoCloseable, Serializable
typedef struct id3DevicesVideoFormatList *ID3_DEVICES_VIDEO_FORMAT_LIST;
Usage¶
videoFormatListInstance = VideoFormatList()
# ...
Explicit destruction
# ...
del videoFormatListInstance
final videoFormatListInstance = sdk.VideoFormatList();
// ...
Explicit destruction
// ...
videoFormatListInstance.dispose()
using (var videoFormatListInstance = new VideoFormatList())
{
// ...
}
Explicit destruction
var videoFormatListInstance = new VideoFormatList()
// ...
videoFormatListInstance.Dispose()
try (VideoFormatList videoFormatListInstance = new VideoFormatList()) {
// ...
}
Explicit destruction
VideoFormatList videoFormatListInstance = new VideoFormatList();
// ...
videoFormatListInstance.close();
ID3_DEVICES_VIDEO_FORMAT_LIST hVideoFormatList{};
int err = id3DevicesVideoFormatList_Initialize(&hVideoFormatList);
if (err == ID3_SUCCESS) {
// ...
id3DevicesVideoFormatList_Dispose(&hVideoFormatList);
}
Properties¶
Name |
Type |
Description |
---|---|---|
int |
Gets the number of elements contained in the list |
|
operator [int index] |
Gets or sets the element at the specified index in the list. |
Iteration¶
This class supports iteration in Dart, C#, Java and Python.
Methods¶
Name |
Description |
---|---|
Adds an item to the VideoFormatList object. |
|
Clears the VideoFormatList object. |
|
Searches the list to identify the video format that most closely matches the specified width, height, and frame rate criteria |
|
Gets an item of the VideoFormatList object. |
|
Gets the number of elements in the VideoFormatList object. |
|
Removes an element of the VideoFormatList object. |
|
VideoFormatList object. |
|
Sets an item of the VideoFormatList object. |