CameraDevice::Listener Class Referenceabstract
juce_video » capture

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

## 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()

CameraDevice::Listener::Listener | ( |  | ) |

## ~Listener()

virtual CameraDevice::Listener::~Listener | ( |  | ) |

virtual

## Member Function Documentation

## imageReceived()

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

- juce_CameraDevice.h