tvout/tvoutengine/inc/glxactivedecoder.h
changeset 26 c499df2dbb33
child 52 a3a4c0de738e
equal deleted inserted replaced
24:99ad1390cd33 26:c499df2dbb33
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GLXACTIVEDECODER_H_
       
    20 #define GLXACTIVEDECODER_H_
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknapp.h>
       
    24 #include <imageconversion.h>
       
    25 #include "glxhdmisurfaceupdater.h"
       
    26 
       
    27 class CImageDecoder;
       
    28 // CLASS DECLARATION
       
    29 
       
    30 class CGlxHdmiDecoderAO : public CActive
       
    31     {
       
    32 public:
       
    33     /*
       
    34      * NewL()
       
    35      * @Param1 CGlxHdmiSurfaceUpdater
       
    36      */
       
    37     static CGlxHdmiDecoderAO* NewL(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater);
       
    38     
       
    39     /*
       
    40      * Destructor
       
    41      */
       
    42     ~CGlxHdmiDecoderAO();
       
    43     
       
    44     /*
       
    45      * ConvertImageL() 
       
    46      * This calls the asyncronous service request to ICL convert
       
    47      * @param1 - Destination Bitmap
       
    48      * @param2 - Image decoder 
       
    49      */
       
    50     void ConvertImageL(CFbsBitmap& iBitmap,CImageDecoder* aDecoder);
       
    51     
       
    52 protected:
       
    53     // from CActive
       
    54     void RunL();
       
    55     void DoCancel();
       
    56     
       
    57 private:
       
    58     /*
       
    59      * Constructor
       
    60      */
       
    61     CGlxHdmiDecoderAO(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater);
       
    62 
       
    63 private:
       
    64     CGlxHdmiSurfaceUpdater* iHdmiSurfaceUpdater; // not owned
       
    65     CImageDecoder* iDecoder;
       
    66     };
       
    67 
       
    68 #endif /* GLXACTIVEDECODER_H_ */