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::CaptureSession Class Reference

#include <juce_android_CameraDevice.h>

Collaboration diagram for CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession:

Classes

struct  ConfiguredCallback
 
class  StillPictureTaker
 

Public Member Functions

 ~CaptureSession ()
 
const GlobalRef & getNativeSession () const
 
bool openedOk () const noexcept
 
bool start (const LocalRef< jobject > &targetSurfacesList, GlobalRef &handlerToUse)
 
void takeStillPicture (jobject targetSurface)
 

Private Member Functions

 CaptureSession (ScopedCameraDevice &scopedCameraDeviceToUse, ConfiguredCallback &configuredCallbackToUse, const LocalRef< jobject > &surfacesList, GlobalRef &handlerToUse, int captureSessionTemplate, int autoFocusModeToUse)
 
void cameraCaptureSessionActive (jobject session)
 
void cameraCaptureSessionClosed (jobject session)
 
void cameraCaptureSessionConfigured (const LocalRef< jobject > &session)
 
void cameraCaptureSessionConfigureFailed (jobject session)
 
void cameraCaptureSessionReady (const LocalRef< jobject > &session)
 

Static Private Member Functions

static void cameraCaptureSessionActiveCallback (JNIEnv *, jobject, jlong host, jobject rawSession)
 
static void cameraCaptureSessionClosedCallback (JNIEnv *, jobject, jlong host, jobject rawSession)
 
static void cameraCaptureSessionConfiguredCallback (JNIEnv *, jobject, jlong host, jobject rawSession)
 
static void cameraCaptureSessionConfigureFailedCallback (JNIEnv *, jobject, jlong host, jobject rawSession)
 
static void cameraCaptureSessionReadyCallback (JNIEnv *, jobject, jlong host, jobject rawSession)
 
static void setCaptureRequestBuilderIntegerKey (jobject captureRequestBuilder, jfieldID key, int value)
 

Private Attributes

int autoFocusMode
 
GlobalRef captureRequestBuilder
 
GlobalRef captureSession
 
CriticalSection captureSessionLock
 
GlobalRef captureSessionStateCallback
 
WaitableEvent closedEvent
 
ConfiguredCallbackconfiguredCallback
 
GlobalRef & handler
 
Atomic< intpendingClose { 0 }
 
GlobalRef previewCaptureRequest
 
ScopedCameraDevicescopedCameraDevice
 
std::unique_ptr< StillPictureTakerstillPictureTaker
 

Friends

class ScopedCameraDevice
 

Constructor & Destructor Documentation

◆ ~CaptureSession()

◆ CaptureSession()

CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::CaptureSession ( ScopedCameraDevice scopedCameraDeviceToUse,
ConfiguredCallback configuredCallbackToUse,
const LocalRef< jobject > &  surfacesList,
GlobalRef &  handlerToUse,
int  captureSessionTemplate,
int  autoFocusModeToUse 
)
inlineprivate

Member Function Documentation

◆ cameraCaptureSessionActive()

void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionActive ( jobject  session)
inlineprivate

◆ cameraCaptureSessionActiveCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionActiveCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  rawSession 
)
inlinestaticprivate

◆ cameraCaptureSessionClosed()

void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionClosed ( jobject  session)
inlineprivate

◆ cameraCaptureSessionClosedCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionClosedCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  rawSession 
)
inlinestaticprivate

◆ cameraCaptureSessionConfigured()

void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionConfigured ( const LocalRef< jobject > &  session)
inlineprivate

◆ cameraCaptureSessionConfiguredCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionConfiguredCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  rawSession 
)
inlinestaticprivate

◆ cameraCaptureSessionConfigureFailed()

void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionConfigureFailed ( jobject  session)
inlineprivate

◆ cameraCaptureSessionConfigureFailedCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionConfigureFailedCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  rawSession 
)
inlinestaticprivate

◆ cameraCaptureSessionReady()

void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionReady ( const LocalRef< jobject > &  session)
inlineprivate

◆ cameraCaptureSessionReadyCallback()

static void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::cameraCaptureSessionReadyCallback ( JNIEnv *  ,
jobject  ,
jlong  host,
jobject  rawSession 
)
inlinestaticprivate

◆ getNativeSession()

const GlobalRef& CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::getNativeSession ( ) const
inline

References captureSession.

◆ openedOk()

bool CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::openedOk ( ) const
inlinenoexcept

References captureSession.

Referenced by start().

◆ setCaptureRequestBuilderIntegerKey()

◆ start()

bool CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::start ( const LocalRef< jobject > &  targetSurfacesList,
GlobalRef &  handlerToUse 
)
inline

◆ takeStillPicture()

void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::takeStillPicture ( jobject  targetSurface)
inline

Friends And Related Function Documentation

◆ ScopedCameraDevice

friend class ScopedCameraDevice
friend

Member Data Documentation

◆ autoFocusMode

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

Referenced by CaptureSession(), and takeStillPicture().

◆ captureRequestBuilder

GlobalRef CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::captureRequestBuilder
private

◆ captureSession

GlobalRef CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::captureSession
private

◆ captureSessionLock

CriticalSection CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::captureSessionLock
private

◆ captureSessionStateCallback

GlobalRef CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::captureSessionStateCallback
private

Referenced by CaptureSession().

◆ closedEvent

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

◆ configuredCallback

ConfiguredCallback& CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::configuredCallback
private

◆ handler

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

Referenced by CaptureSession().

◆ pendingClose

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

◆ previewCaptureRequest

GlobalRef CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::previewCaptureRequest
private

Referenced by start().

◆ scopedCameraDevice

ScopedCameraDevice& CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::scopedCameraDevice
private

◆ stillPictureTaker

std::unique_ptr<StillPictureTaker> CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::stillPictureTaker
private

Referenced by takeStillPicture().


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