harmony 鸿蒙video_output.h
video_output.h
Overview
The video_output.h file declares the video output concepts.
Library: libohcamera.so
File to include: <ohcamera/video_output.h>
System capability: SystemCapability.Multimedia.Camera.Core
Since: 11
Related module: OH_Camera
Summary
Structs
Name | Description |
---|---|
struct VideoOutput_Callbacks | Describes the callbacks related to video output. |
Types
Name | Description |
---|---|
typedef struct Camera_VideoOutput Camera_VideoOutput | Defines a struct for the video output object. |
typedef void(* OH_VideoOutput_OnFrameStart) (Camera_VideoOutput *videoOutput) | Defines the callback defined in the VideoOutput_Callbacks struct and used to report video output frame start events. |
typedef void(* OH_VideoOutput_OnFrameEnd) (Camera_VideoOutput *videoOutput, int32_t frameCount) | Defines the callback defined in the VideoOutput_Callbacks struct and used to report video output frame end events. |
typedef void(* OH_VideoOutput_OnError) (Camera_VideoOutput *videoOutput, Camera_ErrorCode errorCode) | Defines to the callback defined in the VideoOutput_Callbacks struct and used to report video output errors. |
typedef struct VideoOutput_Callbacks VideoOutput_Callbacks | Defines a struct for the callbacks related to video output. |
Functions
Name | Description |
---|---|
Camera_ErrorCode OH_VideoOutput_RegisterCallback (Camera_VideoOutput *videoOutput, VideoOutput_Callbacks *callback) | Registers a callback to listen for video output events. |
Camera_ErrorCode OH_VideoOutput_UnregisterCallback (Camera_VideoOutput *videoOutput, VideoOutput_Callbacks *callback) | Unregisters the callback used to listen for video output events. |
Camera_ErrorCode OH_VideoOutput_Start (Camera_VideoOutput *videoOutput) | Starts video output. |
Camera_ErrorCode OH_VideoOutput_Stop (Camera_VideoOutput *videoOutput) | Stops video output. |
Camera_ErrorCode OH_VideoOutput_Release (Camera_VideoOutput *videoOutput) | Releases a VideoOutput instance. |
Camera_ErrorCode OH_VideoOutput_GetActiveProfile (Camera_VideoOutput *videoOutput, Camera_VideoProfile **profile) | Obtains the profile of a VideoOutput instance. |
Camera_ErrorCode OH_VideoOutput_DeleteProfile (Camera_VideoProfile *profile) | Deletes the profile of this VideoOutput instance. |
Camera_ErrorCode OH_VideoOutput_GetSupportedFrameRates (Camera_VideoOutput *videoOutput, Camera_FrameRateRange **frameRateRange, uint32_t *size) | Obtains the list of frame rates supported by a VideoOutput instance. |
Camera_ErrorCode OH_VideoOutput_DeleteFrameRates (Camera_VideoOutput *videoOutput, Camera_FrameRateRange *frameRateRange) | Deletes the frame rate list. |
Camera_ErrorCode OH_VideoOutput_SetFrameRate (Camera_VideoOutput *videoOutput, int32_t minFps, int32_t maxFps) | Sets the frame rates for a VideoOutput instance. |
Camera_ErrorCode OH_VideoOutput_GetActiveFrameRate (Camera_VideoOutput *videoOutput, Camera_FrameRateRange *frameRateRange) | Obtains the active frame rates of a VideoOutput instance. |
Camera_ErrorCode OH_VideoOutput_IsMirrorSupported (Camera_VideoOutput *videoOutput, bool *isSupported) | Checks whether a video output supports mirror mode. |
Camera_ErrorCode OH_VideoOutput_EnableMirror (Camera_VideoOutput *videoOutput, bool mirrorMode) | Enables or disables mirror mode for a video output. |
Camera_ErrorCode OH_VideoOutput_GetVideoRotation (Camera_VideoOutput *videoOutput, int deviceDegree, Camera_ImageRotation *imageRotation) | Obtains the rotation angle of a video output. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Camera_CaptureEndInfo
harmony 鸿蒙Camera_CaptureStartInfo
harmony 鸿蒙Camera_ConcurrentInfo
harmony 鸿蒙Camera_FrameRateRange
harmony 鸿蒙Camera_FrameShutterEndInfo
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