OH_PackingOptions
typedef struct OH_PackingOptions OH_PackingOptions
Overview
OH_PackingOptions is an image encoding option struct encapsulated at the native layer. It cannot be manipulated directly; instead, functions shall be called to create and release the struct, and operate on its specific fields.
To create an OH_PackingOptions object, call OH_PackingOptions_Create.
To release an OH_PackingOptions object, call OH_PackingOptions_Release.
The table below describes the content and operation mode of the OH_PackingOptions struct.
| Field Type | Field Name | Field Description | Operation Function | Function Description |
|---|---|---|---|---|
| Image_MimeType | mimeType | MIME type. | OH_PackingOptions_GetMimeType | Obtains the MIME type. |
| Image_MimeType | mimeType | MIME type. | OH_PackingOptions_SetMimeType | Sets the MIME type. |
| uint32_t | quality | Encoding quality. | OH_PackingOptions_GetQuality | Obtains the encoding quality. |
| uint32_t | quality | Encoding quality. | OH_PackingOptions_SetQuality | Sets the encoding quality. |
| int32_t | desiredDynamicRange | Desired dynamic range. | OH_PackingOptions_GetDesiredDynamicRange | Obtains the desired dynamic range during encoding. |
| int32_t | desiredDynamicRange | Desired dynamic range. | OH_PackingOptions_SetDesiredDynamicRange | Sets the desired dynamic range during encoding. |
Since: 12
Related module: Image_NativeModule
Header file: image_packer_native.h