1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mmf/devvideo/devvideobase.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,67 @@
1.4 +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// 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
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +TBool TUncompressedVideoFormat::operator==(const TUncompressedVideoFormat& aOther) const
1.20 + {
1.21 + TBool result = EFalse;
1.22 + if (iDataFormat == aOther.iDataFormat)
1.23 + {
1.24 + switch (iDataFormat)
1.25 + {
1.26 + case EYuvRawData:
1.27 + result = (iYuvFormat == aOther.iYuvFormat);
1.28 + break;
1.29 + case ERgbRawData:
1.30 + case ERgbFbsBitmap:
1.31 + result = (iRgbFormat == aOther.iRgbFormat);
1.32 + break;
1.33 + default:
1.34 + DevVideoPanic(EDevVideoPanicPreConditionViolation);
1.35 + break;
1.36 + }
1.37 + }
1.38 + return result;
1.39 + }
1.40 +
1.41 +void TUncompressedVideoFormat::operator=(const TUncompressedVideoFormat& aOther)
1.42 + {
1.43 + iDataFormat = aOther.iDataFormat;
1.44 + switch (iDataFormat)
1.45 + {
1.46 + case EYuvRawData:
1.47 + iYuvFormat = aOther.iYuvFormat;
1.48 + break;
1.49 + case ERgbRawData:
1.50 + case ERgbFbsBitmap:
1.51 + iRgbFormat = aOther.iRgbFormat;
1.52 + break;
1.53 + default:
1.54 + DevVideoPanic(EDevVideoPanicPreConditionViolation);
1.55 + break;
1.56 + }
1.57 +
1.58 + }
1.59 +
1.60 +
1.61 +TBool TYuvFormat::operator==(const TYuvFormat& aOther) const
1.62 + {
1.63 + return (iCoefficients==aOther.iCoefficients
1.64 + && iPattern == aOther.iPattern
1.65 + && iDataLayout == aOther.iDataLayout
1.66 + && iYuv2RgbMatrix == aOther.iYuv2RgbMatrix
1.67 + && iRgb2YuvMatrix == aOther.iYuv2RgbMatrix
1.68 + && iAspectRatioNum == aOther.iAspectRatioNum
1.69 + && iAspectRatioDenom == aOther.iAspectRatioDenom);
1.70 + }