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::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 () override
 
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 ( )
inlineoverride

References juce::getEnv(), and textureView.

Member Function Documentation

◆ addListener()

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

◆ createSurface()

◆ getNativeView()

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

References textureView.

◆ isReady()

◆ 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

◆ updateSurfaceTransform()

Member Data Documentation

◆ bufferHeight

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

Referenced by createSurface().

◆ bufferWidth

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

Referenced by createSurface().

◆ 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

Referenced by PreviewDisplay().

◆ width

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

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