Structs§
- Buffer
Handle - @brief Buffer handle used to transfer and obtain information about the buffer. @since 8
- Native
Window Buffer - @brief native window buffer. @since 8
- OHExt
Data Handle - @brief Defines the ExtData Handle @since 9 @deprecated since 10
- OHHDR
Meta Data - @brief Defines the HDR metadata. @since 9 @deprecated since 10
- OHIPC
Parcel - OH_
Native Buffer - OH_
Native Buffer_ ColorXY - @brief Indicates the color x and y.
- OH_
Native Buffer_ Config - @brief OH_NativeBuffer config. \n Used to allocating new OH_NativeBuffer and query parameters if existing ones.
- OH_
Native Buffer_ Cta861 - @brief Indicates the cta861.3 metadata.
- OH_
Native Buffer_ Plane - @brief Holds info for a single image plane. \n
- OH_
Native Buffer_ Planes - @brief Holds all image planes. \n
- OH_
Native Buffer_ Smpte2086 - @brief Indicates the smpte2086 metadata.
- OH_
Native Buffer_ Static Metadata - @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
- __
Incomplete Array Field
Constants§
- OHHDR
Metadata Key_ OH_ METAKEY_ BLUE_ PRIMARY_ X - OHHDR
Metadata Key_ OH_ METAKEY_ BLUE_ PRIMARY_ Y - OHHDR
Metadata Key_ OH_ METAKEY_ GREEN_ PRIMARY_ X - OHHDR
Metadata Key_ OH_ METAKEY_ GREEN_ PRIMARY_ Y - OHHDR
Metadata Key_ OH_ METAKEY_ HDR10_ PLUS - OHHDR
Metadata Key_ OH_ METAKEY_ HDR_ VIVID - OHHDR
Metadata Key_ OH_ METAKEY_ MAX_ CONTENT_ LIGHT_ LEVEL - OHHDR
Metadata Key_ OH_ METAKEY_ MAX_ FRAME_ AVERAGE_ LIGHT_ LEVEL - OHHDR
Metadata Key_ OH_ METAKEY_ MAX_ LUMINANCE - OHHDR
Metadata Key_ OH_ METAKEY_ MIN_ LUMINANCE - OHHDR
Metadata Key_ OH_ METAKEY_ RED_ PRIMARY_ X - OHHDR
Metadata Key_ OH_ METAKEY_ RED_ PRIMARY_ Y - OHHDR
Metadata Key_ OH_ METAKEY_ WHITE_ PRIMARY_ X - OHHDR
Metadata Key_ OH_ METAKEY_ WHITE_ PRIMARY_ Y - OHScaling
Mode V2_ OH_ SCALING_ MODE_ FREEZE_ V2 - the window content is not updated until a buffer of the window size is received
- OHScaling
Mode V2_ 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.
- OHScaling
Mode V2_ OH_ SCALING_ MODE_ SCALE_ CROP_ V2 - the buffer is uniformly scaled so that the smaller size of the buffer matches the window size
- OHScaling
Mode V2_ 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.
- OHScaling
Mode V2_ OH_ SCALING_ MODE_ SCALE_ TO_ WINDOW_ V2 - the buffer is scaled in two dimensions to match the window size
- OHScaling
Mode_ OH_ SCALING_ MODE_ FREEZE - the window content is not updated until a buffer of the window size is received
- OHScaling
Mode_ 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.
- OHScaling
Mode_ OH_ SCALING_ MODE_ SCALE_ CROP - the buffer is uniformly scaled so that the smaller size of the buffer matches the window size
- OHScaling
Mode_ OH_ SCALING_ MODE_ SCALE_ TO_ WINDOW - the buffer is scaled in two dimensions to match the window size
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ ADOBE_ RGB - < Adobe RGB
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ BT2020 - < BT2020
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ BT2100_ HLG - < BT2100 HLG
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ BT2100_ PQ - < BT2100 PQ
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ DCI_ P3 - < DCI P3
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ DISPLAY_ BT2020 - < Display BT2020
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ DISPLAY_ P3 - < Display P3
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ NATIVE - < Native or default
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ SRGB - < SRGB
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ STANDARD_ BT601 - < Standard BT601
- OH_
Native Buffer_ Color Gamut_ NATIVEBUFFER_ COLOR_ GAMUT_ STANDARD_ BT709 - < Standard BT709
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ ADOBERGB_ FULL - COLORPRIMARIES_ADOBERGB | (TRANSFUNC_ADOBERGB << 8) | (MATRIX_ADOBERGB << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ ADOBERGB_ LIMIT - COLORPRIMARIES_ADOBERGB | (TRANSFUNC_ADOBERGB << 8) | (MATRIX_ADOBERGB << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT601_ EBU_ FULL - COLORPRIMARIES_BT601_P | (TRANSFUNC_BT709 << 8) | (MATRIX_BT601_P << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT601_ EBU_ LIMIT - COLORPRIMARIES_BT601_P | (TRANSFUNC_BT709 << 8) | (MATRIX_BT601_P << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT601_ SMPTE_ C_ FULL - COLORPRIMARIES_BT601_N | (TRANSFUNC_BT709 << 8) | (MATRIX_BT601_N << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT601_ SMPTE_ C_ LIMIT - COLORPRIMARIES_BT601_N | (TRANSFUNC_BT709 << 8) | (MATRIX_BT601_N << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT709_ FULL - COLORPRIMARIES_BT709 | (TRANSFUNC_BT709 << 8) | (MATRIX_BT709 << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT709_ LIMIT - COLORPRIMARIES_BT709 | (TRANSFUNC_BT709 << 8) | (MATRIX_BT709 << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT2020_ HLG_ FULL - COLORPRIMARIES_BT2020 | (TRANSFUNC_HLG << 8) | (MATRIX_BT2020 << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT2020_ HLG_ LIMIT - COLORPRIMARIES_BT2020 | (TRANSFUNC_HLG << 8) | (MATRIX_BT2020 << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT2020_ PQ_ FULL - COLORPRIMARIES_BT2020 | (TRANSFUNC_PQ << 8) | (MATRIX_BT2020 << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ BT2020_ PQ_ LIMIT - COLORPRIMARIES_BT2020 | (TRANSFUNC_PQ << 8) | (MATRIX_BT2020 << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ DISPLAY_ BT2020_ HLG - equal to OH_COLORSPACE_BT2020_HLG_FULL
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ DISPLAY_ BT2020_ PQ - equal to OH_COLORSPACE_BT2020_PQ_FULL
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ DISPLAY_ BT2020_ SRGB - COLORPRIMARIES_BT2020 | (TRANSFUNC_SRGB << 8) | (MATRIX_BT2020 << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ DISPLAY_ P3_ HLG - equal to OH_COLORSPACE_P3_HLG_FULL
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ DISPLAY_ P3_ PQ - equal to OH_COLORSPACE_P3_PQ_FULL
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ DISPLAY_ P3_ SRGB - equal to OH_COLORSPACE_P3_FULL
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ DISPLAY_ SRGB - equal to OH_COLORSPACE_SRGB_FULL
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ LINEAR_ BT709 - equal to OH_COLORSPACE_LINEAR_SRGB
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ LINEAR_ BT2020 - COLORPRIMARIES_BT2020 | (TRANSFUNC_LINEAR << 8)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ LINEAR_ P3 - COLORPRIMARIES_P3_D65 | (TRANSFUNC_LINEAR << 8)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ LINEAR_ SRGB - COLORPRIMARIES_SRGB | (TRANSFUNC_LINEAR << 8)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ NONE - None color space
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ P3_ FULL - COLORPRIMARIES_P3_D65 | (TRANSFUNC_SRGB << 8) | (MATRIX_P3 << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ P3_ HLG_ FULL - COLORPRIMARIES_P3_D65 | (TRANSFUNC_HLG << 8) | (MATRIX_P3 << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ P3_ HLG_ LIMIT - COLORPRIMARIES_P3_D65 | (TRANSFUNC_HLG << 8) | (MATRIX_P3 << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ P3_ LIMIT - COLORPRIMARIES_P3_D65 | (TRANSFUNC_SRGB << 8) | (MATRIX_P3 << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ P3_ PQ_ FULL - COLORPRIMARIES_P3_D65 | (TRANSFUNC_PQ << 8) | (MATRIX_P3 << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ P3_ PQ_ LIMIT - COLORPRIMARIES_P3_D65 | (TRANSFUNC_PQ << 8) | (MATRIX_P3 << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ SRGB_ FULL - COLORPRIMARIES_SRGB | (TRANSFUNC_SRGB << 8) | (MATRIX_BT601_N << 16) | (RANGE_FULL << 21)
- OH_
Native Buffer_ Color Space_ OH_ COLORSPACE_ SRGB_ LIMIT - COLORPRIMARIES_SRGB | (TRANSFUNC_SRGB << 8) | (MATRIX_BT601_N << 16) | (RANGE_LIMITED << 21)
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ BGRA_ 4444 - < BGRX4444 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ BGRA_ 5551 - < BGRX5551 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ BGRA_ 8888 - < BGRX8888 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ BGRX_ 4444 - < BGR565 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ BGRX_ 5551 - < BGRA4444 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ BGRX_ 8888 - < BGRA5551 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ BGR_ 565 - < RGB888 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ BUTT - vender mask format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ CLUT1 - CLUT1 format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ CLUT4 - CLUT4 format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ CLUT8 - CLUT8 format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RAW10 - Raw 10bit packed format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGBA_ 4444 - < RGBX4444 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGBA_ 5551 - < RGBX5551 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGBA_ 5658 - < RGB565 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGBA_ 8888 - < RGBX8888 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGBA_ 1010102 - RGBA_1010102 packed format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGBX_ 4444 - < RGBA5658 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGBX_ 5551 - < RGB444 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGBX_ 8888 - < RGB555 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGB_ 444 - < RGBA4444 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGB_ 555 - < RGBA5551 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGB_ 565 - CLUT4 format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ RGB_ 888 - < RGBA8888 format */
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ UYVY_ 422_ PKG - UYVY422 packed format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ VENDER_ MASK - vender mask format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ VYUY_ 422_ PKG - VYUY422 packed format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCBCR_ 420_ P - YCBCR420 plannar format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCBCR_ 420_ SP - YCBCR420 semi-plannar format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCBCR_ 422_ P - YCBCR422 plannar format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCBCR_ 422_ SP - YCBCR422 semi-plannar format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCBCR_ P010 - YCBCR420 semi-planar 10bit packed format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCRCB_ 420_ P - YCRCB420 plannar format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCRCB_ 420_ SP - YCRCB420 semi-plannar format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCRCB_ 422_ P - YCRCB422 plannar format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCRCB_ 422_ SP - YCRCB422 semi-plannar format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YCRCB_ P010 - YCRCB420 semi-planar 10bit packed format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YUV_ 422_ I - < BGRA8888 format */ **
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YUYV_ 422_ PKG - YUYV422 packed format @since 12
- OH_
Native Buffer_ Format_ NATIVEBUFFER_ PIXEL_ FMT_ YVYU_ 422_ PKG - YVYU422 packed format @since 12
- OH_
Native Buffer_ Metadata Key_ OH_ HDR_ DYNAMIC_ METADATA - byte stream of SEI in video stream
- OH_
Native Buffer_ Metadata Key_ OH_ HDR_ METADATA_ TYPE - value: OH_NativeBuffer_MetadataType
- OH_
Native Buffer_ Metadata Key_ OH_ HDR_ STATIC_ METADATA - value: OH_NativeBuffer_StaticMetadata
- OH_
Native Buffer_ Metadata Type_ OH_ VIDEO_ HDR_ HDR10 - HDR10
- OH_
Native Buffer_ Metadata Type_ OH_ VIDEO_ HDR_ HLG - HLG
- OH_
Native Buffer_ Metadata Type_ OH_ VIDEO_ HDR_ VIVID - HDR VIVID
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ FLIP_ H - < Flip horizontally
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ FLIP_ H_ ROT90 - < Flip horizontally and rotate 90 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ FLIP_ H_ ROT180 - < Flip horizontally and rotate 180 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ FLIP_ H_ ROT270 - < Flip horizontally and rotate 270 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ FLIP_ V - < Flip vertically
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ FLIP_ V_ ROT90 - < Flip vertically and rotate 90 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ FLIP_ V_ ROT180 - < Flip vertically and rotate 180 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ FLIP_ V_ ROT270 - < Flip vertically and rotate 270 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ ROTATE_ 90 - < Rotation by 90 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ ROTATE_ 180 - < Rotation by 180 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ ROTATE_ 270 - < Rotation by 270 degrees
- OH_
Native Buffer_ Transform Type_ NATIVEBUFFER_ ROTATE_ NONE - < No rotation
- OH_
Native Buffer_ Usage_ NATIVEBUFFER_ USAGE_ ALIGNMENT_ 512 - < Often be mapped for direct CPU reads */ **
- OH_
Native Buffer_ Usage_ NATIVEBUFFER_ USAGE_ CPU_ READ - OH_
Native Buffer_ Usage_ NATIVEBUFFER_ USAGE_ CPU_ READ_ OFTEN - < For GPU read case */ **
- OH_
Native Buffer_ Usage_ NATIVEBUFFER_ USAGE_ CPU_ WRITE - < CPU read buffer */
- OH_
Native Buffer_ Usage_ NATIVEBUFFER_ USAGE_ HW_ RENDER - @since 12
- OH_
Native Buffer_ Usage_ NATIVEBUFFER_ USAGE_ HW_ TEXTURE - < For GPU write case */ **
- OH_
Native Buffer_ Usage_ NATIVEBUFFER_ USAGE_ MEM_ DMA - < CPU write memory */
Functions§
- OH_
Native ⚠Buffer_ 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_
Native ⚠Buffer_ From Native Window Buffer - @brief Converts an OHNativeWindowBuffer instance to an OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
- OH_
Native ⚠Buffer_ GetColor Space - @brief Get the color space of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
- OH_
Native ⚠Buffer_ 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_
Native ⚠Buffer_ GetMetadata Value - @brief Set the metadata type of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
- OH_
Native ⚠Buffer_ GetSeq Num - @brief Get the system wide unique sequence number of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
- OH_
Native ⚠Buffer_ 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_
Native ⚠Buffer_ 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_
Native ⚠Buffer_ 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_
Native ⚠Buffer_ SetColor Space - @brief Set the color space of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
- OH_
Native ⚠Buffer_ SetMetadata Value - @brief Set the metadata type of the OH_NativeBuffer.\n This interface is a non-thread-safe type interface.\n
- OH_
Native ⚠Buffer_ 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_
Native ⚠Buffer_ 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§
- OHHDR
Metadata Key - @brief Enumerates the HDR metadata keys. @since 9 @deprecated since 10
- OHNative
Window Buffer - @brief define the new type name OHNativeWindowBuffer for struct NativeWindowBuffer. @since 8
- OHScaling
Mode - @brief Indicates Scaling Mode. @since 9 @deprecated since 10 @useinstead OHScalingModeV2
- OHScaling
Mode V2 - @brief Indicates Scaling Mode. @since 12
- OH_
Native Buffer_ Color Gamut - @brief Indicates the color gamut of a native buffer.
- OH_
Native Buffer_ Color Space - @brief Indicates the color space of a native buffer.
- OH_
Native Buffer_ Format - @brief Indicates the format of a native buffer.
- OH_
Native Buffer_ Metadata Key - @brief Indicates the descriptive information of a native buffer, such as HDR metadata, ROI metadata, etc.
- OH_
Native Buffer_ Metadata Type - @brief Indicates the HDR metadata type of a native buffer.
- OH_
Native Buffer_ Transform Type - @brief Indicates the transform type of a native buffer.
- OH_
Native Buffer_ Usage - @brief Indicates the usage of a native buffer.