Public Member Functions | |
ConsumerThread (OutputStream *stream) | |
virtual | ~ConsumerThread () |
ConsumerThread (OutputStream *stream) | |
~ConsumerThread () | |
bool | isInError () |
ConsumerThread (OutputStream *stream) | |
~ConsumerThread () | |
bool | isInError () |
Protected Member Functions | |
virtual bool | processV4L2Fd (int32_t fd, uint64_t frameNumber)=0 |
Thread methods | |
virtual bool | threadInitialize () |
virtual bool | threadExecute () |
virtual bool | threadShutdown () |
Protected Attributes | |
OutputStream * | m_stream |
UniqueObj< FrameConsumer > | m_consumer |
int | m_dmabuf |
Private Member Functions | |
bool | createVideoEncoder () |
void | abort () |
bool | createImageConverter () |
void | abort () |
void | writeFrameToOpencvConsumer (camera_caffe_context *p_ctx, NvBuffer *buffer) |
Thread methods | |
virtual bool | threadInitialize () |
virtual bool | threadExecute () |
virtual bool | threadShutdown () |
Thread methods | |
virtual bool | threadInitialize () |
virtual bool | threadExecute () |
virtual bool | threadShutdown () |
Static Private Member Functions | |
static bool | encoderCapturePlaneDqCallback (struct v4l2_buffer *v4l2_buf, NvBuffer *buffer, NvBuffer *shared_buffer, void *arg) |
static bool | converterCapturePlaneDqCallback (struct v4l2_buffer *v4l2_buf, NvBuffer *buffer, NvBuffer *shared_buffer, void *arg) |
static bool | converterOutputPlaneDqCallback (struct v4l2_buffer *v4l2_buf, NvBuffer *buffer, NvBuffer *shared_buffer, void *arg) |
Private Attributes | |
NvVideoEncoder * | m_VideoEncoder |
std::ofstream * | m_outputFile |
bool | m_gotError |
NvVideoConverter * | m_ImageConverter |
std::queue< NvBuffer * > * | m_ConvOutputPlaneBufQueue |
pthread_mutex_t | m_queueLock |
pthread_cond_t | m_queueCond |
int | conv_buf_num |
int | m_numPendingFrames |
camera_caffe_context * | m_pContext |
Definition at line 74 of file main.cpp.
ArgusSamples::ConsumerThread::ConsumerThread | ( | OutputStream * | stream | ) | [inline, explicit] |
ArgusSamples::ConsumerThread::ConsumerThread | ( | OutputStream * | stream | ) | [explicit] |
ArgusSamples::ConsumerThread::~ConsumerThread | ( | ) |
ArgusSamples::ConsumerThread::ConsumerThread | ( | OutputStream * | stream | ) | [explicit] |
ArgusSamples::ConsumerThread::~ConsumerThread | ( | ) |
void ArgusSamples::ConsumerThread::abort | ( | ) | [private] |
bool ArgusSamples::ConsumerThread::converterCapturePlaneDqCallback | ( | struct v4l2_buffer * | v4l2_buf, | |
NvBuffer * | buffer, | |||
NvBuffer * | shared_buffer, | |||
void * | arg | |||
) | [static, private] |
Definition at line 261 of file camera_caffe_main.cpp.
bool ArgusSamples::ConsumerThread::converterOutputPlaneDqCallback | ( | struct v4l2_buffer * | v4l2_buf, | |
NvBuffer * | buffer, | |||
NvBuffer * | shared_buffer, | |||
void * | arg | |||
) | [static, private] |
Definition at line 292 of file camera_caffe_main.cpp.
bool ArgusSamples::ConsumerThread::createImageConverter | ( | ) | [private] |
Definition at line 323 of file camera_caffe_main.cpp.
bool ArgusSamples::ConsumerThread::createVideoEncoder | ( | ) | [private] |
bool ArgusSamples::ConsumerThread::isInError | ( | ) | [inline] |
Definition at line 70 of file camera_caffe_main.cpp.
virtual bool ArgusSamples::ConsumerThread::processV4L2Fd | ( | int32_t | fd, | |
uint64_t | frameNumber | |||
) | [protected, pure virtual] |
Implemented in ArgusSamples::PreviewConsumerThread, and ArgusSamples::CaptureConsumerThread.
virtual bool ArgusSamples::ConsumerThread::threadExecute | ( | ) | [private, virtual] |
virtual bool ArgusSamples::ConsumerThread::threadExecute | ( | ) | [private, virtual] |
bool ArgusSamples::ConsumerThread::threadExecute | ( | ) | [protected, virtual] |
virtual bool ArgusSamples::ConsumerThread::threadInitialize | ( | ) | [private, virtual] |
Reimplemented in ArgusSamples::PreviewConsumerThread, and ArgusSamples::CaptureConsumerThread.
virtual bool ArgusSamples::ConsumerThread::threadInitialize | ( | ) | [private, virtual] |
Reimplemented in ArgusSamples::PreviewConsumerThread, and ArgusSamples::CaptureConsumerThread.
bool ArgusSamples::ConsumerThread::threadInitialize | ( | ) | [protected, virtual] |
Reimplemented in ArgusSamples::PreviewConsumerThread, and ArgusSamples::CaptureConsumerThread.
virtual bool ArgusSamples::ConsumerThread::threadShutdown | ( | ) | [private, virtual] |
Reimplemented in ArgusSamples::PreviewConsumerThread, and ArgusSamples::CaptureConsumerThread.
virtual bool ArgusSamples::ConsumerThread::threadShutdown | ( | ) | [private, virtual] |
Reimplemented in ArgusSamples::PreviewConsumerThread, and ArgusSamples::CaptureConsumerThread.
bool ArgusSamples::ConsumerThread::threadShutdown | ( | ) | [protected, virtual] |
Reimplemented in ArgusSamples::PreviewConsumerThread, and ArgusSamples::CaptureConsumerThread.
void ArgusSamples::ConsumerThread::writeFrameToOpencvConsumer | ( | camera_caffe_context * | p_ctx, | |
NvBuffer * | buffer | |||
) | [private] |
Definition at line 247 of file camera_caffe_main.cpp.
int ArgusSamples::ConsumerThread::conv_buf_num [private] |
Definition at line 107 of file camera_caffe_main.cpp.
UniqueObj< FrameConsumer > ArgusSamples::ConsumerThread::m_consumer [protected] |
std::queue< NvBuffer * >* ArgusSamples::ConsumerThread::m_ConvOutputPlaneBufQueue [private] |
Definition at line 104 of file camera_caffe_main.cpp.
int ArgusSamples::ConsumerThread::m_dmabuf [protected] |
bool ArgusSamples::ConsumerThread::m_gotError [private] |
Definition at line 103 of file camera_caffe_main.cpp.
int ArgusSamples::ConsumerThread::m_numPendingFrames [private] |
Definition at line 108 of file camera_caffe_main.cpp.
std::ofstream* ArgusSamples::ConsumerThread::m_outputFile [private] |
Definition at line 110 of file camera_caffe_main.cpp.
pthread_cond_t ArgusSamples::ConsumerThread::m_queueCond [private] |
Definition at line 106 of file camera_caffe_main.cpp.
pthread_mutex_t ArgusSamples::ConsumerThread::m_queueLock [private] |
Definition at line 105 of file camera_caffe_main.cpp.
OutputStream * ArgusSamples::ConsumerThread::m_stream [protected] |