Skip to main content
Version: 12 Dec 2024

MLCameraCaptureStreamConfig

Module: Camera

More...

#include <ml_camera_v2.h>

Public Attributes

TypeName
MLCameraCaptureTypecapture_type
int32_twidth
int32_theight
MLCameraOutputFormatoutput_format
MLHandlenative_surface_handle
Native surface.

Detailed Description

struct MLCameraCaptureStreamConfig;

A structure to encapsulate stream configurations.


Public Attributes Documentation

capture_type

MLCameraCaptureType capture_type;
TypeDescription
MLCameraCaptureTypeCaptures operation type.

Capture type.


width

int32_t width;

Specifies resolution width.


height

int32_t height;

Specifies resolution height.


output_format

MLCameraOutputFormat output_format;
TypeDescription
MLCameraOutputFormatCaptured output format. These three parameters determine which formats are supported:

Specifies output format.


native_surface_handle

MLHandle native_surface_handle;

Native surface.

TypeDescription
MLHandleInteger handle type used to reference many things returned by the API, instead of returning pointers directly. Use MLHandleIsValid() to check if a handle is valid or not.

Used for compressed video recording. Handle returned by MLMediaRecorderGetInputSurface should be provided. Maximum video recording resolution supported is 4K(3840x2160). Only valid for capture type MLCameraCaptureType_Video. Set to ML_INVALID_HANDLE for yuv/rgba video capture.