JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::CameraDevice::Listener Class Referenceabstract

Receives callbacks with individual frames from a CameraDevice. More...

#include <juce_CameraDevice.h>

Public Member Functions

 Listener ()
 
virtual ~Listener ()
 
virtual void imageReceived (const Image &image)=0
 This method is called when a new image arrives. More...
 

Detailed Description

Receives callbacks with individual frames from a CameraDevice.

It is mainly useful for processing multiple frames that has to be done as quickly as possible. The callbacks can be called from any thread.

If you just need to take one picture, you should use takeStillPicture() instead.

See also
CameraDevice::addListener

Constructor & Destructor Documentation

◆ Listener()

juce::CameraDevice::Listener::Listener ( )
inline

◆ ~Listener()

virtual juce::CameraDevice::Listener::~Listener ( )
inlinevirtual

Member Function Documentation

◆ imageReceived()

virtual void juce::CameraDevice::Listener::imageReceived ( const Image image)
pure virtual

This method is called when a new image arrives.

This may be called by any thread, so be careful about thread-safety, and make sure that you process the data as quickly as possible to avoid glitching!

Simply add a listener to be continuously notified about new frames becoming available and remove the listener when you no longer need new frames.

If you just need to take one picture, use takeStillPicture() instead.

See also
CameraDevice::takeStillPicture

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