harmony 鸿蒙video_processing_types.h

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

video_processing_types.h

Overview

The video_processing_types.h file declares the video processing types.

Library: libvideo_processing.so

File to include:

System capability: SystemCapability.Multimedia.VideoProcessingEngine

Since: 12

Related module: VideoProcessing

Summary

Structs

Name Description
struct VideoProcessing_ColorSpaceInfo Describes the color space information of video processing.

Types

Name Description
typedef struct OH_VideoProcessing OH_VideoProcessing Defines a struct for the video processing object.
typedef struct NativeWindow OHNativeWindow Defines a struct for the NativeWindow object.
typedef struct OH_AVFormat OH_AVFormat Defines a struct for the OH_AVFormat object.
typedef struct VideoProcessing_ColorSpaceInfo VideoProcessing_ColorSpaceInfo Defines a struct for the color space information of video processing.
typedef enum VideoDetailEnhancer_QualityLevel VideoDetailEnhancer_QualityLevel Defines an enum for the quality levels for detail enhancement.
typedef enum VideoProcessing_ErrorCode VideoProcessing_ErrorCode Defines an enum for the video processing error codes.
typedef enum VideoProcessing_State VideoProcessing_State Defines an enum for the video processing states.
typedef struct VideoProcessing_Callback VideoProcessing_Callback Defines a struct for the video processing callback object.
typedef void(* OH_VideoProcessingCallback_OnError) (OH_VideoProcessing *videoProcessor, VideoProcessing_ErrorCode error, void *userData) Defines a pointer to the callback function for reporting an error during video processing.
typedef void(* OH_VideoProcessingCallback_OnState) (OH_VideoProcessing *videoProcessor, VideoProcessing_State state, void *userData) Defines a pointer to the callback function for reporting the video processing state.
typedef void(* OH_VideoProcessingCallback_OnNewOutputBuffer) (OH_VideoProcessing *videoProcessor, uint32_t index, void *userData) Defines a pointer to the callback function for reporting the data filled in the output buffer.

Enums

Name Description
VideoDetailEnhancer_QualityLevel {
VIDEO_DETAIL_ENHANCER_QUALITY_LEVEL_NONE,
VIDEO_DETAIL_ENHANCER_QUALITY_LEVEL_LOW,
VIDEO_DETAIL_ENHANCER_QUALITY_LEVEL_MEDIUM,
VIDEO_DETAIL_ENHANCER_QUALITY_LEVEL_HIGH
}
Enumerates the quality levels for detail enhancement.
VideoProcessing_ErrorCode {
VIDEO_PROCESSING_SUCCESS,
VIDEO_PROCESSING_ERROR_INVALID_PARAMETER = 401,
VIDEO_PROCESSING_ERROR_UNKNOWN = 29210001,
VIDEO_PROCESSING_ERROR_INITIALIZE_FAILED,
VIDEO_PROCESSING_ERROR_CREATE_FAILED,
VIDEO_PROCESSING_ERROR_PROCESS_FAILED,
VIDEO_PROCESSING_ERROR_UNSUPPORTED_PROCESSING,
VIDEO_PROCESSING_ERROR_OPERATION_NOT_PERMITTED,
VIDEO_PROCESSING_ERROR_NO_MEMORY,
VIDEO_PROCESSING_ERROR_INVALID_INSTANCE,
VIDEO_PROCESSING_ERROR_INVALID_VALUE
}
Enumerates the video processing error codes.
VideoProcessing_State {
VIDEO_PROCESSING_STATE_RUNNING,
VIDEO_PROCESSING_STATE_STOPPED
}
Enumerates the video processing states.

Variables

Name Description
const int32_t VIDEO_PROCESSING_TYPE_COLOR_SPACE_CONVERSION Instance created for color space conversion during video processing.
const int32_t VIDEO_PROCESSING_TYPE_METADATA_GENERATION Instance created for metadata generation during video processing.
const int32_t VIDEO_PROCESSING_TYPE_DETAIL_ENHANCER Instance for detail enhancement during video processing.
const char * VIDEO_DETAIL_ENHANCER_PARAMETER_KEY_QUALITY_LEVEL Pointer to the quality level of video detail enhancement.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Media Kit

harmony 鸿蒙AVImageGenerator

harmony 鸿蒙AVMetadataExtractor

harmony 鸿蒙AVPlayer

harmony 鸿蒙AVPlayerCallback

harmony 鸿蒙AVRecorder

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙OH_AVRecorder_Config

harmony 鸿蒙OH_AVRecorder_EncoderInfo

harmony 鸿蒙OH_AVRecorder_Location

0  赞