openharmony 鸿蒙 capi-image-mdk-common-h

2026-08-25 浏览 (1)

image_mdk_common.h

Overview

The file declares the common enums and structs used by the image interface.

File to include: <multimedia/image_framework/image_mdk_common.h>

Library: libimage_ndk.z.so

System capability: SystemCapability.Multimedia.Image.Core

Since: 10

Related module: Image

Summary

Macros

NameDescription
IMAGE_RESULT_BASE 62980096Common image error code, indicating that the operation fails.
Since: 10

Structs

Nametypedef KeywordDescription
OhosImageSize-Describes the image size. It is a member variable of OhosImageDecodingOps.

Enums

Nametypedef KeywordDescription
IRNdkErrCodeIRNdkErrCodeEnumerates the used API return values.

Enum Description

IRNdkErrCode

enum IRNdkErrCode

Description

Enumerates the used API return values.

Since: 10

Enum ItemDescription
IMAGE_RESULT_SUCCESS = 0Operation succeeded.
IMAGE_RESULT_BAD_PARAMETER = -1Invalid parameter.
IMAGE_RESULT_IMAGE_RESULT_BASE = IMAGE_RESULT_BASEOperation failed.
IMAGE_RESULT_ERR_IPC = IMAGE_RESULT_BASE + 1IPC error.
IMAGE_RESULT_ERR_SHAMEM_NOT_EXIST = IMAGE_RESULT_BASE + 2Sharing the memory fails.
IMAGE_RESULT_ERR_SHAMEM_DATA_ABNORMAL = IMAGE_RESULT_BASE + 3Abnormal data in the shared memory.
IMAGE_RESULT_DECODE_ABNORMAL = IMAGE_RESULT_BASE + 4Failed to decode the image.
IMAGE_RESULT_DATA_ABNORMAL = IMAGE_RESULT_BASE + 5Abnormal input data.
IMAGE_RESULT_MALLOC_ABNORMAL = IMAGE_RESULT_BASE + 6An error occurs during memory allocation.
IMAGE_RESULT_DATA_UNSUPPORT = IMAGE_RESULT_BASE + 7The image type is not supported.
IMAGE_RESULT_INIT_ABNORMAL = IMAGE_RESULT_BASE + 8Failed to initialize the image.
IMAGE_RESULT_GET_DATA_ABNORMAL = IMAGE_RESULT_BASE + 9An error occurs during image data retrieval.
IMAGE_RESULT_TOO_LARGE = IMAGE_RESULT_BASE + 10The image is too large.
IMAGE_RESULT_TRANSFORM = IMAGE_RESULT_BASE + 11An error occurs during image transformation.
IMAGE_RESULT_COLOR_CONVERT = IMAGE_RESULT_BASE + 12An error occurs during image color conversion.
IMAGE_RESULT_CROP = IMAGE_RESULT_BASE + 13An error occurs during image cropping.
IMAGE_RESULT_SOURCE_DATA = IMAGE_RESULT_BASE + 14The image source data is incorrect.
IMAGE_RESULT_SOURCE_DATA_INCOMPLETE = IMAGE_RESULT_BASE + 15The image source data is incomplete.
IMAGE_RESULT_MISMATCHED_FORMAT = IMAGE_RESULT_BASE + 16The image format does not match.
IMAGE_RESULT_UNKNOWN_FORMAT = IMAGE_RESULT_BASE + 17Unknown image format.
IMAGE_RESULT_SOURCE_UNRESOLVED = IMAGE_RESULT_BASE + 18The image source is not parsed.
IMAGE_RESULT_INVALID_PARAMETER = IMAGE_RESULT_BASE + 19Invalid image parameter.
IMAGE_RESULT_DECODE_FAILED = IMAGE_RESULT_BASE + 20Failed to decode the image.
IMAGE_RESULT_PLUGIN_REGISTER_FAILED = IMAGE_RESULT_BASE + 21Failed to register the plug-in.
IMAGE_RESULT_PLUGIN_CREATE_FAILED = IMAGE_RESULT_BASE + 22Failed to create the plug-in.
IMAGE_RESULT_ENCODE_FAILED = IMAGE_RESULT_BASE + 23Failed to encode the image.
IMAGE_RESULT_ADD_PIXEL_MAP_FAILED = IMAGE_RESULT_BASE + 24Failed to add the PixelMap.
IMAGE_RESULT_HW_DECODE_UNSUPPORT = IMAGE_RESULT_BASE + 25Hardware decoding is not supported.
IMAGE_RESULT_DECODE_HEAD_ABNORMAL = IMAGE_RESULT_BASE + 26Failed to decode the image header.
IMAGE_RESULT_DECODE_EXIF_UNSUPPORT = IMAGE_RESULT_BASE + 27Exchangeable Image File (Exif) is not supported for image decoding.
IMAGE_RESULT_PROPERTY_NOT_EXIST = IMAGE_RESULT_BASE + 28The image property does not exist.
IMAGE_RESULT_MEDIA_DATA_UNSUPPORT = IMAGE_RESULT_BASE + 30The media type is not supported.
IMAGE_RESULT_MEDIA_TOO_LARGE = IMAGE_RESULT_BASE + 31The media is too large.
IMAGE_RESULT_MEDIA_MALLOC_FAILED = IMAGE_RESULT_BASE + 32Memory allocation failed.
IMAGE_RESULT_MEDIA_END_OF_STREAM = IMAGE_RESULT_BASE + 33Failed to end the media data stream.
IMAGE_RESULT_MEDIA_IO_ABNORMAL = IMAGE_RESULT_BASE + 34Abnormal input and output streams.
IMAGE_RESULT_MEDIA_MALFORMED = IMAGE_RESULT_BASE + 35The media service functions abnormally.
IMAGE_RESULT_MEDIA_BUFFER_TOO_SMALL = IMAGE_RESULT_BASE + 36The media data is too small.
IMAGE_RESULT_MEDIA_OUT_OF_RANGE = IMAGE_RESULT_BASE + 37The media is out of range.
IMAGE_RESULT_MEDIA_STATUS_ABNORMAL = IMAGE_RESULT_BASE + 38Abnormal media status.
IMAGE_RESULT_MEDIA_VALUE_INVALID = IMAGE_RESULT_BASE + 39Invalid media value.
IMAGE_RESULT_MEDIA_NULL_POINTER = IMAGE_RESULT_BASE + 40Media operation failed.
IMAGE_RESULT_MEDIA_INVALID_OPERATION = IMAGE_RESULT_BASE + 41Invalid media operation.
IMAGE_RESULT_MEDIA_ERR_PLAYER_NOT_INIT = IMAGE_RESULT_BASE + 42An error occurs during media initialization.
IMAGE_RESULT_MEDIA_EARLY_PREPARE = IMAGE_RESULT_BASE + 43Media preprocessing is carried out too early.
IMAGE_RESULT_MEDIA_SEEK_ERR = IMAGE_RESULT_BASE + 44The seek operation failed.
IMAGE_RESULT_MEDIA_PERMISSION_DENIED = IMAGE_RESULT_BASE + 45Permission denied.
IMAGE_RESULT_MEDIA_DEAD_OBJECT = IMAGE_RESULT_BASE + 46The media object is deregistered.
IMAGE_RESULT_MEDIA_TIMED_OUT = IMAGE_RESULT_BASE + 47A timeout occurs.
IMAGE_RESULT_MEDIA_TRACK_NOT_ALL_SUPPORTED = IMAGE_RESULT_BASE + 48The media capability is not supported.
IMAGE_RESULT_MEDIA_ADAPTER_INIT_FAILED = IMAGE_RESULT_BASE + 49Failed to initialize the media adapter.
IMAGE_RESULT_MEDIA_WRITE_PARCEL_FAIL = IMAGE_RESULT_BASE + 50Failed to write data to the parcel.
IMAGE_RESULT_MEDIA_READ_PARCEL_FAIL = IMAGE_RESULT_BASE + 51Failed to read data from the parcel.
IMAGE_RESULT_MEDIA_NO_AVAIL_BUFFER = IMAGE_RESULT_BASE + 52Invalid data.
IMAGE_RESULT_MEDIA_INVALID_PARAM = IMAGE_RESULT_BASE + 53Invalid parameters.
IMAGE_RESULT_MEDIA_CODEC_ADAPTER_NOT_EXIST = IMAGE_RESULT_BASE + 54The media codec adapter does not exist.
IMAGE_RESULT_MEDIA_CREATE_CODEC_ADAPTER_FAILED = IMAGE_RESULT_BASE + 55Failed to create the media codec adapter.
IMAGE_RESULT_MEDIA_CODEC_ADAPTER_NOT_INIT = IMAGE_RESULT_BASE + 56The media codec adapter is not initialized.
IMAGE_RESULT_MEDIA_ZCODEC_CREATE_FAILED = IMAGE_RESULT_BASE + 57Failed to create media codec.
IMAGE_RESULT_MEDIA_ZCODEC_NOT_EXIST = IMAGE_RESULT_BASE + 58Media codec not found.
IMAGE_RESULT_MEDIA_JNI_CLASS_NOT_EXIST = IMAGE_RESULT_BASE + 59The media JNI layer class does not exist.
IMAGE_RESULT_MEDIA_JNI_METHOD_NOT_EXIST = IMAGE_RESULT_BASE + 60The media JNI layer method does not exist.
IMAGE_RESULT_MEDIA_JNI_NEW_OBJ_FAILED = IMAGE_RESULT_BASE + 61Failed to create the object at the media JNI layer.
IMAGE_RESULT_MEDIA_JNI_COMMON_ERROR = IMAGE_RESULT_BASE + 62The media JNI layer is abnormal.
IMAGE_RESULT_MEDIA_DISTRIBUTE_NOT_SUPPORT = IMAGE_RESULT_BASE + 63Media distribution is not supported.
IMAGE_RESULT_MEDIA_SOURCE_NOT_SET = IMAGE_RESULT_BASE + 64The media source is not set.
IMAGE_RESULT_MEDIA_RTSP_ADAPTER_NOT_INIT = IMAGE_RESULT_BASE + 65The media RTSP adapter is not initialized.
IMAGE_RESULT_MEDIA_RTSP_ADAPTER_NOT_EXIST = IMAGE_RESULT_BASE + 66The media RTSP adapter does not exist.
IMAGE_RESULT_MEDIA_RTSP_SURFACE_UNSUPPORT = IMAGE_RESULT_BASE + 67The media does not support the RTSP surface.
IMAGE_RESULT_MEDIA_RTSP_CAPTURE_NOT_INIT = IMAGE_RESULT_BASE + 68Failed to initialize the media RTSP capturer.
IMAGE_RESULT_MEDIA_RTSP_SOURCE_URL_INVALID = IMAGE_RESULT_BASE + 69Invalid media RTSP source path.
IMAGE_RESULT_MEDIA_RTSP_VIDEO_TRACK_NOT_FOUND = IMAGE_RESULT_BASE + 70No video capability is found in the media RTSP.
IMAGE_RESULT_MEDIA_RTSP_CAMERA_NUM_REACH_MAX = IMAGE_RESULT_BASE + 71The maximum number of RTSP cameras has been reached.
IMAGE_RESULT_MEDIA_SET_VOLUME = IMAGE_RESULT_BASE + 72Failed to set the volume.
IMAGE_RESULT_MEDIA_NUMBER_OVERFLOW = IMAGE_RESULT_BASE + 73The number of operations overflows.
IMAGE_RESULT_MEDIA_DIS_PLAYER_UNSUPPORTED = IMAGE_RESULT_BASE + 74The distributed media player is not supported.
IMAGE_RESULT_MEDIA_DENCODE_ICC_FAILED = IMAGE_RESULT_BASE + 75Failed to decode the ICC.
IMAGE_RESULT_MEDIA_ENCODE_ICC_FAILED = IMAGE_RESULT_BASE + 76Failed to encode the ICC.
IMAGE_RESULT_MEDIA_READ_PIXELMAP_FAILED = IMAGE_RESULT_BASE + 150Failed to read the PixelMap.
IMAGE_RESULT_MEDIA_WRITE_PIXELMAP_FAILED = IMAGE_RESULT_BASE + 151Failed to write the PixelMap.
IMAGE_RESULT_MEDIA_PIXELMAP_NOT_ALLOW_MODIFY = IMAGE_RESULT_BASE + 152The PixelMap cannot be modified.
IMAGE_RESULT_MEDIA_CONFIG_FAILED = IMAGE_RESULT_BASE + 153Configuration failed.
IMAGE_RESULT_JNI_ENV_ABNORMAL = IMAGE_RESULT_BASE + 154The JNI environment is abnormal.
IMAGE_RESULT_SURFACE_GRALLOC_BUFFER_FAILED = IMAGE_RESULT_BASE + 155Failed to allocate memory for the surface.
IMAGE_RESULT_CREATE_SURFACE_FAILED = IMAGE_RESULT_BASE + 156Failed to create the surface.
IMAGE_RESULT_SURFACE_GET_PARAMETER_FAILED = IMAGE_RESULT_BASE + 157Failed to obtain parameters from the surface.
IMAGE_RESULT_GET_SURFACE_FAILED = IMAGE_RESULT_BASE + 158Failed to obtain the surface.
IMAGE_RESULT_SURFACE_ACQUIRE_BUFFER_FAILED = IMAGE_RESULT_BASE + 159Failed to allocate the memory.
IMAGE_RESULT_SURFACE_REQUEST_BUFFER_FAILED = IMAGE_RESULT_BASE + 160Failed to allocate the memory.
IMAGE_RESULT_REGISTER_LISTENER_FAILED = IMAGE_RESULT_BASE + 161Failed to register the listener.
IMAGE_RESULT_REGISTER_BUFFER_FAILED = IMAGE_RESULT_BASE + 162Failed to register the buffer.
IMAGE_RESULT_FREAD_FAILED = IMAGE_RESULT_BASE + 163Failed to read the file.
IMAGE_RESULT_PEEK_FAILED = IMAGE_RESULT_BASE + 164Failed to peek the file.
IMAGE_RESULT_SEEK_FAILED = IMAGE_RESULT_BASE + 165Failed to seek the file.
IMAGE_RESULT_STREAM_SIZE_ERROR = IMAGE_RESULT_BASE + 166The data stream is damaged.
IMAGE_RESULT_FILE_FD_ERROR = IMAGE_RESULT_BASE + 167The file descriptor is corrupted.
IMAGE_RESULT_FILE_DAMAGED = IMAGE_RESULT_BASE + 168The file is damaged.
IMAGE_RESULT_CREATE_DECODER_FAILED = IMAGE_RESULT_BASE + 169Failed to create a decoder.
IMAGE_RESULT_CREATE_ENCODER_FAILED = IMAGE_RESULT_BASE + 170Failed to create an encoder.
IMAGE_RESULT_CHECK_FORMAT_ERROR = IMAGE_RESULT_BASE + 171Failed to check the format.
IMAGE_RESULT_THIRDPART_SKIA_ERROR = IMAGE_RESULT_BASE + 172Skia decoding failed.
IMAGE_RESULT_HW_DECODE_FAILED = IMAGE_RESULT_BASE + 173Hardware decoding failed.
IMAGE_RESULT_ALLOCATER_TYPE_ERROR = IMAGE_RESULT_BASE + 174Failed to verify the memory type.
IMAGE_RESULT_ALPHA_TYPE_ERROR = IMAGE_RESULT_BASE + 175Failed to verify the alpha type.
IMAGE_RESULT_INDEX_INVALID = IMAGE_RESULT_BASE + 176Invalid parameter.
IMAGE_RESULT_MEDIA_UNKNOWN = IMAGE_RESULT_BASE + 200Unknown error.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/WZHglniI