JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
CameraDevice::Pimpl::ScopedCameraDevice Class Reference
Collaboration diagram for CameraDevice::Pimpl::ScopedCameraDevice:

Classes

class  CaptureSession
 
class  CaptureSession
 
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

void cameraDeviceStateClosed ()
 
void cameraDeviceStateDisconnected ()
 
void cameraDeviceStateError (int errorCode)
 
void cameraDeviceStateOpened (const LocalRef< jobject > &cameraDeviceToUse)
 
LocalRef< jobject > createCameraStateCallbackObject ()
 
void notifyOpenResult ()
 

Static Private Member Functions

static void JNICALL cameraDeviceStateClosedCallback (JNIEnv *, jobject, jlong host, jobject)
 
static void JNICALL cameraDeviceStateDisconnectedCallback (JNIEnv *, jobject, jlong host, jobject)
 
static void JNICALL cameraDeviceStateErrorCallback (JNIEnv *, jobject, jlong host, jobject, jint error)
 
static void JNICALL cameraDeviceStateOpenedCallback (JNIEnv *, jobject, jlong host, jobject rawCamera)
 

Private Attributes

int autoFocusMode
 
GlobalRef cameraDevice
 
const String cameraId
 
GlobalRef & cameraManager
 
GlobalRef cameraStateCallback
 
WaitableEvent closedEvent
 
Atomic< intfatalErrorOccurred { 0 }
 
GlobalRef & handler
 
String openError
 
Pimplowner
 
Atomic< intpendingClose { 0 }
 
Atomic< intpendingOpen { 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

◆ cameraDeviceStateClosed()

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

References closedEvent, and JUCE_CAMERA_LOG.

◆ cameraDeviceStateClosedCallback()

static void JNICALL CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateClosedCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject   
)
inlinestaticprivate

◆ cameraDeviceStateDisconnected()

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

◆ cameraDeviceStateDisconnectedCallback()

static void JNICALL CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateDisconnectedCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject   
)
inlinestaticprivate

◆ cameraDeviceStateError()

void CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateError ( int  errorCode)
inlineprivate

◆ cameraDeviceStateErrorCallback()

static void JNICALL CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateErrorCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  ,
jint  error 
)
inlinestaticprivate

◆ cameraDeviceStateOpened()

void CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateOpened ( const LocalRef< jobject > &  cameraDeviceToUse)
inlineprivate

◆ cameraDeviceStateOpenedCallback()

static void JNICALL CameraDevice::Pimpl::ScopedCameraDevice::cameraDeviceStateOpenedCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  rawCamera 
)
inlinestaticprivate

References juce::getEnv().

◆ close()

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

◆ createCameraStateCallbackObject()

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

References juce::getEnv().

◆ 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()

◆ 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 cameraDeviceStateClosed(), and 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

◆ owner

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

◆ pendingClose

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

Referenced by close().

◆ pendingOpen

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

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