harmony 鸿蒙native_avscreen_capture_base.h

2023-10-30 浏览 (591)

native_avscreen_capture_base.h

Overview

The native_avscreen_capture_base.h file declares the common structs, character constants, and enums used for running screen capture.

Since

10

Related Modules

AVScreenCapture

Summary

Structs

NameDescription
OH_AudioCaptureInfoDefines audio capturing information.
OH_AudioEncInfoDefines audio encoding information.
NOTE: This struct is reserved and will be provided in later versions.
OH_AudioInfoDefines audio capturing parameters.
OH_VideoCaptureInfoDefines video capturing information.
OH_VideoEncInfoDefines video encoding information.
NOTE: This struct is reserved and will be provided in later versions.
OH_VideoInfoDefines video capturing parameters.
OH_RecorderInfoDefines recording file information.
OH_AVScreenCaptureConfigDefines the screen capture configuration.
OH_AVScreenCaptureCallbackDefines all the asynchronous callback function pointers of an OH_AVScreenCapture instance.
OH_RectDefines the width, height, and image information of the rectangle used for screen capture.
OH_AudioBufferDefines the configuration such as the size, type, and timestamp of audio data.

Types

NameDescription
OH_NativeBufferDefines the native video stream class for screen capture.
OH_AVScreenCaptureDefines a screen capture instance used to obtain original video and audio streams.
OH_CaptureModeDefines an enum that enumerates the screen capture modes.
OH_AudioCaptureSourceTypeDefines an enum that enumerates the audio source types during screen capture.
OH_AudioCodecFormatDefines an enum that enumerates the audio encoding formats.
OH_VideoCodecFormatDefines an enum that enumerates the video encoding formats.
OH_DataTypeDefines an enum that enumerates the data types of screen capture streams.
OH_VideoSourceTypeDefines an enum that enumerates the video source formats.
OH_ContainerFormatTypeDefines an enum that enumerates the types of files generated during screen capture.
NOTE: This type is reserved and will be provided in later versions.
OH_AudioCaptureInfoDefines audio capturing information.
OH_AudioEncInfoDefines audio encoding information.
NOTE: This type is reserved and will be provided in later versions.
OH_AudioInfoDefines audio capturing parameters.
OH_VideoCaptureInfoDefines video capturing information.
OH_VideoEncInfoDefines video encoding information.
NOTE: This type is reserved and will be provided in later versions.
OH_VideoInfoDefines video capturing parameters.
OH_RecorderInfoDefines recording file information.
OH_AVScreenCaptureConfigDefines the screen recording configuration.
(*OH_AVScreenCaptureOnError) (OH_AVScreenCapture *capture, int32_t errorCode)Defines a pointer to a callback function that is called when an error occurs during the running of an OH_AVScreenCapture instance.
(*OH_AVScreenCaptureOnAudioBufferAvailable) (OH_AVScreenCapture *capture, bool isReady, OH_AudioCaptureSourceType type)Defines a pointer to a callback function that is called when an audio buffer is available during the running of an OH_AVScreenCapture instance.
(*OH_AVScreenCaptureOnVideoBufferAvailable) (OH_AVScreenCapture *capture, bool isReady)Defines a pointer to a callback function that is called when a video buffer is available during the running of an OH_AVScreenCapture instance.
OH_AVScreenCaptureCallbackDefines all the asynchronous callback function pointers of an OH_AVScreenCapture instance.
OH_RectDefines the width, height, and image information of the rectangle used for screen capture.
OH_AudioBufferDefines the configuration such as the size, type, and timestamp of audio data.

Enums

NameDescription
OH_CaptureMode { OH_CAPTURE_HOME_SCREEN = 0, OH_CAPTURE_SPECIFIED_SCREEN = 1, OH_CAPTURE_SPECIFIED_WINDOW = 2, OH_CAPTURE_INVAILD = -1 }Enumerates the screen capture modes.
OH_AudioCaptureSourceType {
OH_SOURCE_INVALID = -1, OH_SOURCE_DEFAULT = 0, OH_MIC = 1, OH_ALL_PLAYBACK = 2,
OH_APP_PLAYBACK = 3
}
Enumerates the audio source types during screen capture.
OH_AudioCodecFormat { OH_AUDIO_DEFAULT = 0, OH_AAC_LC = 3, OH_AUDIO_CODEC_FORMAT_BUTT }Enumerates the audio encoding formats.
OH_VideoCodecFormat {
OH_VIDEO_DEFAULT = 0, OH_H264 = 2, OH_H265 = 4, OH_MPEG4 = 6,
OH_VP8 = 8, OH_VP9 = 10, OH_VIDEO_CODEC_FORMAT_BUTT
}
Enumerates the video encoding formats.
OH_DataType { OH_ORIGINAL_STREAM = 0, OH_ENCODED_STREAM = 1, OH_CAPTURE_FILE = 2, OH_INVAILD = -1 }Enumerates the data sources of screen capture streams.
OH_VideoSourceType { OH_VIDEO_SOURCE_SURFACE_YUV = 0, OH_VIDEO_SOURCE_SURFACE_ES, OH_VIDEO_SOURCE_SURFACE_RGBA, OH_VIDEO_SOURCE_BUTT }Enumerates the video source formats.
OH_ContainerFormatType { CFT_MPEG_4A = 0, CFT_MPEG_4 = 1 }Enumerates the types of files generated during screen capture.
NOTE: This enum is reserved and will be provided in later versions.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

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