vtprotocolplugins/DisplaySink/src/CVtImage.cpp
changeset 18 d9b6a8729acd
parent 4 6dc066157ed4
child 23 c378a0498b84
child 27 dcbddbbaf8fd
equal deleted inserted replaced
4:6dc066157ed4 18:d9b6a8729acd
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Image Transforms subsystem.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include "cvtimage.h"
       
    22 
       
    23 // ============================ MEMBER FUNCTIONS ===============================
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CVtImage::Type() const
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 EXPORT_C CVtImage::TVtImageType CVtImage::Type() const
       
    30     {
       
    31     return iType;
       
    32     }
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CVtImage::DisplayModeToVtDisplayMode( TDisplayMode aMode )
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 CVtImage::TVtDisplayMode CVtImage::DisplayModeToVtDisplayMode(
       
    39     TDisplayMode aMode )
       
    40     {
       
    41     TVtDisplayMode mode;
       
    42 
       
    43     switch( aMode )
       
    44         {
       
    45         case EColor4K:
       
    46             mode = EVtColor4K;
       
    47             break;
       
    48 
       
    49         case EColor64K:
       
    50             mode = EVtColor64K;
       
    51             break;
       
    52 
       
    53         case EColor16M:
       
    54             mode = EVtColor16M;
       
    55             break;
       
    56 
       
    57         case EColor16MU:
       
    58             mode = EVtColor16MU;
       
    59             break;
       
    60 
       
    61         case EColor16MA:
       
    62         case EColor16MAP:
       
    63             mode = EVtColor16MA;
       
    64             break;
       
    65 
       
    66         default:
       
    67             mode = EVtColorNone;
       
    68             break;
       
    69         }
       
    70 
       
    71     return mode;
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CVtImage::CVtImage( TVtImageType aType )
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 CVtImage::CVtImage( TVtImageType aType )
       
    79 : iType( aType )
       
    80     {
       
    81     }
       
    82 
       
    83 // End of File
       
    84 
       
    85