JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
CameraDevice::Pimpl::StreamConfigurationMap Class Reference
Collaboration diagram for CameraDevice::Pimpl::StreamConfigurationMap:

Public Member Functions

 StreamConfigurationMap (const GlobalRef &cameraCharacteristicsToUse)
 
Rectangle< intgetDefaultPreviewSize () const noexcept
 
Rectangle< intgetPreviewBufferSize () const noexcept
 
Array< Rectangle< int > > getSupportedPreviewOutputSizes () const noexcept
 
Array< Rectangle< int > > getSupportedStillImageOutputSizes () const noexcept
 
Array< Rectangle< int > > getSupportedVideoRecordingOutputSizes () const noexcept
 
bool isOutputSupportedForSurface (const LocalRef< jobject > &surface) const
 

Static Public Attributes

static constexpr int jpegImageFormat = 256
 

Private Member Functions

Rectangle< intgetLargestSize (const Array< Rectangle< int >> &sizes) const
 
Rectangle< intgetSmallestSize (const Array< Rectangle< int >> &sizes) const
 
GlobalRef getStreamConfigurationMap (const GlobalRef &cameraCharacteristicsToUse)
 

Static Private Member Functions

static LocalRef< jobject > getClassForName (const String &name)
 
static void printSizesLog (const Array< Rectangle< int >> &sizes, const String &className)
 
static Array< Rectangle< int > > retrieveOutputSizes (GlobalRef &scalerStreamConfigurationMap, const LocalRef< jobject > &outputClass, int format)
 

Private Attributes

Rectangle< intdefaultPreviewSize
 
Rectangle< intpreviewBufferSize
 
GlobalRef scalerStreamConfigurationMap
 
Array< Rectangle< int > > supportedPreviewOutputSizes
 
Array< Rectangle< int > > supportedStillImageOutputSizes
 
Array< Rectangle< int > > supportedVideoRecordingOutputSizes
 

Constructor & Destructor Documentation

◆ StreamConfigurationMap()

CameraDevice::Pimpl::StreamConfigurationMap::StreamConfigurationMap ( const GlobalRef &  cameraCharacteristicsToUse)
inline

Member Function Documentation

◆ getClassForName()

static LocalRef<jobject> CameraDevice::Pimpl::StreamConfigurationMap::getClassForName ( const String &  name)
inlinestaticprivate

◆ getDefaultPreviewSize()

Rectangle<int> CameraDevice::Pimpl::StreamConfigurationMap::getDefaultPreviewSize ( ) const
inlinenoexcept

◆ getLargestSize()

Rectangle<int> CameraDevice::Pimpl::StreamConfigurationMap::getLargestSize ( const Array< Rectangle< int >> &  sizes) const
inlineprivate

◆ getPreviewBufferSize()

Rectangle<int> CameraDevice::Pimpl::StreamConfigurationMap::getPreviewBufferSize ( ) const
inlinenoexcept

◆ getSmallestSize()

Rectangle<int> CameraDevice::Pimpl::StreamConfigurationMap::getSmallestSize ( const Array< Rectangle< int >> &  sizes) const
inlineprivate

◆ getStreamConfigurationMap()

GlobalRef CameraDevice::Pimpl::StreamConfigurationMap::getStreamConfigurationMap ( const GlobalRef &  cameraCharacteristicsToUse)
inlineprivate

References juce::getEnv().

◆ getSupportedPreviewOutputSizes()

Array<Rectangle<int> > CameraDevice::Pimpl::StreamConfigurationMap::getSupportedPreviewOutputSizes ( ) const
inlinenoexcept

◆ getSupportedStillImageOutputSizes()

Array<Rectangle<int> > CameraDevice::Pimpl::StreamConfigurationMap::getSupportedStillImageOutputSizes ( ) const
inlinenoexcept

◆ getSupportedVideoRecordingOutputSizes()

Array<Rectangle<int> > CameraDevice::Pimpl::StreamConfigurationMap::getSupportedVideoRecordingOutputSizes ( ) const
inlinenoexcept

◆ isOutputSupportedForSurface()

bool CameraDevice::Pimpl::StreamConfigurationMap::isOutputSupportedForSurface ( const LocalRef< jobject > &  surface) const
inline

References juce::getEnv().

◆ printSizesLog()

static void CameraDevice::Pimpl::StreamConfigurationMap::printSizesLog ( const Array< Rectangle< int >> &  sizes,
const String &  className 
)
inlinestaticprivate

◆ retrieveOutputSizes()

static Array<Rectangle<int> > CameraDevice::Pimpl::StreamConfigurationMap::retrieveOutputSizes ( GlobalRef &  scalerStreamConfigurationMap,
const LocalRef< jobject > &  outputClass,
int  format 
)
inlinestaticprivate

References juce::getEnv(), jassert, and jassertfalse.

Member Data Documentation

◆ defaultPreviewSize

Rectangle<int> CameraDevice::Pimpl::StreamConfigurationMap::defaultPreviewSize
private

◆ jpegImageFormat

constexpr int CameraDevice::Pimpl::StreamConfigurationMap::jpegImageFormat = 256
static

◆ previewBufferSize

Rectangle<int> CameraDevice::Pimpl::StreamConfigurationMap::previewBufferSize
private

◆ scalerStreamConfigurationMap

GlobalRef CameraDevice::Pimpl::StreamConfigurationMap::scalerStreamConfigurationMap
private

◆ supportedPreviewOutputSizes

Array<Rectangle<int> > CameraDevice::Pimpl::StreamConfigurationMap::supportedPreviewOutputSizes
private

◆ supportedStillImageOutputSizes

Array<Rectangle<int> > CameraDevice::Pimpl::StreamConfigurationMap::supportedStillImageOutputSizes
private

◆ supportedVideoRecordingOutputSizes

Array<Rectangle<int> > CameraDevice::Pimpl::StreamConfigurationMap::supportedVideoRecordingOutputSizes
private

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