pub unsafe extern "C" fn OH_ImagePackerNative_PackToDataFromPixelmap(
imagePacker: *mut OH_ImagePackerNative,
options: *mut OH_PackingOptions,
pixelmap: *mut OH_PixelmapNative,
outData: *mut u8,
size: *mut usize,
) -> Image_ErrorCodeExpand description
@brief Encodes a PixelMap into data in a given format.
@param imagePacker Pointer to OH_ImagePackerNative.
@param options Pointer to an OH_PackingOptions struct.
@param pixelmap Pointer to the PixelMap to encode.
@param outData Pointer to the buffer used to store the output data.
@param size Pointer to the size of the buffer.
@return {@link IMAGE_SUCCESS} if the execution is successful.
{@link IMAGE_BAD_PARAMETER}imagePacker is nullptr, or options is nullptr,
or pixelmap is nullptr, or outData is nullptr.
{@link IMAGE_ENCODE_FAILED} encode failed.
@since 12