Loading...
Searching...
No Matches
juce::CameraDevice::Listener Class Referenceabstract

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

Public Member Functions

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

Constructors and Destructors

◆ Listener()

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

◆ ~Listener()

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

Member Functions

◆ 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

References juce::image.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram