epoc32/include/mmf/devvideo/devvideobase.inl
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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 "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.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 	}
    68