JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
CameraDevice::Pimpl::ScopedCameraDevice Class Reference
Collaboration diagram for CameraDevice::Pimpl::ScopedCameraDevice:

Classes

class  CaptureSession
 

Public Member Functions

 ScopedCameraDevice (Pimpl &ownerToUse, const String &cameraIdToUse, GlobalRef &cameraManagerToUse, GlobalRef &handlerToUse, int autoFocusModeToUse)
 
 ~ScopedCameraDevice ()
 
void close ()
 
CaptureSessioncreateCaptureSession (CaptureSession::ConfiguredCallback &cc, const LocalRef< jobject > &surfacesList, GlobalRef &handlerToUse, int captureSessionTemplate)
 
bool hasErrorOccurred () const
 
void open ()
 
bool openedOk () const
 

Private Member Functions

LocalRef< jobjectcreateCameraStateCallbackObject ()
 
void notifyOpenResult ()
 

Static Private Member Functions

static void cameraDeviceStateClosedCallback (JNIEnv *, ScopedCameraDevice &s, jobject)
 
static void cameraDeviceStateDisconnectedCallback (JNIEnv *, ScopedCameraDevice &s, jobject)
 
static void cameraDeviceStateErrorCallback (JNIEnv *, ScopedCameraDevice &s, jobject, jint errorCode)
 
static void cameraDeviceStateOpenedCallback (JNIEnv *env, ScopedCameraDevice &s, jobject cameraDeviceToUse)
 

Private Attributes

int autoFocusMode
 
GlobalRef cameraDevice
 
const String cameraId
 
GlobalRef & cameraManager
 
GlobalRef cameraStateCallback
 
WaitableEvent closedEvent
 
Atomic< int > fatalErrorOccurred { 0 }
 
GlobalRef & handler
 
String openError
 
Pimplowner
 
Atomic< int > pendingClose { 0 }
 
Atomic< int > pendingOpen { 0 }
 

Constructor & Destructor Documentation

◆ ScopedCameraDevice()

CameraDevice::Pimpl::ScopedCameraDevice::ScopedCameraDevice ( Pimpl ownerToUse,
const String &  cameraIdToUse,
GlobalRef &  cameraManagerToUse,
GlobalRef &  handlerToUse,
int  autoFocusModeToUse 
)
inline

References open().

◆ ~ScopedCameraDevice()

CameraDevice::Pimpl::ScopedCameraDevice::~ScopedCameraDevice ( )
inline

References close().

Member Function Documentation

◆ cameraDeviceStateClosedCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateClosedCallback ( JNIEnv *  ,
ScopedCameraDevice s,
jobject   
)
inlinestaticprivate

References JUCE_CAMERA_LOG.

◆ cameraDeviceStateDisconnectedCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateDisconnectedCallback ( JNIEnv *  ,
ScopedCameraDevice s,
jobject   
)
inlinestaticprivate

References JUCE_CAMERA_LOG.

◆ cameraDeviceStateErrorCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateErrorCallback ( JNIEnv *  ,
ScopedCameraDevice s,
jobject  ,
jint  errorCode 
)
inlinestaticprivate

◆ cameraDeviceStateOpenedCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateOpenedCallback ( JNIEnv *  env,
ScopedCameraDevice s,
jobject  cameraDeviceToUse 
)
inlinestaticprivate

References JUCE_CAMERA_LOG.

◆ close()

void CameraDevice::Pimpl::ScopedCameraDevice::close ( )
inline

◆ createCameraStateCallbackObject()

LocalRef< jobject > CameraDevice::Pimpl::ScopedCameraDevice::createCameraStateCallbackObject ( )
inlineprivate

◆ createCaptureSession()

CaptureSession * CameraDevice::Pimpl::ScopedCameraDevice::createCaptureSession ( CaptureSession::ConfiguredCallback cc,
const LocalRef< jobject > &  surfacesList,
GlobalRef &  handlerToUse,
int  captureSessionTemplate 
)
inline

◆ hasErrorOccurred()

bool CameraDevice::Pimpl::ScopedCameraDevice::hasErrorOccurred ( ) const
inline

◆ notifyOpenResult()

void CameraDevice::Pimpl::ScopedCameraDevice::notifyOpenResult ( )
inlineprivate

◆ open()

void CameraDevice::Pimpl::ScopedCameraDevice::open ( )
inline

◆ openedOk()

bool CameraDevice::Pimpl::ScopedCameraDevice::openedOk ( ) const
inline

References cameraDevice.

Referenced by createCaptureSession().

Member Data Documentation

◆ autoFocusMode

int CameraDevice::Pimpl::ScopedCameraDevice::autoFocusMode
private

Referenced by createCaptureSession().

◆ cameraDevice

◆ cameraId

const String CameraDevice::Pimpl::ScopedCameraDevice::cameraId
private

Referenced by open().

◆ cameraManager

GlobalRef& CameraDevice::Pimpl::ScopedCameraDevice::cameraManager
private

Referenced by open().

◆ cameraStateCallback

GlobalRef CameraDevice::Pimpl::ScopedCameraDevice::cameraStateCallback
private

Referenced by open().

◆ closedEvent

WaitableEvent CameraDevice::Pimpl::ScopedCameraDevice::closedEvent
private

Referenced by close().

◆ fatalErrorOccurred

Atomic<int> CameraDevice::Pimpl::ScopedCameraDevice::fatalErrorOccurred { 0 }
private

◆ handler

GlobalRef& CameraDevice::Pimpl::ScopedCameraDevice::handler
private

Referenced by open().

◆ openError

String CameraDevice::Pimpl::ScopedCameraDevice::openError
private

Referenced by notifyOpenResult().

◆ owner

Pimpl& CameraDevice::Pimpl::ScopedCameraDevice::owner
private

Referenced by notifyOpenResult().

◆ pendingClose

Atomic<int> CameraDevice::Pimpl::ScopedCameraDevice::pendingClose { 0 }
private

Referenced by close().

◆ pendingOpen

Atomic<int> CameraDevice::Pimpl::ScopedCameraDevice::pendingOpen { 0 }
private

Referenced by close(), and open().


The documentation for this class was generated from the following file: