|
Ocean
|
This class implements a frame provider interface specialization using an image sequence medium object. More...
#include <ImageSequenceFrameProviderInterface.h>
Public Member Functions | |
| ImageSequenceFrameProviderInterface (const ImageSequenceRef &imageSequence) | |
| Creates a new image sequence provider interface. | |
| ~ImageSequenceFrameProviderInterface () override | |
| Destructs this image sequence provider and waits until all asynchronous requests have been processed. | |
| bool | isInitialized () override |
| Returns whether the internal information of this interface has been initialized already and whether request functions can be handled. | |
| bool | setPreferredFrameType (const FrameType::PixelFormat pixelFormat, const FrameType::PixelOrigin pixelOrigin) override |
| Sets a preferred frame type pixel format and pixel origin for this interface. | |
| void | asynchronFrameRequest (const unsigned int index, const bool priority=false) override |
| Invokes an asynchronous frame request. | |
| FrameRef | synchronFrameRequest (const unsigned int index, const double timeout=10.0, bool *abort=nullptr) override |
| Invokes a synchronous frame request. | |
| void | asynchronFrameNumberRequest () override |
| Invokes an asynchronous frame number request. | |
| unsigned int | synchronFrameNumberRequest (const double timeout=10.0, bool *abort=nullptr) override |
| Invokes a synchronous frame number request. | |
| void | asynchronFrameTypeRequest () override |
| Invokes an asynchronous frame type request. | |
| FrameType | synchronFrameTypeRequest (const double timeout=10.0, bool *abort=nullptr) override |
| Invokes a synchronous frame type request. | |
Public Member Functions inherited from Ocean::CV::FrameProviderInterface | |
| virtual bool | synchronInitializationRequest (const double timeout=120.0, bool *abort=nullptr) |
| Waits until this interface has been initialized. | |
| virtual void | frameCacheRequest (const unsigned int index, const int range) |
| Invokes a suggestion to pre-load or to cache some frames that might be requested soon. | |
| void | registerFrameCallback (const FrameCallback &callback) |
| Registers a new callback function for asynchronous frame requests. | |
| void | unregisterFrameCallback (const FrameCallback &callback) |
| Unregisters an already registered callback function for frame requests. | |
| void | registerFrameNumberCallback (const FrameNumberCallback &callback) |
| Registers a new callback function for asynchronous frame number requests. | |
| void | unregisterFrameNumberCallback (const FrameNumberCallback &callback) |
| Unregisters an already registered callback function for frame number requests. | |
| void | registerFrameTypeCallback (const FrameTypeCallback &callback) |
| Registers a new callback function for asynchronous frame type requests. | |
| void | unregisterFrameTypeCallback (const FrameTypeCallback &callback) |
| Unregisters an already registered callback function for frame type requests. | |
| virtual void | release () |
| Releases all associated resources. | |
Protected Member Functions | |
| void | handleAsynchronFrameRequest (const unsigned int index) |
| Internal function to handle asynchronous frame requests. | |
| void | handleAsynchronFrameNumberRequest () |
| Internal function to handle asynchronous frame number requests. | |
| void | handleAsynchronFrameTypeRequest () |
| Internal function to handle asynchronous frame type requests. | |
Protected Member Functions inherited from Ocean::CV::FrameProviderInterface | |
| FrameProviderInterface ()=default | |
| Protected default constructor. | |
| FrameProviderInterface (const FrameProviderInterface &frameProviderInterface)=delete | |
| Disabled copy constructor. | |
| virtual | ~FrameProviderInterface () |
| Releases the interface. | |
| FrameProviderInterface & | operator= (const FrameProviderInterface &frameProviderInterface)=delete |
| Disabled copy constructor. | |
Protected Attributes | |
| ImageSequenceRef | imageSequence_ |
| Image sequence used as frame source. | |
| unsigned int | pendingAsynchronousRequests_ = 0u |
| The number of pending asynchronous requests. | |
| FrameType::PixelFormat | preferredPixelFormat_ = FrameType::FORMAT_UNDEFINED |
| The preferred pixel format of the resulting images, if any. | |
| FrameType::PixelOrigin | preferredPixelOrigin_ = FrameType::ORIGIN_INVALID |
| The preferred pixel origin of the resulting images, if any. | |
| Lock | lock_ |
| Interface lock. | |
Protected Attributes inherited from Ocean::CV::FrameProviderInterface | |
| FrameCallbacks | frameCallbacks_ |
| A list of frame request callbacks. | |
| FrameNumberCallbacks | frameNumberCallbacks_ |
| A list of frame number request callbacks. | |
| FrameTypeCallbacks | frameTypeCallbacks_ |
| A list of frame type request callbacks. | |
Additional Inherited Members | |
Public Types inherited from Ocean::CV::FrameProviderInterface | |
| using | FrameCallback = Callback< void, FrameRef, const unsigned int > |
| Definition of a frame request callback function. | |
| using | FrameNumberCallback = Callback< void, unsigned int > |
| Definition of a frame number request callback function. | |
| using | FrameTypeCallback = Callback< void, const FrameType & > |
| Definition of a frame type request callback function. | |
Protected Types inherited from Ocean::CV::FrameProviderInterface | |
| using | FrameCallbacks = ConcurrentCallbacks< FrameCallback > |
| Definition of a list that stores frame request callbacks. | |
| using | FrameNumberCallbacks = ConcurrentCallbacks< FrameNumberCallback > |
| Definition of a list that stores frame number request callbacks. | |
| using | FrameTypeCallbacks = ConcurrentCallbacks< FrameTypeCallback > |
| Definition of a list that stores frame type request callbacks. | |
This class implements a frame provider interface specialization using an image sequence medium object.
| Ocean::Media::ImageSequenceFrameProviderInterface::ImageSequenceFrameProviderInterface | ( | const ImageSequenceRef & | imageSequence | ) |
Creates a new image sequence provider interface.
| imageSequence | Image seqeunce that is used as frame source |
|
override |
Destructs this image sequence provider and waits until all asynchronous requests have been processed.
|
overridevirtual |
Invokes an asynchronous frame number request.
Implements Ocean::CV::FrameProviderInterface.
|
overridevirtual |
Invokes an asynchronous frame request.
Implements Ocean::CV::FrameProviderInterface.
|
overridevirtual |
Invokes an asynchronous frame type request.
Implements Ocean::CV::FrameProviderInterface.
|
protected |
Internal function to handle asynchronous frame number requests.
|
protected |
Internal function to handle asynchronous frame requests.
| index | The index of the frame that has been requested |
|
protected |
Internal function to handle asynchronous frame type requests.
|
overridevirtual |
Returns whether the internal information of this interface has been initialized already and whether request functions can be handled.
Implements Ocean::CV::FrameProviderInterface.
|
overridevirtual |
Sets a preferred frame type pixel format and pixel origin for this interface.
Implements Ocean::CV::FrameProviderInterface.
|
overridevirtual |
Invokes a synchronous frame number request.
Implements Ocean::CV::FrameProviderInterface.
|
overridevirtual |
Invokes a synchronous frame request.
Implements Ocean::CV::FrameProviderInterface.
|
overridevirtual |
Invokes a synchronous frame type request.
Implements Ocean::CV::FrameProviderInterface.
|
protected |
Image sequence used as frame source.
|
protected |
Interface lock.
|
protected |
The number of pending asynchronous requests.
|
protected |
The preferred pixel format of the resulting images, if any.
|
protected |
The preferred pixel origin of the resulting images, if any.