A Source for an image, useful for AR video see-through pipelines. UUID: 06e2fc5d-39da-4486-b2a6-1d8bd788fa13
More...
#include <ISourceImage.h>
|
virtual | ~ISourceImage ()=default |
| ~ISourceImage
|
|
virtual SourceReturnCode | setInputTexture (const void *sourceTexturehandle, const int width, const int height)=0 |
| Set a new image coming from a third party. More...
|
|
virtual SourceReturnCode | getNextImage (SRef< SolAR::datastructure::Image > &image) const =0 |
| Get a pointer to the texture buffer to update it with the new image when required. More...
|
|
A Source for an image, useful for AR video see-through pipelines. UUID: 06e2fc5d-39da-4486-b2a6-1d8bd788fa13
This interface allows to link a texture buffer from a third party to our pipeline
◆ getNextImage()
Get a pointer to the texture buffer to update it with the new image when required.
- Parameters
-
- Returns
- SourceReturnCode::SUCCESS if a new pose and image have been updated, otherwise frameworkReturnCode::_ERROR
◆ setInputTexture()
virtual SourceReturnCode SolAR::api::source::ISourceImage::setInputTexture |
( |
const void * |
sourceTexturehandle, |
|
|
const int |
width, |
|
|
const int |
height |
|
) |
| |
|
pure virtual |
Set a new image coming from a third party.
- Parameters
-
[in] | sourceTexturehandle | Texture buffer from third party like Unity |
[in] | width | of the image coming from the third party like Unity |
[in] | height | of the image coming from the third party like Unity |
- Returns
- SourceReturnCode::SUCCESS if a new pose and image have been updated, otherwise frameworkReturnCode::_ERROR
The documentation for this class was generated from the following file: