vtprotocolplugins/DisplaySink/inc/CVtImageScalerImplBilinear.h
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 
       
    20 
       
    21 
       
    22 #ifndef CVTIMAGESCALERIMPLBILINEAR_H
       
    23 #define CVTIMAGESCALERIMPLBILINEAR_H
       
    24 
       
    25 // INCLUDE FILES
       
    26 
       
    27 #include "CVtImageScalerImpl.h"
       
    28 
       
    29 // CLASS DECLARATIONS
       
    30 
       
    31 /**
       
    32 *  Bilinear image scaler implementation.
       
    33 *
       
    34 *  @lib videosource.lib
       
    35 */
       
    36 class CVtImageScalerImplBilinear : public CVtImageScalerImpl
       
    37     {
       
    38     private: // from CVtImageScalerImpl
       
    39 
       
    40         /**
       
    41         * From CVtImageScalerImpl. Check CVtImageScalerImpl for description.
       
    42         */
       
    43         TInt Scale( TBool& aContinue );
       
    44 
       
    45     private:
       
    46 
       
    47         /**
       
    48         * Validate given parameters.
       
    49         */
       
    50         void ValidateSourceTargetL(
       
    51             const CVtImage& aSource,
       
    52             CVtImage& aTarget );
       
    53 
       
    54         /**
       
    55         * Initializes internal variables for scaling.
       
    56         */
       
    57         void Initialize();
       
    58 
       
    59         /**
       
    60         * Scales images in displaymode EColor4K.
       
    61         */
       
    62         void Scale4K();
       
    63 
       
    64         /**
       
    65         * Scales images in displaymode EColor64K.
       
    66         */
       
    67         void Scale64K();
       
    68 
       
    69         /**
       
    70         * Scales images in displaymode EColor16M.
       
    71         */
       
    72         void Scale16M();
       
    73 
       
    74         /**
       
    75         * Scales images in displaymode EColor16MU.
       
    76         */
       
    77         void Scale16MU();
       
    78 
       
    79         /**
       
    80         * Scales images in displaymode EColor16MA.
       
    81         */
       
    82         void Scale16MA();
       
    83 
       
    84         /**
       
    85         * Fast scaling when target is double the source size for
       
    86         * 4K and 64K display modes.
       
    87         */
       
    88         void Scale2x4K64K( TUint32 aMask );
       
    89 
       
    90         /**
       
    91         * Fast scaling when target is double the source size for
       
    92         * 16M display mode.
       
    93         */
       
    94         void Scale2x16M();
       
    95 
       
    96         /**
       
    97         * Fast scaling when target is double the source size for
       
    98         * 16MU and 16MA display modes.
       
    99         */
       
   100         void Scale2x16MU16MA();
       
   101 
       
   102     private:
       
   103 
       
   104         // Target width ratio to source width
       
   105         TUint32 iU;
       
   106 
       
   107         // Target height ratio to source height
       
   108         TUint32 iV;
       
   109     };
       
   110 
       
   111 #endif // CVTIMAGESCALERIMPLBILINEAR_H
       
   112 
       
   113 // End of File
       
   114 
       
   115