1# OH_PackingOptions 2 3## Overview 4 5The OH_PackingOptions struct describes the image packing options encapsulated at the native layer. The struct cannot be directly operated. Instead, functions must be called to create and release the struct and operate the fields in the struct. 6 7To create an OH_PackingOptions object, call [OH_PackingOptions_Create](capi-image-packer-native-h.md#oh_packingoptions_create). 8 9To release an OH_PackingOptions object, call [OH_PackingOptions_Release](capi-image-packer-native-h.md#oh_packingoptions_release). 10 11The table below describes the content and operation mode of the OH_PackingOptions struct. 12 13| Field Type| Field Name| Field Description|Operation Function| Function Description| 14| -------- | -------- | -------- | -------- | -------- | 15| Image_MimeType | mimeType | MIME type.| [OH_PackingOptions_GetMimeType](capi-image-packer-native-h.md#oh_packingoptions_getmimetype) | Obtains the MIME type.| 16| Image_MimeType | mimeType | MIME type.| [OH_PackingOptions_SetMimeType](capi-image-packer-native-h.md#oh_packingoptions_setmimetype) | Sets the MIME type.| 17| uint32_t | quality | Encoding quality.| [OH_PackingOptions_GetQuality](capi-image-packer-native-h.md#oh_packingoptions_getquality) | Obtains the encoding quality.| 18| uint32_t | quality | Encoding quality.| [OH_PackingOptions_SetQuality](capi-image-packer-native-h.md#oh_packingoptions_setquality) | Sets the encoding quality.| 19| int32_t | desiredDynamicRange | Desired dynamic range.| [OH_PackingOptions_GetDesiredDynamicRange](capi-image-packer-native-h.md#oh_packingoptions_getdesireddynamicrange) | Obtains the desired dynamic range during encoding.| 20| int32_t | desiredDynamicRange | Desired dynamic range.| [OH_PackingOptions_SetDesiredDynamicRange](capi-image-packer-native-h.md#oh_packingoptions_setdesireddynamicrange) | Sets the desired dynamic range during encoding.| 21 22**Since**: 12 23 24**Related module**: [Image_NativeModule](capi-image-nativemodule.md) 25 26**Header file**: [image_packer_native.h](capi-image-packer-native-h.md) 27