javauis/mmapi_qt/baseline/inc.nga/cmmasurfacewindow.h
changeset 26 dc7c549001d5
parent 23 98ccebc37403
child 56 abc41079b313
equal deleted inserted replaced
23:98ccebc37403 26:dc7c549001d5
    56     /**
    56     /**
    57      * indicates what method needs to be called in UI thread context.
    57      * indicates what method needs to be called in UI thread context.
    58      */
    58      */
    59     enum TUiCallbackType
    59     enum TUiCallbackType
    60     {
    60     {
    61         ERemoveSurface = 1,
    61         ESetClipRect = 1,
       
    62         ERemoveSurface,
    62         ESetDrawRect,
    63         ESetDrawRect,
    63         EInitVideoDisplay,
    64         EInitVideoDisplay,
    64         EResetSurfaceParameters,
    65         EResetSurfaceParameters,
    65         ESetChangedSurfaceParameters,
    66         ESetChangedSurfaceParameters,
    66         ECleanVideoDisplay,
    67         ECleanVideoDisplay,
   168  public: 
   169  public: 
   169     	 virtual void ProcureWindowResourcesFromQWidget(RWsSession * aWs,
   170     	 virtual void ProcureWindowResourcesFromQWidget(RWsSession * aWs,
   170     																										CWsScreenDevice* aScreenDevice,
   171     																										CWsScreenDevice* aScreenDevice,
   171   																													  RWindowBase* aWindow);	
   172   																													  RWindowBase* aWindow);	
   172   																													  
   173   																													  
   173     virtual CMMAPlayer* UiPlayer();
       
   174 
   174 
   175 public: // New methods
   175 public: // New methods
   176     TBool IsVisible() const;
   176     TBool IsVisible() const;
   177     void SetDisplay(MMMADisplay *aDisplay);
   177     void SetDisplay(MMMADisplay *aDisplay);
   178 
   178 
   202                                      const TRect& aCropRect,
   202                                      const TRect& aCropRect,
   203                                      const TVideoAspectRatio& aPixelAspectRatio);
   203                                      const TVideoAspectRatio& aPixelAspectRatio);
   204 
   204 
   205 private: // New methods
   205 private: // New methods
   206     /**
   206     /**
   207      * scales video to the required size.
       
   208      * This method must always be executed in UI-Thread context.
       
   209      *
       
   210      * @param aRect rectangular size to which the video has to be scaled.
       
   211      */
       
   212     void ScaleVideoL(const TRect& aRect);
       
   213 
       
   214     /**
       
   215      * starts video rendering to a graphics surface.
   207      * starts video rendering to a graphics surface.
   216      * restarts video rendering to a graphics surafce with changed parameters.
   208      * restarts video rendering to a graphics surafce with changed parameters.
   217      * This method must always be executed in UI-Thread context.
   209      * This method must always be executed in UI-Thread context.
   218      */
   210      */
   219     void RedrawVideoL();
   211     void RedrawVideoL();
   231      * creates new instance of CMediaClientVideoDisplay and intializes it with
   223      * creates new instance of CMediaClientVideoDisplay and intializes it with
   232      * surfaces and windows.
   224      * surfaces and windows.
   233      * This method must always be executed in UI-Thread context.
   225      * This method must always be executed in UI-Thread context.
   234      */
   226      */
   235     void InitVideoDisplayL();
   227     void InitVideoDisplayL();
       
   228 
       
   229     /**
       
   230      * updates CMediaClientVideoDisplay with new RWindow rect value.
       
   231      * This method must always be executed in UI-Thread context.
       
   232      */
       
   233     TInt SetClipRect();
   236 
   234 
   237     /**
   235     /**
   238      * updates CMediaClientVideoDisplay instance with new surface parameters.
   236      * updates CMediaClientVideoDisplay instance with new surface parameters.
   239      * This method must always be executed in UI-Thread context.
   237      * This method must always be executed in UI-Thread context.
   240      */
   238      */