Skip to main content

OH_DecodingOptions_SetPixelFormat

Function OH_DecodingOptions_SetPixelFormat 

Source
pub unsafe extern "C" fn OH_DecodingOptions_SetPixelFormat(
    options: *mut OH_DecodingOptions,
    pixelFormat: i32,
) -> Image_ErrorCode
Expand description

@brief Sets the pixel format.

@param options Pointer to an OH_DecodingOptions object. @param pixelFormat Pixel format. For details about the available options, see {@link PIXEL_FORMAT}. @return {@link IMAGE_SUCCESS} if the execution is successful.
{@link IMAGE_BAD_PARAMETER} options is nullptr. @since 12