The video scaler class. More...

#include "murl_util_video_scaler.h"

Inheritance diagram for Murl::Util::VideoScaler:

Public Member Functions

 VideoScaler (const IFilter *filter)
 Constructor creating a scaler using a specified filter. More...
 
 ~VideoScaler () override
 The destructor.
 
Bool Scale (const ConstData &srcData, const MutableData &dstData, UInt32 srcPixelSizeX, UInt32 srcPixelSizeY, UInt32 srcBytePitch, UInt32 dstPixelSizeX, UInt32 dstPixelSizeY, UInt32 dstBytePitch, IEnums::PixelFormat pixelFormat, Real gamma) const override
 Implementation of IVideoScaler::Scale(). More...
 
- Public Member Functions inherited from Murl::IVideoScaler
virtual ~IVideoScaler ()
 The destructor.
 

Protected Member Functions

virtual Bool ScaleFast (const ConstData &srcData, const MutableData &dstData, UInt32 srcPixelSizeX, UInt32 srcPixelSizeY, UInt32 srcBytePitch, UInt32 dstPixelSizeX, UInt32 dstPixelSizeY, UInt32 dstBytePitch, IEnums::PixelFormat pixelFormat, Real gamma) const
 Alternative scale method for overloading. More...
 

Detailed Description

The video scaler class.

Constructor & Destructor Documentation

◆ VideoScaler()

Murl::Util::VideoScaler::VideoScaler ( const IFilter filter)

Constructor creating a scaler using a specified filter.

Parameters
filterThe filter used for scaling.

Member Function Documentation

◆ Scale()

Bool Murl::Util::VideoScaler::Scale ( const ConstData srcData,
const MutableData dstData,
UInt32  srcPixelSizeX,
UInt32  srcPixelSizeY,
UInt32  srcBytePitch,
UInt32  dstPixelSizeX,
UInt32  dstPixelSizeY,
UInt32  dstBytePitch,
IEnums::PixelFormat  pixelFormat,
Real  gamma 
) const
overridevirtual

Implementation of IVideoScaler::Scale().

Parameters
srcDataThe source image data.
dstDataThe destination image data.
srcPixelSizeXThe number of horizontal source pixels.
srcPixelSizeYThe number of vertical source pixels.
srcBytePitchThe number of source bytes per line.
dstPixelSizeXThe number of horizontal destination pixels.
dstPixelSizeYThe number of vertical destination pixels.
dstBytePitchThe number of destination bytes per line.
pixelFormatThe pixel format.
gammaThe gamma value. Specify 1.0 to disable gamma correct scaling.
Returns
true if successful.

Implements Murl::IVideoScaler.

◆ ScaleFast()

virtual Bool Murl::Util::VideoScaler::ScaleFast ( const ConstData srcData,
const MutableData dstData,
UInt32  srcPixelSizeX,
UInt32  srcPixelSizeY,
UInt32  srcBytePitch,
UInt32  dstPixelSizeX,
UInt32  dstPixelSizeY,
UInt32  dstBytePitch,
IEnums::PixelFormat  pixelFormat,
Real  gamma 
) const
protectedvirtual

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
srcDataThe source image data.
dstDataThe destination image data.
srcPixelSizeXThe number of horizontal source pixels.
srcPixelSizeYThe number of vertical source pixels.
srcBytePitchThe number of source bytes per line.
dstPixelSizeXThe number of horizontal destination pixels.
dstPixelSizeYThe number of vertical destination pixels.
dstBytePitchThe number of destination bytes per line.
pixelFormatThe pixel format.
gammaThe 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:
  • murl_util_video_scaler.h


Copyright © 2011-2024 Spraylight GmbH.