TScalerCaps Class Reference

#include <icl/imageconversionextension.h>

class TScalerCaps

Detailed Description

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
aMaxUpscaleLimitMaximum upscaling possible.
aMaxDownscaleLimitMaximum downscaling possible.
aPreserveAspectRatioIsNeededETrue if only support preservation of aspect ratio.

Member Function Documentation

MaxDownscaleLimit ( )

IMPORT_C TIntMaxDownscaleLimit()const

Maximum downscaling possible.

Return Value
value <= -1 : -1 means cannot downscale, -2 means half original size

MaxUpscaleLimit ( )

IMPORT_C TIntMaxUpscaleLimit()const

Maximum upscaling possible.

Return Value
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.

Return Value
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.

Return Value
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