Skip to main content

Crate ohos_native_buffer_sys

Crate ohos_native_buffer_sys 

Source

Structs§

BufferHandle
@brief Buffer handle used to transfer and obtain information about the buffer. @since 8
NativeWindowBuffer
@brief native window buffer. @since 8
OHExtDataHandle
@brief Defines the ExtData Handle @since 9 @deprecated since 10
OHHDRMetaData
@brief Defines the HDR metadata. @since 9 @deprecated since 10
OHIPCParcel
OH_NativeBuffer
OH_NativeBuffer_ColorXY
@brief Indicates the color x and y.
OH_NativeBuffer_Config
@brief OH_NativeBuffer config. \n Used to allocating new OH_NativeBuffer and query parameters if existing ones.
OH_NativeBuffer_Cta861
@brief Indicates the cta861.3 metadata.
OH_NativeBuffer_Plane
@brief Holds info for a single image plane. \n
OH_NativeBuffer_Planes
@brief Holds all image planes. \n
OH_NativeBuffer_Smpte2086
@brief Indicates the smpte2086 metadata.
OH_NativeBuffer_StaticMetadata
@brief Indicates the HDR static metadata.
Region
@brief indicates a dirty region where content is updated. @since 8
Region_Rect
if rects is nullptr, fill the Buffer dirty size by default
__IncompleteArrayField

Constants§

