TScalerCaps Class Reference

class TScalerCaps

Represents scaling capabilities of the code plugin.

Constructor & Destructor Documentation

TScalerCaps()

IMPORT_CTScalerCaps()

Constructor

TScalerCaps(TInt, TInt, TBool)

IMPORT_CTScalerCaps(TIntaMaxUpscaleLimit,
TIntaMaxDownscaleLimit,
TBoolaPreserveAspectRatioIsNeeded
)

Constructor

Parameters

TInt aMaxUpscaleLimitMaximum upscaling possible.
TInt aMaxDownscaleLimitMaximum downscaling possible.
TBool aPreserveAspectRatioIsNeededETrue if only support preservation of aspect ratio.

Member Functions Documentation

MaxDownscaleLimit()

IMPORT_C TIntMaxDownscaleLimit()const

Maximum downscaling possible. value <= -1 : -1 means cannot downscale, -2 means half original size

MaxUpscaleLimit()

IMPORT_C TIntMaxUpscaleLimit()const

Maximum upscaling possible. value >= 1 : 1 means cannot upscale, 2 means twice original size

MustPreserveAspectRatio()

IMPORT_C TBoolMustPreserveAspectRatio()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.

PowerOfTwoScalingOnly()

IMPORT_C TBoolPowerOfTwoScalingOnly()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

Size()

IMPORT_C TUintSize()const

Compatibility - internal use only

Version()

IMPORT_C TUintVersion()const

Compatibility - internal use only

Member Data Documentation

TInt iMaxDownscaleLimit

TInt iMaxDownscaleLimit[private]

TInt iMaxUpscaleLimit

TInt iMaxUpscaleLimit[private]

TBool iMustPreserveAspectRatio

TBool iMustPreserveAspectRatio[private]

TBool iPowerOfTwoScalingOnly

TBool iPowerOfTwoScalingOnly[private]

TInt iReserved

TInt iReserved[private]

TUint iSizeVersion

TUint iSizeVersion[private]