epoc32/include/mmf/devvideo/devvideobase.inl
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 TBool TUncompressedVideoFormat::operator==(const TUncompressedVideoFormat& aOther) const
    17 	{
    18 	TBool result = EFalse;
    19 	if (iDataFormat == aOther.iDataFormat)
    20 		{
    21 		switch (iDataFormat)
    22 			{
    23 		case EYuvRawData:
    24 			result = (iYuvFormat == aOther.iYuvFormat);
    25 			break;
    26 		case ERgbRawData:
    27 		case ERgbFbsBitmap:
    28 			result = (iRgbFormat == aOther.iRgbFormat);
    29 			break;
    30 		default:
    31 			DevVideoPanic(EDevVideoPanicPreConditionViolation);
    32 			break;
    33 			}
    34 		}
    35 	return result;
    36 	}
    37 
    38 void TUncompressedVideoFormat::operator=(const TUncompressedVideoFormat& aOther)
    39 	{
    40 	iDataFormat = aOther.iDataFormat;
    41 	switch (iDataFormat)
    42 		{
    43 	case EYuvRawData:
    44 		iYuvFormat = aOther.iYuvFormat;
    45 		break;
    46 	case ERgbRawData:
    47 	case ERgbFbsBitmap:
    48 		iRgbFormat = aOther.iRgbFormat;
    49 		break;
    50 	default:
    51 		DevVideoPanic(EDevVideoPanicPreConditionViolation);
    52 		break;
    53 		}
    54 	
    55 	}
    56 
    57 
    58 TBool TYuvFormat::operator==(const TYuvFormat& aOther) const
    59 	{
    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);
    67 	}