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

References defaultPreviewSize.

◆ getLargestSize()

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

References juce::gl::size, and juce::gl::sizes.

◆ getPreviewBufferSize()

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

References previewBufferSize.

◆ getSmallestSize()

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

References juce::gl::size, and juce::gl::sizes.

◆ 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

◆ 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

Member Data Documentation

◆ defaultPreviewSize

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

Referenced by getDefaultPreviewSize().

◆ jpegImageFormat

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

◆ previewBufferSize

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

Referenced by getPreviewBufferSize().

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