videoplayback/videoplaybackview/tsrc/testvideodisplayhandler/stub/inc/mediaclientvideodisplay.h
changeset 66 adb51f74b890
parent 44 518105d52e45
equal deleted inserted replaced
63:4707a0db12f6 66:adb51f74b890
    18 #define MEDIACLIENTVIDEODISPLAY_H
    18 #define MEDIACLIENTVIDEODISPLAY_H
    19 
    19 
    20 #include <w32std.h>
    20 #include <w32std.h>
    21 #include <mmf/common/mmfvideosurfacecustomcommands.h>
    21 #include <mmf/common/mmfvideosurfacecustomcommands.h>
    22 
    22 
    23 CMediaClientVideoDisplay : public CBase
    23 class CMediaClientVideoDisplay : public CBase
    24 	{
    24 {
    25 public:
    25     public:
    26 
    26 
    27 	static CMediaClientVideoDisplay* NewL(TInt aDisplayId);
    27         static CMediaClientVideoDisplay* NewL(TInt aDisplayId);
    28 	
       
    29 	~CMediaClientVideoDisplay();
       
    30 	
       
    31 	CMediaClientVideoDisplay();
       
    32 	
       
    33 	void AddDisplayWindowL(const RWindowBase* aWindow, const TRect& aClipRect, const TRect& aCropRegion,
       
    34 							           const TRect& aVideoExtent, TReal32 aScaleWidth, TReal32 aScaleHeight,
       
    35 							           TVideoRotation aRotation, TAutoScaleType aAutoScaleType, 
       
    36 							           TInt aHorizPos, TInt aVertPos, RWindow* aWindow2);
       
    37 	
       
    38 	
       
    39 	void RemoveSurface();
       
    40 	
       
    41 	TInt SurfaceCreated(const TSurfaceId& aSurfaceId, const TRect& aCropRect, TVideoAspectRatio aAspectRatio, const TRect& aCropRegion);
       
    42 							
       
    43 	TInt SurfaceParametersChanged(const TSurfaceId& aSurfaceId, const TRect& aCropRect, TVideoAspectRatio aAspectRatio);
       
    44 
    28 
    45 	TInt RedrawWindows(const TRect& aCropRegion);
    29         ~CMediaClientVideoDisplay();
    46 	
    30 
    47 	void SetVideoExtentL(const RWindowBase& aWindow, const TRect& aVideoExtent, const TRect& aCropRegion);
    31         CMediaClientVideoDisplay();
    48 	
    32 
    49 	void SetAutoScaleL(TAutoScaleType aScaleType, TInt aHorizPos, TInt aVertPos, const TRect& aCropRegion);
    33         void AddDisplayWindowL(const RWindowBase* aWindow, const TRect& aClipRect, const TRect& aCropRegion,
    50 			
    34                                            const TRect& aVideoExtent, TReal32 aScaleWidth, TReal32 aScaleHeight,
    51 	};
    35                                            TVideoRotation aRotation, TAutoScaleType aAutoScaleType,
       
    36                                            TInt aHorizPos, TInt aVertPos, RWindow* aWindow2);
       
    37 
       
    38         void RemoveSurface();
       
    39 
       
    40         TInt SurfaceCreated(const TSurfaceId& aSurfaceId, const TRect& aCropRect, TVideoAspectRatio aAspectRatio, const TRect& aCropRegion);
       
    41 
       
    42         TInt SurfaceParametersChanged(const TSurfaceId& aSurfaceId, const TRect& aCropRect, TVideoAspectRatio aAspectRatio);
       
    43 
       
    44         TInt RedrawWindows(const TRect& aCropRegion);
       
    45 
       
    46         void SetVideoExtentL(const RWindowBase& aWindow, const TRect& aVideoExtent, const TRect& aCropRegion);
       
    47 
       
    48         void SetAutoScaleL(TAutoScaleType aScaleType, TInt aHorizPos, TInt aVertPos, const TRect& aCropRegion);
       
    49 
       
    50     public:
       
    51         TRect iVideoExtent;
       
    52 };
    52 
    53 
    53 #endif // MEDIACLIENTVIDEODISPLAY_H
    54 #endif // MEDIACLIENTVIDEODISPLAY_H
    54 
    55