Skip to main content

OH_VideoProcessing_GetParameter

Function OH_VideoProcessing_GetParameter 

Source
pub unsafe extern "C" fn OH_VideoProcessing_GetParameter(
    videoProcessor: *mut OH_VideoProcessing,
    parameter: *mut OH_AVFormat,
) -> VideoProcessing_ErrorCode
Available on crate features api-12 and video-processing only.
Expand description

Get parameter of video processing.

Get parameter identified by the specified parameter key.

§Arguments

  • videoProcessor - An video processing instance pointer.

  • parameter - The parameter used by the video processing instance.

§Returns

  • [VIDEO_PROCESSING_SUCCESS] if getting parameter is successful.

[VIDEO_PROCESSING_ERROR_INVALID_INSTANCE] if instance is null or not an video processing instance.

[VIDEO_PROCESSING_ERROR_INVALID_PARAMETER] if the parameter is null.

Available since API-level: 12