#include <vetFilter.h>
Inheritance diagram for vetFilter:

Public Types | |
| enum | |
| Ignore this, it's a class-type definition, mostly used by VETLib WorkShop, sintax is a bit more complex than usual because of a VC6 BUG, it's the same as: const int vetClassType = VETCLASS_TYPE_FILTER;. | |
Public Member Functions | |
| vetFilter (float fps=0) | |
| Default constructor is protected because this is an abstract class and instance cannot be created directly. | |
| ~vetFilter () | |
| Destructor currenly clear only filters description strings. | |
| virtual VETRESULT | setFilterParameters (vetFilterParameters *initParams)=0 |
| Initialize Filter with any parameters needed, vetFilterParameters should be inherited and implemented for each filter, this is useful for vetProcess and multithreading, after initialization run() call will execute Filter specific processes described in parameters. | |
| virtual VETRESULT | reset ()=0 |
| Inherited class must implement this function, should reset all filters' parameters, something like constructor initialization. | |
| vetFrameYUV420 * | dump_buffer_YUV () |
| Get YUV frame buffer's pointer. | |
| vetFrameRGB24 * | dump_buffer_RGB () |
| Get RGB frame buffer's pointer. | |
| vetFrameT< unsigned char > * | dump_buffer_TuC () |
| Get "Template" frame buffer's pointer. | |
| void | useBufferYUV (unsigned int width, unsigned int height) |
| Update and set current buffer (vetFrameYUV420) to new size. | |
| void | useBufferRGB (unsigned int width, unsigned int height) |
| Update and set current buffer (vetFrameRGB24) to new size. | |
| void | useBufferTuC (unsigned int width, unsigned int height, vetFrame::VETFRAME_PROFILE profile) |
| Update and set current buffer (vetFrameT<uchar>) to new size. | |
| bool | isBufferYUV () |
| Evaluate is current buffer is a vetFrameYUV420. | |
| bool | isBufferRGB () |
| Evaluate is current buffer is a vetFrameRGB24. | |
| bool | isBufferTuC () |
| Evaluate is current buffer is a vetFrameT<uchar>. | |
| VETRESULT | setHeight (unsigned int value) |
| Set current canvas' height. | |
| VETRESULT | setWidth (unsigned int value) |
| Set current canvas' width. | |
| unsigned int | getWidth () const |
| Read current canvas's width. | |
| unsigned int | getHeight () const |
| Read current canvas's height. | |
| bool | EoF () |
| Evaluate if there is any data to extract, current implementation just check the state of current buffer. | |
| VETRESULT | extractTo (vetFrameYUV420 &img) |
| This class offers a base implementatio of extraction methods, it just copies current buffer to output image, no automatic conversion is applied, formats must be the same. | |
| VETRESULT | extractTo (vetFrameRGB24 &img) |
| This class offers a base implementatio of extraction methods, it just copies current buffer to output image, no automatic conversion is applied, formats must be the same. | |
| VETRESULT | extractTo (vetFrameT< unsigned char > &img) |
| This class offers a base implementatio of extraction methods, it just copies current buffer to output image, no automatic conversion is applied, formats must be the same. | |
| virtual VETRESULT | importFrom (vetFrameYUV420 &img)=0 |
| Inherited class must implement this function, processing frames to specific output (device or stream). | |
| virtual VETRESULT | importFrom (vetFrameRGB24 &img)=0 |
| Inherited class must implement this function, processing frames to specific output (device or stream). | |
| virtual VETRESULT | importFrom (vetFrameT< unsigned char > &img)=0 |
| Inherited class must implement this function, processing frames to specific output (device or stream). | |
Protected Member Functions | |
| void | allocateBuffer (vetFilterParameters::BUFFER_TYPE bType) |
| Allocate the buffer selected BUFFER_TYPE enumeration. | |
| void | releaseBuffers () |
| Close and free all buffers, then they are set to NULL. | |
Protected Attributes | |
| vetFrameYUV420 * | bufferYUV |
| Our YUV buffer. | |
| vetFrameRGB24 * | bufferRGB |
| Our RGB buffer. | |
| vetFrameT< unsigned char > * | bufferTuC |
| Our "Template" buffer. | |
Definition at line 154 of file vetFilter.h.
|
|
Default constructor is protected because this is an abstract class and instance cannot be created directly.
Definition at line 27 of file vetFilter.cpp. References bufferRGB, bufferTuC, bufferYUV, vetObject::setDescription(), vetObject::setName(), and vetObject::setVersion(). |
|
|
Allocate the buffer selected BUFFER_TYPE enumeration.
Definition at line 66 of file vetFilter.cpp. References releaseBuffers(), useBufferRGB(), useBufferTuC(), and useBufferYUV(). Referenced by vetFilterNoiseChannel::reset(), vetFilterGeometric::reset(), vetFilterColor::reset(), vetDigitalFilter::reset(), vetFilterNoiseChannel::setParameters(), vetFilterGeometric::setParameters(), vetFilterColor::setParameters(), and vetDigitalFilter::setParameters(). |
|
|
Get RGB frame buffer's pointer.
Definition at line 253 of file vetFilter.h. References bufferRGB. |
|
|
Get "Template" frame buffer's pointer.
Definition at line 262 of file vetFilter.h. References bufferTuC. |
|
|
Get YUV frame buffer's pointer.
Definition at line 244 of file vetFilter.h. References bufferYUV. |
|
|
Evaluate if there is any data to extract, current implementation just check the state of current buffer.
Implements vetInput. Definition at line 290 of file vetFilter.cpp. |
|
|
This class offers a base implementatio of extraction methods, it just copies current buffer to output image, no automatic conversion is applied, formats must be the same.
Implements vetInput. Reimplemented in vetMultiplexer. Definition at line 326 of file vetFilter.cpp. References bufferTuC, INFO, isBufferTuC(), VETRET_ILLEGAL_USE, and VETRET_OK. |
|
|
This class offers a base implementatio of extraction methods, it just copies current buffer to output image, no automatic conversion is applied, formats must be the same.
Implements vetInput. Reimplemented in vetMultiplexer. Definition at line 314 of file vetFilter.cpp. References bufferRGB, INFO, isBufferRGB(), VETRET_ILLEGAL_USE, and VETRET_OK. |
|
|
This class offers a base implementatio of extraction methods, it just copies current buffer to output image, no automatic conversion is applied, formats must be the same.
Implements vetInput. Reimplemented in vetMultiplexer. Definition at line 302 of file vetFilter.cpp. References bufferYUV, INFO, isBufferYUV(), VETRET_ILLEGAL_USE, and VETRET_OK. |
|
|
Read current canvas's height.
Implements vetInput. Definition at line 269 of file vetFilter.cpp. References bufferRGB, bufferTuC, bufferYUV, vetFrameT< T >::height, and vetFrame::height. |
|
|
Read current canvas's width.
Implements vetInput. Definition at line 250 of file vetFilter.cpp. References bufferRGB, bufferTuC, bufferYUV, vetFrameT< T >::width, and vetFrame::width. |
|
|
Inherited class must implement this function, processing frames to specific output (device or stream).
Implements vetOutput. Implemented in vetDigitalFilter, vetFilterColor, vetFilterGeometric, vetFilterNoiseChannel, and vetMultiplexer. |
|
|
Inherited class must implement this function, processing frames to specific output (device or stream).
Implements vetOutput. Implemented in vetDigitalFilter, vetFilterColor, vetFilterGeometric, vetFilterNoiseChannel, and vetMultiplexer. |
|
|
Inherited class must implement this function, processing frames to specific output (device or stream).
Implements vetOutput. Implemented in vetDigitalFilter, vetFilterColor, vetFilterGeometric, vetFilterNoiseChannel, and vetMultiplexer. |
|
|
Evaluate is current buffer is a vetFrameRGB24.
Definition at line 297 of file vetFilter.h. References bufferRGB. Referenced by vetFilterNoiseChannel::AddNoise(), extractTo(), vetFilterGeometric::importFrom(), vetFilterColor::importFrom(), vetDigitalFilter::importFrom(), vetFilterNoiseChannel::MultiplyNoise(), and vetMultiplexer::run(). |
|
|
Evaluate is current buffer is a vetFrameT<uchar>.
Definition at line 304 of file vetFilter.h. References bufferTuC. Referenced by vetFilterNoiseChannel::AddNoise(), extractTo(), vetFilterGeometric::importFrom(), vetFilterColor::importFrom(), and vetFilterNoiseChannel::MultiplyNoise(). |
|
|
Evaluate is current buffer is a vetFrameYUV420.
Definition at line 290 of file vetFilter.h. References bufferYUV. Referenced by vetFilterNoiseChannel::AddNoise(), extractTo(), vetFilterGeometric::importFrom(), vetFilterColor::importFrom(), vetDigitalFilter::importFrom(), vetFilterNoiseChannel::MultiplyNoise(), and vetMultiplexer::run(). |
|
|
Inherited class must implement this function, should reset all filters' parameters, something like constructor initialization.
Implements vetInput. Implemented in vetDigitalFilter, vetFilterColor, vetFilterGeometric, vetFilterNoiseChannel, and vetMultiplexer. |
|
|
Initialize Filter with any parameters needed, vetFilterParameters should be inherited and implemented for each filter, this is useful for vetProcess and multithreading, after initialization run() call will execute Filter specific processes described in parameters.
Implemented in vetDigitalFilter, vetFilterColor, vetFilterGeometric, and vetMultiplexer. |
|
|
Set current canvas' height.
Implements vetOutput. Definition at line 198 of file vetFilter.cpp. References bufferRGB, bufferTuC, bufferYUV, vetFrameT< T >::reAllocCanvas(), vetFrameRGB24::reAllocCanvas(), vetFrameYUV420::reAllocCanvas(), VETRET_NOT_IMPLEMENTED, VETRET_OK, vetFrameT< T >::width, and vetFrame::width. |
|
|
Set current canvas' width.
Implements vetOutput. Definition at line 224 of file vetFilter.cpp. References bufferRGB, bufferTuC, bufferYUV, vetFrameT< T >::height, vetFrame::height, vetFrameT< T >::reAllocCanvas(), vetFrameRGB24::reAllocCanvas(), vetFrameYUV420::reAllocCanvas(), VETRET_NOT_IMPLEMENTED, and VETRET_OK. |
|
||||||||||||
|
Update and set current buffer (vetFrameRGB24) to new size.
Definition at line 143 of file vetFilter.cpp. References bufferRGB, bufferTuC, bufferYUV, vetFilterParameters::currentBuffer, vetFrame::height, vetFrameRGB24::reAllocCanvas(), and vetFrame::width. Referenced by vetFilterNoiseChannel::AddNoise(), allocateBuffer(), vetFilterColor::clamp(), vetFilterColor::extractBitPlane(), vetFilterGeometric::flipHorizontal(), vetFilterGeometric::flipVertical(), vetFilterGeometric::importFrom(), vetFilterColor::importFrom(), vetDigitalFilter::importFrom(), vetFilterColor::invert(), vetFilterNoiseChannel::MultiplyNoise(), vetFilterGeometric::resize(), vetFilterGeometric::resizeCanvas(), vetFilterGeometric::rotate(), vetFilterGeometric::rotate180(), vetFilterGeometric::rotate270(), and vetFilterGeometric::rotate90(). |
|
||||||||||||||||
|
Update and set current buffer (vetFrameT<uchar>) to new size.
Definition at line 170 of file vetFilter.cpp. References bufferRGB, bufferTuC, bufferYUV, vetFilterParameters::currentBuffer, vetFrameT< T >::height, vetFrameT< T >::reAllocCanvas(), and vetFrameT< T >::width. Referenced by vetFilterNoiseChannel::AddNoise(), allocateBuffer(), vetFilterGeometric::flipHorizontal(), vetFilterGeometric::flipVertical(), vetFilterGeometric::importFrom(), vetFilterColor::importFrom(), vetFilterNoiseChannel::MultiplyNoise(), vetFilterGeometric::resize(), vetFilterGeometric::resizeCanvas(), vetFilterGeometric::rotate(), vetFilterGeometric::rotate180(), vetFilterGeometric::rotate270(), and vetFilterGeometric::rotate90(). |
|
||||||||||||
|
Update and set current buffer (vetFrameYUV420) to new size.
Definition at line 116 of file vetFilter.cpp. References bufferRGB, bufferTuC, bufferYUV, vetFilterParameters::currentBuffer, vetFrame::height, vetFrameYUV420::reAllocCanvas(), and vetFrame::width. Referenced by vetFilterNoiseChannel::AddNoise(), allocateBuffer(), vetFilterGeometric::flipHorizontal(), vetFilterGeometric::flipVertical(), vetFilterGeometric::importFrom(), vetFilterColor::importFrom(), vetDigitalFilter::importFrom(), vetFilterNoiseChannel::MultiplyNoise(), vetFilterGeometric::resize(), vetFilterGeometric::resizeCanvas(), vetFilterGeometric::rotate(), vetFilterGeometric::rotate180(), vetFilterGeometric::rotate270(), and vetFilterGeometric::rotate90(). |
1.4.4