OHHDRMetadataKey_OH_METAKEY_BLUE_PRIMARY_X
OHHDRMetadataKey_OH_METAKEY_BLUE_PRIMARY_Y
OHHDRMetadataKey_OH_METAKEY_GREEN_PRIMARY_X
OHHDRMetadataKey_OH_METAKEY_GREEN_PRIMARY_Y
OHHDRMetadataKey_OH_METAKEY_HDR10_PLUS
OHHDRMetadataKey_OH_METAKEY_HDR_VIVID
OHHDRMetadataKey_OH_METAKEY_MAX_CONTENT_LIGHT_LEVEL
OHHDRMetadataKey_OH_METAKEY_MAX_FRAME_AVERAGE_LIGHT_LEVEL
OHHDRMetadataKey_OH_METAKEY_MAX_LUMINANCE
OHHDRMetadataKey_OH_METAKEY_MIN_LUMINANCE
OHHDRMetadataKey_OH_METAKEY_RED_PRIMARY_X
OHHDRMetadataKey_OH_METAKEY_RED_PRIMARY_Y
OHHDRMetadataKey_OH_METAKEY_WHITE_PRIMARY_X
OHHDRMetadataKey_OH_METAKEY_WHITE_PRIMARY_Y
OHScalingModeV2_OH_SCALING_MODE_FREEZE_V2
the window content is not updated until a buffer of the window size is received
OHScalingModeV2_OH_SCALING_MODE_NO_SCALE_CROP_V2
the window is clipped to the size of the buffer’s clipping rectangle pixels outside the clipping rectangle are considered fully transparent.
OHScalingModeV2_OH_SCALING_MODE_SCALE_CROP_V2
the buffer is uniformly scaled so that the smaller size of the buffer matches the window size
OHScalingModeV2_OH_SCALING_MODE_SCALE_FIT_V2
Adapt to the buffer and scale proportionally to the buffer size. Prioritize displaying all buffer content. If the size is not the same as the window size, fill the unfilled area of the window with a background color.
OHScalingModeV2_OH_SCALING_MODE_SCALE_TO_WINDOW_V2
the buffer is scaled in two dimensions to match the window size
OHScalingMode_OH_SCALING_MODE_FREEZE
the window content is not updated until a buffer of the window size is received
OHScalingMode_OH_SCALING_MODE_NO_SCALE_CROP
the window is clipped to the size of the buffer’s clipping rectangle pixels outside the clipping rectangle are considered fully transparent.
OHScalingMode_OH_SCALING_MODE_SCALE_CROP
the buffer is uniformly scaled so that the smaller size of the buffer matches the window size
OHScalingMode_OH_SCALING_MODE_SCALE_TO_WINDOW
the buffer is scaled in two dimensions to match the window size
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_ADOBE_RGB
< Adobe RGB
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_BT2020
< BT2020
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_BT2100_HLG
< BT2100 HLG
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_BT2100_PQ
< BT2100 PQ
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_DCI_P3
< DCI P3
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_DISPLAY_BT2020
< Display BT2020
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_DISPLAY_P3
< Display P3
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_NATIVE
< Native or default
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_SRGB
< SRGB
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_STANDARD_BT601
< Standard BT601
OH_NativeBuffer_ColorGamut_NATIVEBUFFER_COLOR_GAMUT_STANDARD_BT709
< Standard BT709
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_ADOBERGB_FULL
COLORPRIMARIES_ADOBERGB | (TRANSFUNC_ADOBERGB << 8) | (MATRIX_ADOBERGB << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_ADOBERGB_LIMIT
COLORPRIMARIES_ADOBERGB | (TRANSFUNC_ADOBERGB << 8) | (MATRIX_ADOBERGB << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT601_EBU_FULL
COLORPRIMARIES_BT601_P | (TRANSFUNC_BT709 << 8) | (MATRIX_BT601_P << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT601_EBU_LIMIT
COLORPRIMARIES_BT601_P | (TRANSFUNC_BT709 << 8) | (MATRIX_BT601_P << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT601_SMPTE_C_FULL
COLORPRIMARIES_BT601_N | (TRANSFUNC_BT709 << 8) | (MATRIX_BT601_N << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT601_SMPTE_C_LIMIT
COLORPRIMARIES_BT601_N | (TRANSFUNC_BT709 << 8) | (MATRIX_BT601_N << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT709_FULL
COLORPRIMARIES_BT709 | (TRANSFUNC_BT709 << 8) | (MATRIX_BT709 << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT709_LIMIT
COLORPRIMARIES_BT709 | (TRANSFUNC_BT709 << 8) | (MATRIX_BT709 << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT2020_HLG_FULL
COLORPRIMARIES_BT2020 | (TRANSFUNC_HLG << 8) | (MATRIX_BT2020 << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT2020_HLG_LIMIT
COLORPRIMARIES_BT2020 | (TRANSFUNC_HLG << 8) | (MATRIX_BT2020 << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT2020_PQ_FULL
COLORPRIMARIES_BT2020 | (TRANSFUNC_PQ << 8) | (MATRIX_BT2020 << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_BT2020_PQ_LIMIT
COLORPRIMARIES_BT2020 | (TRANSFUNC_PQ << 8) | (MATRIX_BT2020 << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_DISPLAY_BT2020_HLG
equal to OH_COLORSPACE_BT2020_HLG_FULL
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_DISPLAY_BT2020_PQ
equal to OH_COLORSPACE_BT2020_PQ_FULL
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_DISPLAY_BT2020_SRGB
COLORPRIMARIES_BT2020 | (TRANSFUNC_SRGB << 8) | (MATRIX_BT2020 << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_DISPLAY_P3_HLG
equal to OH_COLORSPACE_P3_HLG_FULL
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_DISPLAY_P3_PQ
equal to OH_COLORSPACE_P3_PQ_FULL
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_DISPLAY_P3_SRGB
equal to OH_COLORSPACE_P3_FULL
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_DISPLAY_SRGB
equal to OH_COLORSPACE_SRGB_FULL
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_LINEAR_BT709
equal to OH_COLORSPACE_LINEAR_SRGB
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_LINEAR_BT2020
COLORPRIMARIES_BT2020 | (TRANSFUNC_LINEAR << 8)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_LINEAR_P3
COLORPRIMARIES_P3_D65 | (TRANSFUNC_LINEAR << 8)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_LINEAR_SRGB
COLORPRIMARIES_SRGB | (TRANSFUNC_LINEAR << 8)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_NONE
None color space
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_P3_FULL
COLORPRIMARIES_P3_D65 | (TRANSFUNC_SRGB << 8) | (MATRIX_P3 << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_P3_HLG_FULL
COLORPRIMARIES_P3_D65 | (TRANSFUNC_HLG << 8) | (MATRIX_P3 << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_P3_HLG_LIMIT
COLORPRIMARIES_P3_D65 | (TRANSFUNC_HLG << 8) | (MATRIX_P3 << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_P3_LIMIT
COLORPRIMARIES_P3_D65 | (TRANSFUNC_SRGB << 8) | (MATRIX_P3 << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_P3_PQ_FULL
COLORPRIMARIES_P3_D65 | (TRANSFUNC_PQ << 8) | (MATRIX_P3 << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_P3_PQ_LIMIT
COLORPRIMARIES_P3_D65 | (TRANSFUNC_PQ << 8) | (MATRIX_P3 << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_SRGB_FULL
COLORPRIMARIES_SRGB | (TRANSFUNC_SRGB << 8) | (MATRIX_BT601_N << 16) | (RANGE_FULL << 21)
OH_NativeBuffer_ColorSpace_OH_COLORSPACE_SRGB_LIMIT
COLORPRIMARIES_SRGB | (TRANSFUNC_SRGB << 8) | (MATRIX_BT601_N << 16) | (RANGE_LIMITED << 21)
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_BGRA_4444
< BGRX4444 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_BGRA_5551
< BGRX5551 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_BGRA_8888
< BGRX8888 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_BGRX_4444
< BGR565 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_BGRX_5551
< BGRA4444 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_BGRX_8888
< BGRA5551 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_BGR_565
< RGB888 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_BUTT
vender mask format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_CLUT1
CLUT1 format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_CLUT4
CLUT4 format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_CLUT8
CLUT8 format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RAW10
Raw 10bit packed format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGBA_4444
< RGBX4444 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGBA_5551
< RGBX5551 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGBA_5658
< RGB565 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGBA_8888
< RGBX8888 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGBA_1010102
RGBA_1010102 packed format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGBX_4444
< RGBA5658 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGBX_5551
< RGB444 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGBX_8888
< RGB555 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGB_444
< RGBA4444 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGB_555
< RGBA5551 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGB_565
CLUT4 format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_RGB_888
< RGBA8888 format */
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_UYVY_422_PKG
UYVY422 packed format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_VENDER_MASK
vender mask format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_VYUY_422_PKG
VYUY422 packed format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCBCR_420_P
YCBCR420 plannar format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCBCR_420_SP
YCBCR420 semi-plannar format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCBCR_422_P
YCBCR422 plannar format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCBCR_422_SP
YCBCR422 semi-plannar format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCBCR_P010
YCBCR420 semi-planar 10bit packed format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCRCB_420_P
YCRCB420 plannar format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCRCB_420_SP
YCRCB420 semi-plannar format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCRCB_422_P
YCRCB422 plannar format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCRCB_422_SP
YCRCB422 semi-plannar format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YCRCB_P010
YCRCB420 semi-planar 10bit packed format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YUV_422_I
< BGRA8888 format */ **
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YUYV_422_PKG
YUYV422 packed format @since 12
OH_NativeBuffer_Format_NATIVEBUFFER_PIXEL_FMT_YVYU_422_PKG
YVYU422 packed format @since 12
OH_NativeBuffer_MetadataKey_OH_HDR_DYNAMIC_METADATA
byte stream of SEI in video stream
OH_NativeBuffer_MetadataKey_OH_HDR_METADATA_TYPE
value: OH_NativeBuffer_MetadataType
OH_NativeBuffer_MetadataKey_OH_HDR_STATIC_METADATA
value: OH_NativeBuffer_StaticMetadata
OH_NativeBuffer_MetadataType_OH_VIDEO_HDR_HDR10
HDR10
OH_NativeBuffer_MetadataType_OH_VIDEO_HDR_HLG
HLG
OH_NativeBuffer_MetadataType_OH_VIDEO_HDR_VIVID
HDR VIVID
OH_NativeBuffer_TransformType_NATIVEBUFFER_FLIP_H
< Flip horizontally
OH_NativeBuffer_TransformType_NATIVEBUFFER_FLIP_H_ROT90
< Flip horizontally and rotate 90 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_FLIP_H_ROT180
< Flip horizontally and rotate 180 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_FLIP_H_ROT270
< Flip horizontally and rotate 270 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_FLIP_V
< Flip vertically
OH_NativeBuffer_TransformType_NATIVEBUFFER_FLIP_V_ROT90
< Flip vertically and rotate 90 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_FLIP_V_ROT180
< Flip vertically and rotate 180 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_FLIP_V_ROT270
< Flip vertically and rotate 270 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_ROTATE_90
< Rotation by 90 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_ROTATE_180
< Rotation by 180 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_ROTATE_270
< Rotation by 270 degrees
OH_NativeBuffer_TransformType_NATIVEBUFFER_ROTATE_NONE
< No rotation
OH_NativeBuffer_Usage_NATIVEBUFFER_USAGE_ALIGNMENT_512
< Often be mapped for direct CPU reads */ **
OH_NativeBuffer_Usage_NATIVEBUFFER_USAGE_CPU_READ
OH_NativeBuffer_Usage_NATIVEBUFFER_USAGE_CPU_READ_OFTEN
< For GPU read case */ **
OH_NativeBuffer_Usage_NATIVEBUFFER_USAGE_CPU_WRITE
< CPU read buffer */
OH_NativeBuffer_Usage_NATIVEBUFFER_USAGE_HW_RENDER
@since 12
OH_NativeBuffer_Usage_NATIVEBUFFER_USAGE_HW_TEXTURE
< For GPU write case */ **
OH_NativeBuffer_Usage_NATIVEBUFFER_USAGE_MEM_DMA
< CPU write memory */

Functions§

OH_NativeBuffer_Alloc⚠
@brief Alloc a OH_NativeBuffer that matches the passed BufferRequestConfig. \n A new OH_NativeBuffer instance is created each time this function is called.\n This interface needs to be used in conjunction with OH_NativeBuffer_Unreference, otherwise memory leaks will occur.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_FromNativeWindowBuffer⚠
@brief Converts an OHNativeWindowBuffer instance to an OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_GetColorSpace⚠
@brief Get the color space of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_GetConfig⚠
@brief Return a config of the OH_NativeBuffer in the passed OHNativeBufferConfig struct.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_GetMetadataValue⚠
@brief Set the metadata type of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_GetSeqNum⚠
@brief Get the system wide unique sequence number of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_Map⚠
@brief Provide direct cpu access to the OH_NativeBuffer in the process’s address space.\n This interface needs to be used in conjunction with OH_NativeBuffer_Unmap.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_MapPlanes⚠
@brief Provide direct cpu access to the potentially multi-planar OH_NativeBuffer in the process’s address space.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_Reference⚠
@brief Adds the reference count of a OH_NativeBuffer.\n This interface needs to be used in conjunction with OH_NativeBuffer_Unreference, otherwise memory leaks will occur.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_SetColorSpace⚠
@brief Set the color space of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_SetMetadataValue⚠
@brief Set the metadata type of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_Unmap⚠
@brief Remove direct cpu access ability of the OH_NativeBuffer in the process’s address space.\n This interface is a non-thread-safe type interface.\n
OH_NativeBuffer_Unreference⚠
@brief Decreases the reference count of a OH_NativeBuffer and, when the reference count reaches 0, destroys this OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n

Type Aliases§

OHHDRMetadataKey
@brief Enumerates the HDR metadata keys. @since 9 @deprecated since 10
OHNativeWindowBuffer
@brief define the new type name OHNativeWindowBuffer for struct NativeWindowBuffer. @since 8
OHScalingMode
@brief Indicates Scaling Mode. @since 9 @deprecated since 10 @useinstead OHScalingModeV2
OHScalingModeV2
@brief Indicates Scaling Mode. @since 12
OH_NativeBuffer_ColorGamut
@brief Indicates the color gamut of a native buffer.
OH_NativeBuffer_ColorSpace
@brief Indicates the color space of a native buffer.
OH_NativeBuffer_Format
@brief Indicates the format of a native buffer.
OH_NativeBuffer_MetadataKey
@brief Indicates the descriptive information of a native buffer, such as HDR metadata, ROI metadata, etc.
OH_NativeBuffer_MetadataType
@brief Indicates the HDR metadata type of a native buffer.
OH_NativeBuffer_TransformType
@brief Indicates the transform type of a native buffer.
OH_NativeBuffer_Usage
@brief Indicates the usage of a native buffer.