vtprotocolplugins/DisplaySink/src/CVtImageRotatorImpl.cpp
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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 <e32svr.h>
       
    22 #include <fbs.h>
       
    23 
       
    24 #include "CVtImageRotatorImpl.h"
       
    25 #include "cvtimage.h"
       
    26 
       
    27 // MACROS
       
    28 
       
    29 #ifdef _DEBUG
       
    30 #    define __IF_DEBUG(t) {RDebug::t;}
       
    31 #else
       
    32 #    define __IF_DEBUG(t)
       
    33 #endif
       
    34 
       
    35 // ============================ MEMBER FUNCTIONS ===============================
       
    36 
       
    37 // ========================== CVtImageRotatorImpl ==============================
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // CVtImageRotatorImpl::SetSourceTargetL( 
       
    41 //  const CVtImage& aSource, CVtImage& aTarget )
       
    42 // -----------------------------------------------------------------------------
       
    43 void CVtImageRotatorImpl::SetSourceTargetL( 
       
    44     const CVtImage& aSource, 
       
    45     CVtImage& aTarget )
       
    46     {
       
    47     iSource = iTarget = 0;
       
    48     ValidateSourceTargetL( aSource, aTarget );
       
    49     iSource = &aSource;
       
    50     iTarget = &aTarget;
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CVtImageRotatorImpl::NeedHeapLock() const
       
    55 // -----------------------------------------------------------------------------
       
    56 TBool CVtImageRotatorImpl::NeedHeapLock() const
       
    57     {
       
    58     return iSource->NeedHeapLock() || iTarget->NeedHeapLock();
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // CVtImageRotatorImpl::SetAngle( 
       
    63 //  const CVtImageRotator::TRotationAngle& aAngle )
       
    64 // -----------------------------------------------------------------------------
       
    65 void CVtImageRotatorImpl::SetAngle( const CVtImageRotator::TRotationAngle& aAngle )
       
    66     {
       
    67     iAngle = aAngle;
       
    68     }
       
    69 
       
    70 // -----------------------------------------------------------------------------
       
    71 // CVtImageRotatorImpl::CVtImageRotatorImpl( 
       
    72 //  const CVtImageRotator::TRotationAngle& aAngle )
       
    73 // -----------------------------------------------------------------------------
       
    74 CVtImageRotatorImpl::CVtImageRotatorImpl( const CVtImageRotator::TRotationAngle& aAngle )
       
    75 : iAngle( aAngle )
       
    76     {
       
    77     }
       
    78 
       
    79 // End of File  
       
    80 
       
    81