harmony 鸿蒙image_processing_types.h

  • 2025-06-12
  • 浏览 (5)

image_processing_types.h

Overview

The image_processing_types.h file declares the image processing types.

Library: libimage_processing.so

File to include: <multimedia/video_processing_engine/image_processing_types.h>

System capability: SystemCapability.Multimedia.VideoProcessingEngine

Since: 13

Related module: ImageProcessing

Summary

Structs

Name Description
struct ImageProcessing_ColorSpaceInfo Describes the color space information, which is used in Color Space Conversion (CSC) capability query.

Types

Name Description
typedef struct OH_ImageProcessing OH_ImageProcessing Provides the declaration of the OH_ImageProcessing struct.
typedef struct OH_PixelmapNative OH_PixelmapNative Provides the declaration of the OH_PixelmapNative struct.
typedef struct OH_AVFormat OH_AVFormat Provides the declaration of the OH_AVFormat struct.
typedef struct ImageProcessing_ColorSpaceInfo ImageProcessing_ColorSpaceInfo Defines a struct for the color space information, which is used in CSC capability query.
typedef enum ImageDetailEnhancer_QualityLevel ImageDetailEnhancer_QualityLevel Defines an enum for the quality levels, which are used for detail enhancement.
typedef enum ImageProcessing_ErrorCode ImageProcessing_ErrorCode Defines an enum for the error codes used in image processing.

Enums

Name Description
ImageDetailEnhancer_QualityLevel {
IMAGE_DETAIL_ENHANCER_QUALITY_LEVEL_NONE,
IMAGE_DETAIL_ENHANCER_QUALITY_LEVEL_LOW,
IMAGE_DETAIL_ENHANCER_QUALITY_LEVEL_MEDIUM,
IMAGE_DETAIL_ENHANCER_QUALITY_LEVEL_HIGH }
Enumerates the quality levels, which are used for detail enhancement.
ImageProcessing_ErrorCode {
IMAGE_PROCESSING_SUCCESS,
IMAGE_PROCESSING_ERROR_INVALID_PARAMETER = 401,
IMAGE_PROCESSING_ERROR_UNKNOWN = 29200001,
IMAGE_PROCESSING_ERROR_INITIALIZE_FAILED,
IMAGE_PROCESSING_ERROR_CREATE_FAILED,
IMAGE_PROCESSING_ERROR_PROCESS_FAILED,
IMAGE_PROCESSING_ERROR_UNSUPPORTED_PROCESSING,
IMAGE_PROCESSING_ERROR_OPERATION_NOT_PERMITTED,
IMAGE_PROCESSING_ERROR_NO_MEMORY,
IMAGE_PROCESSING_ERROR_INVALID_INSTANCE,
IMAGE_PROCESSING_ERROR_INVALID_VALUE
}
Enumerates the error codes used in image processing.

Variables

Name Description
const int32_t IMAGE_PROCESSING_TYPE_COLOR_SPACE_CONVERSION Used to create an image processing instance for CSC.
const int32_t IMAGE_PROCESSING_TYPE_COMPOSITION Used to create an image processing instance for converting a dual-layer HDR image into a single-layer HDR image.
const int32_t IMAGE_PROCESSING_TYPE_DECOMPOSITION Used to create an image processing instance for converting a single-layer HDR image into a dual-layer HDR image.
const int32_t IMAGE_PROCESSING_TYPE_METADATA_GENERATION Used to create an image processing instance for metadata generation.
const int32_t IMAGE_PROCESSING_TYPE_DETAIL_ENHANCER Used to create an image processing instance for detail enhancement.
const char * IMAGE_DETAIL_ENHANCER_PARAMETER_KEY_QUALITY_LEVEL Used to set the quality level for image detail enhancement.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit

harmony 鸿蒙_image___native_module

harmony 鸿蒙Image_Region

harmony 鸿蒙Image_Size

harmony 鸿蒙Image_String

harmony 鸿蒙ImageEffect

harmony 鸿蒙ImageEffect_Any

harmony 鸿蒙ImageEffect_FilterDelegate

harmony 鸿蒙ImageEffect_FilterNames

harmony 鸿蒙ImageEffect_Region

0  赞