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

Classes

struct  Listener
 

Public Member Functions

 PreviewDisplay (Rectangle< int > bufferSize)
 
 ~PreviewDisplay ()
 
void addListener (Listener *l)
 
LocalRef< jobject > createSurface ()
 
const GlobalRef & getNativeView ()
 
bool isReady () const
 
void removeListener (Listener *l)
 
void updateSurfaceTransform ()
 

Private Member Functions

void onSurfaceTextureAvailable (LocalRef< jobject > &, int widthToUse, int heightToUse) override
 
bool onSurfaceTextureDestroyed (LocalRef< jobject > &) override
 
void onSurfaceTextureSizeChanged (LocalRef< jobject > &, int widthToUse, int heightToUse) override
 
void onSurfaceTextureUpdated (LocalRef< jobject > &) override
 

Private Attributes

int bufferHeight
 
int bufferWidth
 
int height = -1
 
ListenerList< Listenerlisteners
 
GlobalRef textureView
 
TextureViewSurfaceTextureListener textureViewSurfaceTextureListener
 
int width = -1
 

Constructor & Destructor Documentation

◆ PreviewDisplay()

CameraDevice::Pimpl::PreviewDisplay::PreviewDisplay ( Rectangle< int bufferSize)
inline

◆ ~PreviewDisplay()

CameraDevice::Pimpl::PreviewDisplay::~PreviewDisplay ( )
inline

References juce::getEnv().

Member Function Documentation

◆ addListener()

void CameraDevice::Pimpl::PreviewDisplay::addListener ( Listener l)
inline

◆ createSurface()

LocalRef<jobject> CameraDevice::Pimpl::PreviewDisplay::createSurface ( )
inline

References juce::getEnv().

◆ getNativeView()

const GlobalRef& CameraDevice::Pimpl::PreviewDisplay::getNativeView ( )
inline

◆ isReady()

bool CameraDevice::Pimpl::PreviewDisplay::isReady ( ) const
inline

References juce::getEnv().

◆ onSurfaceTextureAvailable()

void CameraDevice::Pimpl::PreviewDisplay::onSurfaceTextureAvailable ( LocalRef< jobject > &  ,
int  widthToUse,
int  heightToUse 
)
inlineoverrideprivatevirtual

◆ onSurfaceTextureDestroyed()

bool CameraDevice::Pimpl::PreviewDisplay::onSurfaceTextureDestroyed ( LocalRef< jobject > &  )
inlineoverrideprivatevirtual

◆ onSurfaceTextureSizeChanged()

void CameraDevice::Pimpl::PreviewDisplay::onSurfaceTextureSizeChanged ( LocalRef< jobject > &  ,
int  widthToUse,
int  heightToUse 
)
inlineoverrideprivatevirtual

◆ onSurfaceTextureUpdated()

void CameraDevice::Pimpl::PreviewDisplay::onSurfaceTextureUpdated ( LocalRef< jobject > &  )
inlineoverrideprivatevirtual

◆ removeListener()

void CameraDevice::Pimpl::PreviewDisplay::removeListener ( Listener l)
inline

References jassertfalse.

◆ updateSurfaceTransform()

void CameraDevice::Pimpl::PreviewDisplay::updateSurfaceTransform ( )
inline

Member Data Documentation

◆ bufferHeight

int CameraDevice::Pimpl::PreviewDisplay::bufferHeight
private

◆ bufferWidth

int CameraDevice::Pimpl::PreviewDisplay::bufferWidth
private

◆ height

int CameraDevice::Pimpl::PreviewDisplay::height = -1
private

◆ listeners

ListenerList<Listener> CameraDevice::Pimpl::PreviewDisplay::listeners
private

◆ textureView

GlobalRef CameraDevice::Pimpl::PreviewDisplay::textureView
private

◆ textureViewSurfaceTextureListener

TextureViewSurfaceTextureListener CameraDevice::Pimpl::PreviewDisplay::textureViewSurfaceTextureListener
private

◆ width

int CameraDevice::Pimpl::PreviewDisplay::width = -1
private

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