Skip to main content
Version: 20 Mar 2024

MLCameraCaptureStreamConfig

Structure to encapsulate stream configurations

Public Methods

MLCameraCaptureStreamConfig Create

Create and return an initialized version of this struct.

public static MLCameraCaptureStreamConfig Create()

Returns: A new instance of this struct.


MLCameraCaptureStreamConfig Create

public static MLCameraCaptureStreamConfig Create(
MLCamera.CaptureStreamConfig config
)

Parameters

TypeNameDescription
MLCamera.CaptureStreamConfigconfig

Public Attributes

CaptureType

capture_type Image Preview


public MLCamera.CaptureType CaptureType;

TypeDescription
MLCamera.CaptureTypeCapture operation type

Height

Resolution height


public int Height;


MediaRecorderSurfaceHandle

media recorder surface, only valid for capture type video * set to ML_INVALID_HANDLE for yuv/rgba video capture


public ulong MediaRecorderSurfaceHandle;


OutputFormat

output Format


public MLCamera.OutputFormat OutputFormat;

TypeDescription
MLCamera.OutputFormatCaptured output format

Width

Capture Resolution


public int Width;