photosgallery/viewframework/tvout/inc/glxhdmisurfaceupdater.h
branchRCL_3
changeset 11 71da52165949
parent 9 6b87b143d312
child 12 ce1c7ad1f18b
equal deleted inserted replaced
9:6b87b143d312 11:71da52165949
    50     ~CGlxHdmiSurfaceUpdater();
    50     ~CGlxHdmiSurfaceUpdater();
    51 public:
    51 public:
    52     /*
    52     /*
    53      * This is to cancel the active object from decoding 
    53      * This is to cancel the active object from decoding 
    54      */
    54      */
    55     void HandleRunL();
    55     void HandleRunL(TRequestStatus& aStatus);
    56 
    56 
    57     /*
    57     /*
    58      * This updates the new image.
    58      * This updates the new image.
    59      */
    59      */
    60     void UpdateNewImageL(const TDesC& aImageFile, 
    60     void UpdateNewImageL(const TDesC& aImageFile, 
    61             TInt aFrameCount);
    61             TInt aFrameCount,TSize aImageDimensions);
    62     
    62     
    63     /*
    63     /*
    64      * Activate Zoom 
    64      * Activate Zoom 
    65      */
    65      */
    66     void ActivateZoom();
    66     void ActivateZoom();
    95      */
    95      */
    96     void ConstructL(TSize aImageDimensions);   
    96     void ConstructL(TSize aImageDimensions);   
    97     
    97     
    98     /*
    98     /*
    99      * Create a New surface with given size
    99      * Create a New surface with given size
   100      * @param1 size 
       
   101      */
   100      */
   102     void CreateSurfaceL(TSize aSize);
   101     void CreateSurfaceL();
   103     /*
   102     /*
   104     * Create surface manager with given size
       
   105     * @param1 size 
   103     * @param1 size 
   106     */
   104     */
   107    void MapSurfaceL();
   105    void MapSurfaceL();
   108 
   106 
   109     static TInt SurfBuffer0Ready(TAny* aObject);    
   107     static TInt SurfBuffer0Ready(TAny* aObject);    
   139      * by default it is not required
   137      * by default it is not required
   140      */
   138      */
   141     void CreateHdmiL(TBool aCreateSurface = ETrue);
   139     void CreateHdmiL(TBool aCreateSurface = ETrue);
   142 
   140 
   143     static TInt TimeOut(TAny* aSelf);
   141     static TInt TimeOut(TAny* aSelf);
       
   142 	
       
   143 	/*
       
   144 	* ModifySurface positions of the surface to be displayed on screen
       
   145 	*/
       
   146 	void ModifySurfacePostion();
   144 private:
   147 private:
   145     RWindow* iWindow;
   148     RWindow* iWindow;
   146     const TDesC& iImagePath;
   149     const TDesC& iImagePath;
   147     TSize iOrigImageDimensions;
   150     TSize iOrigImageDimensions;
   148     TInt iFrameCount;
   151     TInt iFrameCount;
   166     CGlxHdmiDecoderAO*  iGlxDecoderAO;              // Internal Image decoder AO              
   169     CGlxHdmiDecoderAO*  iGlxDecoderAO;              // Internal Image decoder AO              
   167     CImageDecoder*      iImageDecoder;              // Image Decoder
   170     CImageDecoder*      iImageDecoder;              // Image Decoder
   168     TInt                iAnimCount;                 // animation count
   171     TInt                iAnimCount;                 // animation count
   169     RFs                 iFsSession;                 // RFs
   172     RFs                 iFsSession;                 // RFs
   170     
   173     
   171     TBool iFirstTime;
       
   172     TPoint iLeftCornerForZoom;
   174     TPoint iLeftCornerForZoom;
   173     CPeriodic* iTimer;
   175     CPeriodic* iTimer;
   174     TBool iZoom;
   176     TBool iZoom;
   175 	TBool iBitmapReady;
   177 	TBool iBitmapReady;
   176 #ifdef _DEBUG
   178 #ifdef _DEBUG