The video scaler class.
More...
#include <murl_util_video_scaler.h>
◆ VideoScaler()
| Murl::Util::VideoScaler::VideoScaler |
( |
const IFilter * |
filter | ) |
|
Constructor creating a scaler using a specified filter.
- Parameters
-
| filter | The filter used for scaling. |
◆ Scale()
Implementation of IVideoScaler::Scale().
- Parameters
-
| srcData | The source image data. |
| dstData | The destination image data. |
| srcPixelSizeX | The number of horizontal source pixels. |
| srcPixelSizeY | The number of vertical source pixels. |
| srcBytePitch | The number of source bytes per line. |
| dstPixelSizeX | The number of horizontal destination pixels. |
| dstPixelSizeY | The number of vertical destination pixels. |
| dstBytePitch | The number of destination bytes per line. |
| pixelFormat | The pixel format. |
| gamma | The gamma value. Specify 1.0 to disable gamma correct scaling. |
- Returns
- true if successful.
Implements Murl::IVideoScaler.
◆ ScaleFast()
Alternative scale method for overloading.
A derived class can implement alternative scaling algorithms by overloading this method and returning true if alternative scaling has been performed.
- Parameters
-
| srcData | The source image data. |
| dstData | The destination image data. |
| srcPixelSizeX | The number of horizontal source pixels. |
| srcPixelSizeY | The number of vertical source pixels. |
| srcBytePitch | The number of source bytes per line. |
| dstPixelSizeX | The number of horizontal destination pixels. |
| dstPixelSizeY | The number of vertical destination pixels. |
| dstBytePitch | The number of destination bytes per line. |
| pixelFormat | The pixel format. |
| gamma | The gamma value. Specify 1.0 to disable gamma correct scaling. |
- Returns
- false if fast scaling is not supported.
Reimplemented in Murl::Util::BoxVideoScaler.
The documentation for this class was generated from the following file: