class TScalerCaps |
Represents scaling capabilities of the code plugin.
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() |
Private Attributes | |
---|---|
TInt | iMaxDownscaleLimit |
TInt | iMaxUpscaleLimit |
TBool | iMustPreserveAspectRatio |
TBool | iPowerOfTwoScalingOnly |
TInt | iReserved |
TUint | iSizeVersion |
IMPORT_C | TScalerCaps | ( | TInt | aMaxUpscaleLimit, |
TInt | aMaxDownscaleLimit, | |||
TBool | aPreserveAspectRatioIsNeeded | |||
) |
Constructor
IMPORT_C TInt | MaxDownscaleLimit | ( | ) | const |
Maximum downscaling possible. value <= -1 : -1 means cannot downscale, -2 means half original size
IMPORT_C TInt | MaxUpscaleLimit | ( | ) | const |
Maximum upscaling possible. 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.
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.
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