|
virtual | ~imageLoader () |
| Destructor. More...
|
|
virtual bool | Capture (void **image, imageFormat format, uint64_t timeout=DEFAULT_TIMEOUT, int *status=NULL) |
| Load the next frame. More...
|
|
virtual bool | Open () |
| Open the stream. More...
|
|
virtual void | Close () |
| Close the stream. More...
|
|
bool | IsEOS () const |
| Return true if End Of Stream (EOS) has been reached. More...
|
|
virtual uint32_t | GetType () const |
| Return the interface type (imageLoader::Type) More...
|
|
virtual | ~videoSource () |
| Destroy interface and release all resources. More...
|
|
template<typename T > |
bool | Capture (T **image, int *status) |
| Capture the next image from the video stream, using the default timeout of 1000ms. More...
|
|
template<typename T > |
bool | Capture (T **image, uint64_t timeout=DEFAULT_TIMEOUT, int *status=NULL) |
| Capture the next image from the video stream. More...
|
|
bool | IsStreaming () const |
| Check if the device is actively streaming or not. More...
|
|
uint32_t | GetWidth () const |
| Return the width of the stream, in pixels. More...
|
|
uint32_t | GetHeight () const |
| Return the height of the stream, in pixels. More...
|
|
uint32_t | GetFrameRate () const |
| Return the framerate, in Hz or FPS. More...
|
|
uint64_t | GetFrameCount () const |
| Return the number of frames captured. More...
|
|
uint64_t | GetLastTimestamp () const |
| Get timestamp of the last captured frame, in nanoseconds. More...
|
|
imageFormat | GetRawFormat () const |
| Get raw image format. More...
|
|
const URI & | GetResource () const |
| Return the resource URI of the stream. More...
|
|
const videoOptions & | GetOptions () const |
| Return the videoOptions of the stream. More...
|
|
bool | IsType (uint32_t type) const |
| Check if this stream is of a particular type. More...
|
|
template<typename T > |
bool | IsType () const |
| Check if a this stream is of a particular type. More...
|
|
const char * | TypeToStr () const |
| Convert this stream's class type to string. More...
|
|
|
static imageLoader * | Create (const char *path, const videoOptions &options=videoOptions()) |
| Create an imageLoader instance from a path and optional videoOptions. More...
|
|
static imageLoader * | Create (const videoOptions &options) |
| Create an imageLoader instance from the provided video options. More...
|
|
static bool | IsSupportedExtension (const char *ext) |
| Return true if the extension is in the list of SupportedExtensions. More...
|
|
static videoSource * | Create (const videoOptions &options) |
| Create videoSource interface from a videoOptions struct that's already been filled out. More...
|
|
static videoSource * | Create (const char *URI, const videoOptions &options=videoOptions()) |
| Create videoSource interface from a resource URI string and optional videoOptions. More...
|
|
static videoSource * | Create (const char *URI, const commandLine &cmdLine) |
| Create videoSource interface from a resource URI string and parsing command line arguments. More...
|
|
static videoSource * | Create (const char *URI, const int argc, char **argv) |
| Create videoSource interface from a resource URI string and parsing command line arguments. More...
|
|
static videoSource * | Create (const int argc, char **argv, int positionArg=-1) |
| Create videoSource interface by parsing command line arguments, including the resource URI. More...
|
|
static videoSource * | Create (const commandLine &cmdLine, int positionArg=-1) |
| Create videoSource interface by parsing command line arguments, including the resource URI. More...
|
|
static const char * | Usage () |
| Usage string for command line arguments to Create() More...
|
|
static const char * | TypeToStr (uint32_t type) |
| Convert a class type to a string. More...
|
|
Load an image or set of images from disk into GPU memory.
Supported image formats for loading are JPG, PNG, TGA, BMP, GIF, PSD, HDR, PIC, and PNM (PPM/PGM binary). Internally, imageLoader uses the loadImage() function to load the images, so the supported formats are the same.
imageLoader has the ability to load an sequence of images from a directory, including wildcard characters (e.g. images/*.jpg
), or just a single image. When given just the path to a directory, it will load all valid images from that directory.
- Note
- imageLoader implements the videoSource interface and is intended to be used through that as opposed to directly. videoSource implements additional command-line parsing of videoOptions to construct instances.
- See also
- videoSource