|
Agora C++ API Reference for All Platforms
|
7 #pragma once // NOLINT(build/header_guard)
10 #include "AgoraRefPtr.h"
11 #include <api/cpp/aosl_ares_class.h>
16 class ICameraCaptureObserver;
56 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IPHONE) || defined (__OHOS__)
108 virtual int32_t
setCameraZoom(
float zoomValue, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
139 virtual int32_t
setCameraFocus(
float x,
float y, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
279 #if (defined(__APPLE__) && TARGET_OS_IOS)
325 #elif defined(_WIN32) || (defined(__linux__) && !defined(__ANDROID__) && !defined (__OHOS__)) || \
326 (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
354 #if defined(__APPLE__)
463 int imageWidth,
int imageHeight,
const Rectangle* vecRectangle,
const int* vecDistance,
int numFaces) {
virtual int setCaptureFormat(const VideoFormat &capture_format, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual ~ICameraCaptureObserver()
Definition: NGIAgoraCameraCapturer.h:495
~ICameraCapturer()
Definition: NGIAgoraCameraCapturer.h:409
virtual bool isCenterStageSupported()=0
virtual int setCameraExposurePosition(float positionXinView, float positionYinView, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int setCameraTorchOn(bool on, aosl_ref_t ares=AOSL_REF_INVALID)=0
Definition: NGIAgoraCameraCapturer.h:414
CAMERA_SOURCE
Definition: NGIAgoraCameraCapturer.h:26
virtual int enableCenterStage(bool enabled)=0
virtual bool enableMultiCamera(bool enable, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual bool isFocusSupported()=0
The location of the target area relative to the screen or window. If you do not set this parameter,...
Definition: AgoraBase.h:2354
virtual bool isCameraAutoExposureFaceModeSupported()=0
virtual bool isCameraTorchSupported()=0
virtual bool isCameraExposureSupported()=0
virtual void onCameraFocusAreaChanged(int imageWidth, int imageHeight, int x, int y)
Definition: NGIAgoraCameraCapturer.h:427
virtual void onCameraExposureAreaChanged(int x, int y, int width, int height)
Definition: NGIAgoraCameraCapturer.h:482
virtual int32_t setCameraZoom(float zoomValue, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual void onCameraStateChanged(ICameraCapturer::CAMERA_STATE state, ICameraCapturer::CAMERA_SOURCE source)
Definition: NGIAgoraCameraCapturer.h:489
Definition: AgoraAtomicOps.h:21
virtual int unregisterCameraObserver(ICameraCaptureObserver *observer)=0
@ CAMERA_FRONT
Definition: NGIAgoraCameraCapturer.h:34
virtual int initWithDeviceId(const char *deviceId)=0
virtual float getCameraMaxZoom()=0
VIDEO_ORIENTATION
The clockwise rotation of the video.
Definition: AgoraBase.h:1013
virtual int initWithDeviceName(const char *deviceName)=0
Definition: NGIAgoraCameraCapturer.h:20
virtual int setCameraExposureFactor(float value, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int setCameraStabilizationMode(CAMERA_STABILIZATION_MODE mode)=0
virtual bool isCameraFaceDetectSupported()=0
virtual int32_t setCameraFocus(float x, float y, aosl_ref_t ares=AOSL_REF_INVALID)=0
@ CAMERA_EXTRA
Definition: NGIAgoraCameraCapturer.h:38
virtual int setDeviceOrientation(VIDEO_ORIENTATION orientation, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual void onFacePositionChanged(int imageWidth, int imageHeight, const Rectangle *vecRectangle, const int *vecDistance, int numFaces)
Definition: NGIAgoraCameraCapturer.h:462
virtual CAMERA_SOURCE getCameraSource()=0
virtual int registerCameraObserver(ICameraCaptureObserver *observer, aosl_ref_t ares=AOSL_REF_INVALID)=0
CAMERA_STABILIZATION_MODE
Camera stabilization modes.
Definition: AgoraBase.h:3386
virtual int switchCamera(aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual bool isZoomSupported()=0
Definition: AgoraRefPtr.h:31
virtual int32_t setCameraAutoFaceFocus(bool enable, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int setCameraSource(CAMERA_SOURCE source, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual VideoFormat getCaptureFormat()=0
@ CAMERA_STOPPED
Definition: NGIAgoraCameraCapturer.h:52
virtual bool isCameraExposurePositionSupported()=0
@ CAMERA_BACK
Definition: NGIAgoraCameraCapturer.h:30
@ CAMERA_STARTED
Definition: NGIAgoraCameraCapturer.h:48
CAMERA_STATE
Definition: NGIAgoraCameraCapturer.h:44
virtual int32_t enableFaceDetection(bool enable, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual bool isAutoFaceFocusSupported()=0
Definition: video_node_i.h:28
virtual int setCameraAutoExposureFaceModeEnabled(bool enabled, aosl_ref_t ares=AOSL_REF_INVALID)=0