JUCE  v5.4.1-191-g0ab5e696f
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

◆ ~ScopedCameraDevice()

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

Member Function Documentation

◆ cameraDeviceStateClosed()

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

References JUCE_CAMERA_LOG.

◆ cameraDeviceStateClosedCallback()

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

◆ cameraDeviceStateDisconnected()

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

References JUCE_CAMERA_LOG.

◆ 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

References JUCE_CAMERA_LOG.

◆ 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

References juce::getEnv().

◆ 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

Member Data Documentation

◆ autoFocusMode

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

◆ cameraDevice

GlobalRef CameraDevice::Pimpl::ScopedCameraDevice::cameraDevice
private

◆ cameraId

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

◆ cameraManager

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

◆ cameraStateCallback

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

◆ closedEvent

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

◆ fatalErrorOccurred

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

◆ handler

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

◆ openError

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

◆ owner

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

◆ pendingClose

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

◆ pendingOpen

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

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