#include <icl/imageconversionextension.h>
| class TScalerCaps |
| Public Member Functions | |
|---|---|
| TScalerCaps() | |
| TScalerCaps(TInt, TInt, TBool) | |
| IMPORT_C TInt | MaxDownscaleLimit() |
| IMPORT_C TInt | MaxUpscaleLimit() |
| IMPORT_C TBool | MustPreserveAspectRatio() |
| IMPORT_C TBool | PowerOfTwoScalingOnly() |
| IMPORT_C TUint | Size() |
| IMPORT_C TUint | Version() |
Represents scaling capabilities of the code plugin.
| IMPORT_C | TScalerCaps | ( | TInt | aMaxUpscaleLimit, |
| TInt | aMaxDownscaleLimit, | |||
| TBool | aPreserveAspectRatioIsNeeded | |||
| ) | ||||
Constructor
| Parameter | Description |
|---|---|
| aMaxUpscaleLimit | Maximum upscaling possible. |
| aMaxDownscaleLimit | Maximum downscaling possible. |
| aPreserveAspectRatioIsNeeded | ETrue if only support preservation of aspect ratio. |
| IMPORT_C TInt | MaxDownscaleLimit | ( | ) | const |
Maximum downscaling possible.
Returns: value <= -1 : -1 means cannot downscale, -2 means half original size
| IMPORT_C TInt | MaxUpscaleLimit | ( | ) | const |
Maximum upscaling possible.
Returns: value >= 1 : 1 means cannot upscale, 2 means twice original size
| IMPORT_C TBool | MustPreserveAspectRatio | ( | ) | const |
Returns ETrue if the codec must preserve aspect ratio during scaling.
Returns: ETrue if scaling is only possible if preservation of aspect ratio is requested. EFalse if scaling without preserving aspect ratio is possible.
| IMPORT_C TBool | PowerOfTwoScalingOnly | ( | ) | const |
Type of scaling which is supported.
Returns: ETrue if can only do 1/2, 1/4, 1/8 etc downscale (limit depends on iMaxDownscaleLimit) 2, 4, 8 etc upscale (limit depends on iMaxUpscaleLimit) EFalse if can do arbitrary scaling between iMaxDownscaleLimit and iMaxUpscaleLimit