videoplayback/hbvideoplaybackview/tsrc/testvideodisplayhandler/stub/inc/mediaclientvideodisplay.h
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:  Stub declaration for CMediaClientVideoDisplay
       
    14 //
       
    15 
       
    16 
       
    17 #ifndef MEDIACLIENTVIDEODISPLAY_H
       
    18 #define MEDIACLIENTVIDEODISPLAY_H
       
    19 
       
    20 #include <w32std.h>
       
    21 #include <mmf/common/mmfvideosurfacecustomcommands.h>
       
    22 
       
    23 CMediaClientVideoDisplay : public CBase
       
    24 	{
       
    25 public:
       
    26 
       
    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 
       
    45 	TInt RedrawWindows(const TRect& aCropRegion);
       
    46 	
       
    47 	void SetVideoExtentL(const RWindowBase& aWindow, const TRect& aVideoExtent, const TRect& aCropRegion);
       
    48 	
       
    49 	void SetAutoScaleL(TAutoScaleType aScaleType, TInt aHorizPos, TInt aVertPos, const TRect& aCropRegion);
       
    50 			
       
    51 	};
       
    52 
       
    53 #endif // MEDIACLIENTVIDEODISPLAY_H
       
    54