A format converter for video frames. More...
#include <cvb/codec_bridge/format_converter.hpp>
Public Member Functions | |
void | Execute (const Frame &srcFrame, const Frame &dstFrame) |
Convert an from one frame to another. More... | |
Static Public Member Functions | |
static std::unique_ptr< FormatConverter > | Create (Size2D< int > srcSize, PixelFormat srcFormat, Size2D< int > dstSize, PixelFormat dstFormat, Interpolation method) |
Creates a format converter. More... | |
A format converter for video frames.
|
inlinestatic |
Creates a format converter.
[in] | srcSize | The size of the source frame. |
[in] | srcFormat | The pixel format of the source frame. |
[in] | dstSize | The size of the destination frame. |
[in] | dstFormat | The pixel format of the destination frame. |
[in] | method | The method to interpolate if scaling is done. |
Any | exception derived from std::exception including CvbException. |
Convert an from one frame to another.
[in] | srcFrame | The source frame. |
[in] | dstFrame | The destination frame. |
Any | exception derived from std::exception including CvbException. |
The frames properties must match those used when the converter was created.