harmony 鸿蒙video_output.h

2025-06-12 浏览 (1)

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

NameDescription
struct VideoOutput_CallbacksDescribes the callbacks related to video output.

Types

NameDescription
typedef struct Camera_VideoOutput Camera_VideoOutputDefines 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_CallbacksDefines a struct for the callbacks related to video output.

Functions

NameDescription
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 Kit

harmony 鸿蒙Camera_CaptureEndInfo

harmony 鸿蒙Camera_CaptureStartInfo

harmony 鸿蒙Camera_ConcurrentInfo

harmony 鸿蒙Camera_Device

harmony 鸿蒙Camera_FrameRateRange

harmony 鸿蒙Camera_FrameShutterEndInfo

harmony 鸿蒙Camera_FrameShutterInfo

harmony 鸿蒙Camera_Location

harmony 鸿蒙Camera_MetadataObject

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