sl@0: // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: // All rights reserved.
sl@0: // This component and the accompanying materials are made available
sl@0: // under the terms of "Eclipse Public License v1.0"
sl@0: // which accompanies this distribution, and is available
sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: //
sl@0: // Initial Contributors:
sl@0: // Nokia Corporation - initial contribution.
sl@0: //
sl@0: // Contributors:
sl@0: //
sl@0: // Description:
sl@0: //
sl@0: 
sl@0: TBool TUncompressedVideoFormat::operator==(const TUncompressedVideoFormat& aOther) const
sl@0: 	{
sl@0: 	TBool result = EFalse;
sl@0: 	if (iDataFormat == aOther.iDataFormat)
sl@0: 		{
sl@0: 		switch (iDataFormat)
sl@0: 			{
sl@0: 		case EYuvRawData:
sl@0: 			result = (iYuvFormat == aOther.iYuvFormat);
sl@0: 			break;
sl@0: 		case ERgbRawData:
sl@0: 		case ERgbFbsBitmap:
sl@0: 			result = (iRgbFormat == aOther.iRgbFormat);
sl@0: 			break;
sl@0: 		default:
sl@0: 			DevVideoPanic(EDevVideoPanicPreConditionViolation);
sl@0: 			break;
sl@0: 			}
sl@0: 		}
sl@0: 	return result;
sl@0: 	}
sl@0: 
sl@0: void TUncompressedVideoFormat::operator=(const TUncompressedVideoFormat& aOther)
sl@0: 	{
sl@0: 	iDataFormat = aOther.iDataFormat;
sl@0: 	switch (iDataFormat)
sl@0: 		{
sl@0: 	case EYuvRawData:
sl@0: 		iYuvFormat = aOther.iYuvFormat;
sl@0: 		break;
sl@0: 	case ERgbRawData:
sl@0: 	case ERgbFbsBitmap:
sl@0: 		iRgbFormat = aOther.iRgbFormat;
sl@0: 		break;
sl@0: 	default:
sl@0: 		DevVideoPanic(EDevVideoPanicPreConditionViolation);
sl@0: 		break;
sl@0: 		}
sl@0: 	
sl@0: 	}
sl@0: 
sl@0: 
sl@0: TBool TYuvFormat::operator==(const TYuvFormat& aOther) const
sl@0: 	{
sl@0: 	return (iCoefficients==aOther.iCoefficients
sl@0: 		 && iPattern == aOther.iPattern
sl@0: 		 && iDataLayout == aOther.iDataLayout
sl@0: 		 && iYuv2RgbMatrix == aOther.iYuv2RgbMatrix
sl@0: 		 && iRgb2YuvMatrix == aOther.iYuv2RgbMatrix
sl@0: 		 && iAspectRatioNum == aOther.iAspectRatioNum
sl@0: 		 && iAspectRatioDenom == aOther.iAspectRatioDenom);
sl@0: 	}
sl@0: