openharmony 鸿蒙 capi-imageeffect-imageeffect-filternames

2026-08-25 浏览 (1)

ImageEffect_FilterNames

typedef struct ImageEffect_FilterNames {...} ImageEffect_FilterNames

Overview

The struct describes the filter name information.

Since: 12

Related module: ImageEffect

Header file: image_effect_filter.h

Summary

Member Variables

The following table lists the declarations supporting C++ syntax.

NameDescription
uint32_t size = 0Number of filter names.
const char **nameList = nullptrList of filter names.

The following table lists the declarations supporting C syntax.

NameDescription
uint32_t sizeNumber of filter names.
const char **nameListList of filter names.

Member functions

Nametypedef KeywordDescription
OH_EffectFilterInfo *OH_EffectFilterInfo_Create()OH_EffectFilterInfo_Create()Creates an OH_EffectFilterInfo instance. The instance must be released by calling OH_EffectFilterInfo_Release when it is no longer needed.
Since: 12
System capability: SystemCapability.Multimedia.ImageEffect.Core
ImageEffect_ErrorCode OH_EffectFilterInfo_SetFilterName(OH_EffectFilterInfo *info, const char *name)OH_EffectFilterInfo_SetFilterName()Sets a filter name.
Since: 12
System capability: SystemCapability.Multimedia.ImageEffect.Core
ImageEffect_ErrorCode OH_EffectFilterInfo_GetFilterName(OH_EffectFilterInfo *info, char **name)OH_EffectFilterInfo_GetFilterName()Obtains a filter name.
Since: 12
System capability: SystemCapability.Multimedia.ImageEffect.Core
ImageEffect_ErrorCode OH_EffectFilterInfo_SetSupportedBufferTypes(OH_EffectFilterInfo *info, uint32_t size,ImageEffect_BufferType *bufferTypeArray)OH_EffectFilterInfo_SetSupportedBufferTypes()Sets the buffer types supported by a filter.
Since: 12
System capability: SystemCapability.Multimedia.ImageEffect.Core
ImageEffect_ErrorCode OH_EffectFilterInfo_GetSupportedBufferTypes(OH_EffectFilterInfo *info, uint32_t *size,ImageEffect_BufferType **bufferTypeArray)OH_EffectFilterInfo_GetSupportedBufferTypes()Obtains the buffer types supported by a filter.
Since: 12
System capability: SystemCapability.Multimedia.ImageEffect.Core
ImageEffect_ErrorCode OH_EffectFilterInfo_SetSupportedFormats(OH_EffectFilterInfo *info, uint32_t size,ImageEffect_Format *formatArray)OH_EffectFilterInfo_SetSupportedFormats()Sets the pixel formats supported by a filter.
Since: 12
System capability: SystemCapability.Multimedia.ImageEffect.Core
ImageEffect_ErrorCode OH_EffectFilterInfo_GetSupportedFormats(OH_EffectFilterInfo *info, uint32_t *size,ImageEffect_Format **formatArray)OH_EffectFilterInfo_GetSupportedFormats()Obtains the pixel formats supported by a filter.
Since: 12
System capability: SystemCapability.Multimedia.ImageEffect.Core
ImageEffect_ErrorCode OH_EffectFilterInfo_Release(OH_EffectFilterInfo *info)OH_EffectFilterInfo_Release()Destroys an OH_EffectFilterInfo instance.
Since: 12
System capability: SystemCapability.Multimedia.ImageEffect.Core

Member Function Description

OH_EffectFilterInfo_Create()

OH_EffectFilterInfo *OH_EffectFilterInfo_Create()

Description

Creates an OH_EffectFilterInfo instance. The instance must be released by calling OH_EffectFilterInfo_Release when it is no longer needed.

System capability: SystemCapability.Multimedia.ImageEffect.Core

Since: 12

Returns

TypeDescription
OH_EffectFilterInfoPointer to the OH_EffectFilterInfo instance created. If the operation fails, a null pointer is returned.

OH_EffectFilterInfo_SetFilterName()

ImageEffect_ErrorCode OH_EffectFilterInfo_SetFilterName(OH_EffectFilterInfo *info, const char *name)

Description

Sets a filter name.

System capability: SystemCapability.Multimedia.ImageEffect.Core

Since: 12

Parameters

NameDescription
OH_EffectFilterInfo *infoPointer to the filter information.
const char *namePointer to the filter name, for example, OH_EFFECT_BRIGHTNESS_FILTER.

Returns

TypeDescription
ImageEffect_ErrorCodeEFFECT_SUCCESS: The function is called successfully.
EFFECT_ERROR_PARAM_INVALID: The input parameter is a null pointer.

OH_EffectFilterInfo_GetFilterName()

ImageEffect_ErrorCode OH_EffectFilterInfo_GetFilterName(OH_EffectFilterInfo *info, char **name)

Description

Obtains a filter name.

System capability: SystemCapability.Multimedia.ImageEffect.Core

