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

count

int

Gets the number of elements contained in the list

operator [int index]

VideoFormat

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

add

Adds an item to the VideoFormatList object.

clear

Clears the VideoFormatList object.

findNearestVideoFormat

Searches the list to identify the video format that most closely matches the specified width, height, and frame rate criteria

get

Gets an item of the VideoFormatList object.

getCount

Gets the number of elements in the VideoFormatList object.

removeAt

Removes an element of the VideoFormatList object.

resize

VideoFormatList object.

set

Sets an item of the VideoFormatList object.