pub unsafe extern "C" fn OH_VideoProcessing_SetSurface(
videoProcessor: *mut OH_VideoProcessing,
window: *const OHNativeWindow,
) -> VideoProcessing_ErrorCodeAvailable on crate features
api-12 and video-processing only.Expand description
Set the output surface for video processing.
Set the output surface before starting video processing.
§Arguments
-
videoProcessor- A video processing instance pointer. -
window- The output surface pointer.
§Returns
- [
VIDEO_PROCESSING_SUCCESS] if setting output surface successfully.
[VIDEO_PROCESSING_ERROR_INVALID_INSTANCE] if instance is null or not a video processing instance.
[VIDEO_PROCESSING_ERROR_INVALID_PARAMETER] if window is null.
Available since API-level: 12