Since: 12

Parameters

NameDescription
OH_EffectFilterInfo *infoPointer to the filter information.
char **nameDouble pointer to the char array holding the filter name.

Returns

TypeDescription
ImageEffect_ErrorCodeEFFECT_SUCCESS: The function is called successfully.
EFFECT_ERROR_PARAM_INVALID: The input parameter is a null pointer.

OH_EffectFilterInfo_SetSupportedBufferTypes()

ImageEffect_ErrorCode OH_EffectFilterInfo_SetSupportedBufferTypes(OH_EffectFilterInfo *info, uint32_t size,ImageEffect_BufferType *bufferTypeArray)

Description

Sets the buffer types supported by a filter.

System capability: SystemCapability.Multimedia.ImageEffect.Core

Since: 12

Parameters

NameDescription
OH_EffectFilterInfo *infoPointer to the filter information.
uint32_t sizeNumber of buffer types supported, where each type corresponds to a value in the ImageEffect_BufferType enumeration.
ImageEffect_BufferType *bufferTypeArrayPointer to the array of the buffer types supported, where each type corresponds to a value in the ImageEffect_BufferType enumeration.

Returns

TypeDescription
ImageEffect_ErrorCodeEFFECT_SUCCESS: The function is called successfully.
EFFECT_ERROR_PARAM_INVALID: The input parameter is a null pointer.

OH_EffectFilterInfo_GetSupportedBufferTypes()

ImageEffect_ErrorCode OH_EffectFilterInfo_GetSupportedBufferTypes(OH_EffectFilterInfo *info, uint32_t *size,ImageEffect_BufferType **bufferTypeArray)

Description

Obtains the buffer types supported by a filter.

System capability: SystemCapability.Multimedia.ImageEffect.Core

Since: 12

Parameters

NameDescription
OH_EffectFilterInfo *infoPointer to the filter information.
uint32_t *sizeNumber of buffer types supported, where each type corresponds to a value in the ImageEffect_BufferType enumeration.
ImageEffect_BufferType **bufferTypeArrayPointer to the array of the buffer types supported, where each type corresponds to a value in the ImageEffect_BufferType enumeration.

Returns

TypeDescription
ImageEffect_ErrorCodeEFFECT_SUCCESS: The function is called successfully.
EFFECT_ERROR_PARAM_INVALID: The input parameter is a null pointer.

OH_EffectFilterInfo_SetSupportedFormats()

ImageEffect_ErrorCode OH_EffectFilterInfo_SetSupportedFormats(OH_EffectFilterInfo *info, uint32_t size,ImageEffect_Format *formatArray)

Description

Sets the pixel formats supported by a filter.

System capability: SystemCapability.Multimedia.ImageEffect.Core

Since: 12

Parameters

NameDescription
OH_EffectFilterInfo *infoPointer to the filter information.
uint32_t sizeNumber of pixel formats supported, where each format corresponds to a value in the ImageEffect_Format enumeration.
ImageEffect_Format *formatArrayPointer to the array of the pixel formats supported, where each format corresponds to a value in the ImageEffect_Format enumeration.

Returns

TypeDescription
ImageEffect_ErrorCodeEFFECT_SUCCESS: The function is called successfully.
EFFECT_ERROR_PARAM_INVALID: The input parameter is a null pointer.

OH_EffectFilterInfo_GetSupportedFormats()

ImageEffect_ErrorCode OH_EffectFilterInfo_GetSupportedFormats(OH_EffectFilterInfo *info, uint32_t *size,ImageEffect_Format **formatArray)

Description

Obtains the pixel formats supported by a filter.

System capability: SystemCapability.Multimedia.ImageEffect.Core

Since: 12

Parameters

NameDescription
OH_EffectFilterInfo *infoPointer to the filter information.
uint32_t *sizeNumber of pixel formats supported, where each format corresponds to a value in the ImageEffect_Format enumeration.
ImageEffect_Format **formatArrayPointer to the array of the pixel formats supported, where each format corresponds to a value in the ImageEffect_Format enumeration.

Returns

TypeDescription
ImageEffect_ErrorCodeEFFECT_SUCCESS: The function is called successfully.
EFFECT_ERROR_PARAM_INVALID: The input parameter is a null pointer.

OH_EffectFilterInfo_Release()

ImageEffect_ErrorCode OH_EffectFilterInfo_Release(OH_EffectFilterInfo *info)

Description

Destroys an OH_EffectFilterInfo instance.

System capability: SystemCapability.Multimedia.ImageEffect.Core

Since: 12

Parameters

NameDescription
OH_EffectFilterInfo *infoPointer to the filter information.

Returns

TypeDescription
ImageEffect_ErrorCodeEFFECT_SUCCESS: The function is called successfully.
EFFECT_ERROR_PARAM_INVALID: The input parameter is a null pointer.

你可能感兴趣的鸿蒙文章

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/KeBdbAR3