TVideoAspectRatio Class Reference

#include <mmf/common/mmfvideo.h>

class TVideoAspectRatio

Detailed Description

Represents the video aspect ratio as a fraction: iNumerator/iDenominator.

Member Attribute Documentation

iDenominator

TInt iDenominator

Aspect ratio denominator.

iNumerator

TInt iNumerator

Aspect ratio numerator.

Constructor & Destructor Documentation

TVideoAspectRatio ( )

TVideoAspectRatio()[inline]

Constructs a default aspect ratio object. The default aspect ratio is

1:1 (square).

TVideoAspectRatio ( TInt, TInt )

TVideoAspectRatio(TIntaNumerator,
TIntaDenominator
)[inline]

Constructs an aspect ratio object from a numerator and a denominator.

Aspect ratio numerator.

Aspect ratio denominator.

Member Function Documentation

operator!= ( const TVideoAspectRatio & )

TBool operator!=(const TVideoAspectRatio &aAspectRatio)const [inline]

Compares two aspect ratio object for equality. The objects are

considered inequal if either the numerators or the denominators differ.

Note that the implementation will not attempt to reduce the fractions

before comparison.

operator== ( const TVideoAspectRatio & )

TBool operator==(const TVideoAspectRatio &aAspectRatio)const [inline]

Compares two aspect ratio object for equality. The objects are

considered equal if the numerator and denominator match.

Note that the implementation will not attempt to reduce the fractions

before comparison.