MLCameraCaptureStreamConfig
Module: Camera
#include <ml_camera_v2.h>
Public Attributes
Type | Name |
---|---|
MLCameraCaptureType | capture_type |
int32_t | width |
int32_t | height |
MLCameraOutputFormat | output_format |
MLHandle | native_surface_handle Native surface. |
Detailed Description
struct MLCameraCaptureStreamConfig;
A structure to encapsulate stream configurations.
Public Attributes Documentation
capture_type
MLCameraCaptureType capture_type;
Type | Description |
---|---|
MLCameraCaptureType | Captures operation type. |
Capture type.
width
int32_t width;
Specifies resolution width.
height
int32_t height;
Specifies resolution height.
output_format
MLCameraOutputFormat output_format;
Type | Description |
---|---|
MLCameraOutputFormat | Captured output format. These three parameters determine which formats are supported: |
Specifies output format.
native_surface_handle
MLHandle native_surface_handle;
Native surface.
Type | Description |
---|---|
MLHandle | Integer 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.