Skip to main content

OH_DecodingOptions_SetDesiredDynamicRange

Function OH_DecodingOptions_SetDesiredDynamicRange 

Source
pub unsafe extern "C" fn OH_DecodingOptions_SetDesiredDynamicRange(
    options: *mut OH_DecodingOptions,
    desiredDynamicRange: i32,
) -> ImageResult
Available on crate features api-12 and image-source only.
Expand description

Set desiredDynamicRange number for OH_DecodingOptions struct.

§Arguments

  • options - The OH_DecodingOptions pointer will be operated. Pointer connot be null.

  • desiredDynamicRange - the number of desired dynamic range IMAGE_DYNAMIC_RANGE.

§Returns

  • Returns [Image_ErrorCode] IMAGE_SUCCESS - The operation is successful. returns [Image_ErrorCode] IMAGE_BAD_PARAMETER - Parameter error.Possible causes:Parameter verification failed.

Available since API-level: 12