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

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

◆ 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

References juce::getEnv().

◆ 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

References juce::getEnv().

◆ 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

References juce::getEnv().

◆ 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

References juce::getEnv().

◆ 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

References juce::getEnv().

◆ getNativeSession()

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

◆ openedOk()

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

◆ setCaptureRequestBuilderIntegerKey()

static void CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession::setCaptureRequestBuilderIntegerKey ( jobject  captureRequestBuilder,
jfieldID  key,
int  value 
)
inlinestaticprivate

References juce::getEnv().

◆ start()

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

References juce::getEnv(), and jassertfalse.

◆ takeStillPicture()

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

References juce::getEnv(), and jassertfalse.

Friends And Related Function Documentation

◆ ScopedCameraDevice

friend class ScopedCameraDevice
friend

Member Data Documentation

◆ autoFocusMode

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

◆ 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

◆ closedEvent

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

◆ configuredCallback

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

◆ handler

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

◆ pendingClose

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

◆ previewCaptureRequest

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

◆ scopedCameraDevice

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

◆ stillPictureTaker

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

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