CaptureData Class¶
Namespace: id3.Devices
Definition¶
This class is designed to encapsulate the entirety of data captured by a device, ranging from multimedia streams to sensor data.
It not only stores the raw data but also maintains metadata like the number of frames captured and precise timestamps, thereby offering a comprehensive view of the capture context.
Its design is geared towards ensuring ease of data manipulation and accessibility, supporting a wide range of applications from video processing to data logging and analysis.
class CaptureData
class CaptureData implements Finalizable
public partial class CaptureData
public class CaptureData implements AutoCloseable, Serializable
typedef struct id3DevicesCaptureData *ID3_DEVICES_CAPTURE_DATA;
Usage¶
captureDataInstance = CaptureData()
# ...
Explicit destruction
# ...
del captureDataInstance
final captureDataInstance = sdk.CaptureData();
// ...
Explicit destruction
// ...
captureDataInstance.dispose()
using (var captureDataInstance = new CaptureData())
{
// ...
}
Explicit destruction
var captureDataInstance = new CaptureData()
// ...
captureDataInstance.Dispose()
try (CaptureData captureDataInstance = new CaptureData()) {
// ...
}
Explicit destruction
CaptureData captureDataInstance = new CaptureData();
// ...
captureDataInstance.close();
ID3_DEVICES_CAPTURE_DATA hCaptureData{};
int err = id3DevicesCaptureData_Initialize(&hCaptureData);
if (err == ID3_SUCCESS) {
// ...
id3DevicesCaptureData_Dispose(&hCaptureData);
}
Properties¶
Name |
Type |
Description |
---|---|---|
byte[] |
Stores the raw bytes of captured data, accommodating any form of binary data. |
|
int |
Maintains a count of the total number of data frames captured since the initiation of the capture session. |
|
string |
Provides a string representation of the captured data, facilitating scenarios where data needs to be interpreted or displayed as text. |
|
long |
Records the exact time of data capture, typically as a timestamp in a universal format. |
Methods¶
Name |
Description |
---|---|
Clones the CaptureData object. |