|
| ~gstDecoder () |
| Destructor. More...
|
|
virtual bool | Capture (void **image, imageFormat format, uint64_t timeout=DEFAULT_TIMEOUT, int *status=NULL) |
| Capture the next decoded 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 (gstDecoder::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 gstDecoder * | Create (const videoOptions &options) |
| Create a decoder from the provided video options. More...
|
|
static gstDecoder * | Create (const URI &resource, videoOptions::Codec codec) |
| Create a decoder instance from resource URI and codec. 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...
|
|
Hardware-accelerated video decoder for Jetson using GStreamer.
gstDecoder supports loading video files from disk (MKV, MP4, AVI, FLV) and RTP/RTSP network streams over UDP/IP. The supported decoder codecs are H.264, H.265, VP8, VP9, MPEG-2, MPEG-4, and MJPEG.
- Note
- gstDecoder 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