JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
CameraDevice::Pimpl::ScopedCameraDevice::CaptureSession Class Reference

#include <juce_CameraDevice_android.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)
 

Static Private Member Functions

static void cameraCaptureSessionActiveCallback (JNIEnv *env, CaptureSession &t, jobject rawSession)
 
static void cameraCaptureSessionClosedCallback (JNIEnv *env, CaptureSession &t, jobject rawSession)
 
static void cameraCaptureSessionConfiguredCallback (JNIEnv *env, CaptureSession &t, jobject rawSession)
 
static void cameraCaptureSessionConfigureFailedCallback (JNIEnv *env, CaptureSession &t, jobject rawSession)
 
static void cameraCaptureSessionReadyCallback (JNIEnv *env, CaptureSession &t, 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< int > pendingClose { 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

◆ cameraCaptureSessionActiveCallback()

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

References JUCE_CAMERA_LOG.

◆ cameraCaptureSessionClosedCallback()

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

References JUCE_CAMERA_LOG.

◆ cameraCaptureSessionConfiguredCallback()

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

References JUCE_CAMERA_LOG.

◆ cameraCaptureSessionConfigureFailedCallback()

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

References JUCE_CAMERA_LOG.

◆ cameraCaptureSessionReadyCallback()

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

References JUCE_CAMERA_LOG.

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

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

◆ 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 Symbol 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

Referenced by ~CaptureSession().

◆ captureSessionStateCallback

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

Referenced by CaptureSession().

◆ closedEvent

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

Referenced by ~CaptureSession().

◆ 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

Referenced by ~CaptureSession().

◆ 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: