Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
JPEGDecoderNVJPEG.h
1#pragma once
2
3#include "Module.h"
4#include "ImageMetadata.h"
5#include "CudaCommon.h"
6
8{
9public:
10 JPEGDecoderNVJPEGProps(cudastream_sp& _stream)
11 {
13 stream_sp = _stream;
14 stream = _stream->getCudaStream();
15 }
16
17 cudaStream_t stream;
18 cudastream_sp stream_sp;
20};
21
23{
24
25public:
27 virtual ~JPEGDecoderNVJPEG();
28 bool init();
29 bool term();
30
31 void getImageSize(int& width, int& height);
32
33protected:
34 bool process(frame_container& frames);
35 bool processSOS(frame_sp& frame);
36 bool validateInputPins();
37 bool validateOutputPins();
38 bool shouldTriggerSOS();
39 bool processEOS(string& pinId);
40
41private:
42 class Detail;
43 boost::shared_ptr<Detail> mDetail;
44
46 framemetadata_sp mOutputMetadata;
47 std::string mOutputPinId;
48};
ImageType
Definition ImageMetadata.h:11
@ UNSET
Definition ImageMetadata.h:12
Definition JPEGDecoderNVJPEG.h:8
cudaStream_t stream
Definition JPEGDecoderNVJPEG.h:17
ImageMetadata::ImageType imageType
Definition JPEGDecoderNVJPEG.h:19
JPEGDecoderNVJPEGProps(cudastream_sp &_stream)
Definition JPEGDecoderNVJPEG.h:10
cudastream_sp stream_sp
Definition JPEGDecoderNVJPEG.h:18
Definition JPEGDecoderNVJPEG.cpp:13
Definition JPEGDecoderNVJPEG.h:23
bool process(frame_container &frames)
Definition JPEGDecoderNVJPEG.cpp:271
bool term()
Definition JPEGDecoderNVJPEG.cpp:266
bool shouldTriggerSOS()
Definition JPEGDecoderNVJPEG.cpp:299
std::string mOutputPinId
Definition JPEGDecoderNVJPEG.h:47
virtual ~JPEGDecoderNVJPEG()
Definition JPEGDecoderNVJPEG.cpp:204
bool init()
Definition JPEGDecoderNVJPEG.cpp:251
bool processSOS(frame_sp &frame)
Definition JPEGDecoderNVJPEG.cpp:288
bool validateInputPins()
Definition JPEGDecoderNVJPEG.cpp:232
JPEGDecoderNVJPEG(JPEGDecoderNVJPEGProps _props)
Definition JPEGDecoderNVJPEG.cpp:197
void getImageSize(int &width, int &height)
Definition JPEGDecoderNVJPEG.cpp:310
size_t mOutputSize
Definition JPEGDecoderNVJPEG.h:45
boost::shared_ptr< Detail > mDetail
Definition JPEGDecoderNVJPEG.h:43
framemetadata_sp mOutputMetadata
Definition JPEGDecoderNVJPEG.h:46
bool processEOS(string &pinId)
Definition JPEGDecoderNVJPEG.cpp:304
bool validateOutputPins()
Definition JPEGDecoderNVJPEG.cpp:206
Definition Module.h:33
Definition Module.h:151