1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 TBool TUncompressedVideoFormat::operator==(const TUncompressedVideoFormat& aOther) const
18 TBool result = EFalse;
19 if (iDataFormat == aOther.iDataFormat)
24 result = (iYuvFormat == aOther.iYuvFormat);
28 result = (iRgbFormat == aOther.iRgbFormat);
31 DevVideoPanic(EDevVideoPanicPreConditionViolation);
38 void TUncompressedVideoFormat::operator=(const TUncompressedVideoFormat& aOther)
40 iDataFormat = aOther.iDataFormat;
44 iYuvFormat = aOther.iYuvFormat;
48 iRgbFormat = aOther.iRgbFormat;
51 DevVideoPanic(EDevVideoPanicPreConditionViolation);
58 TBool TYuvFormat::operator==(const TYuvFormat& aOther) const
60 return (iCoefficients==aOther.iCoefficients
61 && iPattern == aOther.iPattern
62 && iDataLayout == aOther.iDataLayout
63 && iYuv2RgbMatrix == aOther.iYuv2RgbMatrix
64 && iRgb2YuvMatrix == aOther.iYuv2RgbMatrix
65 && iAspectRatioNum == aOther.iAspectRatioNum
66 && iAspectRatioDenom == aOther.iAspectRatioDenom);