Jetson Inference
DNN Vision Library
gstDecoder Class Reference

Hardware-accelerated H.264/H.265 video decoder for Jetson using GStreamer. More...

#include <gstDecoder.h>

Public Member Functions

gstDecoderCreate (gstCodec codec, const char *filename)
 Create an decoder instance that reads from a video file on disk. More...
 
gstDecoderCreate (gstCodec codec, uint16_t port)
 Create an decoder instance that streams over the network. More...
 
gstDecoderCreate (gstCodec codec, const char *multicastIP, uint16_t port)
 Create an decoder instance that streams over the network using multicast. More...
 
 ~gstDecoder ()
 Destructor. More...
 

Protected Member Functions

 gstDecoder ()
 
void checkMsgBus ()
 
void checkBuffer ()
 
bool buildLaunchStr ()
 
bool init (gstCodec codec, const char *filename, const char *multicastIP, uint16_t port)
 

Static Protected Member Functions

static void onEOS (_GstAppSink *sink, void *user_data)
 
static GstFlowReturn onPreroll (_GstAppSink *sink, void *user_data)
 
static GstFlowReturn onBuffer (_GstAppSink *sink, void *user_data)
 

Protected Attributes

_GstBus * mBus
 
_GstAppSink * mAppSink
 
_GstElement * mPipeline
 
gstCodec mCodec
 
std::string mLaunchStr
 
std::string mInputPath
 
std::string mMulticastIP
 
uint16_t mPort
 

Detailed Description

Hardware-accelerated H.264/H.265 video decoder for Jetson using GStreamer.

Constructor & Destructor Documentation

◆ ~gstDecoder()

gstDecoder::~gstDecoder ( )

Destructor.

◆ gstDecoder()

gstDecoder::gstDecoder ( )
protected

Member Function Documentation

◆ buildLaunchStr()

bool gstDecoder::buildLaunchStr ( )
protected

◆ checkBuffer()

void gstDecoder::checkBuffer ( )
protected

◆ checkMsgBus()

void gstDecoder::checkMsgBus ( )
protected

◆ Create() [1/3]

gstDecoder* gstDecoder::Create ( gstCodec  codec,
const char *  filename 
)

Create an decoder instance that reads from a video file on disk.

◆ Create() [2/3]

gstDecoder* gstDecoder::Create ( gstCodec  codec,
uint16_t  port 
)

Create an decoder instance that streams over the network.

◆ Create() [3/3]

gstDecoder* gstDecoder::Create ( gstCodec  codec,
const char *  multicastIP,
uint16_t  port 
)

Create an decoder instance that streams over the network using multicast.

◆ init()

bool gstDecoder::init ( gstCodec  codec,
const char *  filename,
const char *  multicastIP,
uint16_t  port 
)
protected

◆ onBuffer()

static GstFlowReturn gstDecoder::onBuffer ( _GstAppSink *  sink,
void *  user_data 
)
staticprotected

◆ onEOS()

static void gstDecoder::onEOS ( _GstAppSink *  sink,
void *  user_data 
)
staticprotected

◆ onPreroll()

static GstFlowReturn gstDecoder::onPreroll ( _GstAppSink *  sink,
void *  user_data 
)
staticprotected

Member Data Documentation

◆ mAppSink

_GstAppSink* gstDecoder::mAppSink
protected

◆ mBus

_GstBus* gstDecoder::mBus
protected

◆ mCodec

gstCodec gstDecoder::mCodec
protected

◆ mInputPath

std::string gstDecoder::mInputPath
protected

◆ mLaunchStr

std::string gstDecoder::mLaunchStr
protected

◆ mMulticastIP

std::string gstDecoder::mMulticastIP
protected

◆ mPipeline

_GstElement* gstDecoder::mPipeline
protected

◆ mPort

uint16_t gstDecoder::mPort
protected

The documentation for this class was generated from the following file: