pixelmap add tosdr capi

Signed-off-by: xiaobjy <zhongjiyuan1@huawei.com>
Change-Id: I59a7f6bf561029936e6b410df18a2ce294301ab2
This commit is contained in:
xiaobjy 2024-04-19 17:43:03 +08:00
parent 6324776f59
commit faf63e1d13
2 changed files with 15 additions and 0 deletions

View File

@ -334,6 +334,17 @@ Image_ErrorCode OH_PixelmapNative_ReadPixels(OH_PixelmapNative *pixelmap, uint8_
*/
Image_ErrorCode OH_PixelmapNative_WritePixels(OH_PixelmapNative *pixelmap, uint8_t *source, size_t bufferSize);
/**
* @brief Convert {@link OH_PixelmapNative} to standard dynamic range.
*
* @param pixelmap The Pixelmap pointer will be operated. Pointer connot be null.
* @return Returns {@link Image_ErrorCode} IMAGE_SUCCESS - The operation is successful.
* returns {@link Image_ErrorCode} IMAGE_BAD_PARAMETER - Parameter error.Possible causes:Parameter verification failed.
* returns {@link Image_ErrorCode} IMAGE_UNSUPPORTED_OPERATION - Unsupported operation.Pixelmap can't be converted.
* @since 12
*/
Image_ErrorCode OH_PixelmapNative_ToSdr(OH_PixelmapNative *pixelmap);
/**
* @brief Obtains pixel map information of this image.
*

View File

@ -79,6 +79,10 @@
"first_introduced": "12",
"name": "OH_PixelmapNative_WritePixels"
},
{
"first_introduced": "12",
"name": "OH_PixelmapNative_ToSdr"
},
{
"first_introduced": "12",
"name": "OH_PixelmapNative_GetImageInfo"