Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
ImageResizeCV.h
1#pragma once
2#include "FrameMetadata.h"
3#include "Module.h"
4
6{
7public:
8 ImageResizeCVProps(int _width, int _height)
9 {
10 width = _width;
11 height = _height;
12 }
13 int width;
14 int height;
15};
16
17class ImageResizeCV : public Module
18{
19
20public:
22 virtual ~ImageResizeCV();
23 bool init();
24 bool term();
25protected:
26 bool process(frame_container& frames);
27 bool processSOS(frame_sp& frame);
28 bool validateInputPins();
29 bool validateOutputPins();
30 void addInputPin(framemetadata_sp& metadata, string& pinId);
31 std::string addOutputPin(framemetadata_sp& metadata);
32
33private:
34 void setMetadata(framemetadata_sp& metadata);
37 class Detail;
38 boost::shared_ptr<Detail> mDetail;
40};
Definition ImageResizeCV.h:6
int width
Definition ImageResizeCV.h:13
ImageResizeCVProps(int _width, int _height)
Definition ImageResizeCV.h:8
int height
Definition ImageResizeCV.h:14
Definition ImageResizeCV.cpp:13
Definition ImageResizeCV.h:18
void setMetadata(framemetadata_sp &metadata)
ImageResizeCVProps mProps
Definition ImageResizeCV.h:36
virtual ~ImageResizeCV()
Definition ImageResizeCV.cpp:44
bool validateOutputPins()
Definition ImageResizeCV.cpp:77
int mFrameType
Definition ImageResizeCV.h:35
size_t mMaxStreamLength
Definition ImageResizeCV.h:39
ImageResizeCV(ImageResizeCVProps _props)
Definition ImageResizeCV.cpp:39
boost::shared_ptr< Detail > mDetail
Definition ImageResizeCV.h:38
std::string addOutputPin(framemetadata_sp &metadata)
Definition ImageResizeCV.cpp:106
bool validateInputPins()
Definition ImageResizeCV.cpp:46
bool process(frame_container &frames)
Definition ImageResizeCV.cpp:121
void addInputPin(framemetadata_sp &metadata, string &pinId)
Definition ImageResizeCV.cpp:96
bool term()
Definition ImageResizeCV.cpp:116
bool init()
Definition ImageResizeCV.cpp:111
bool processSOS(frame_sp &frame)
Definition ImageResizeCV.cpp:140
Definition Module.h:33
Definition Module.h:151