1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
201 void RedrawSubtitle(RWindow& aWindow, const TRect &aRect); |
201 void RedrawSubtitle(RWindow& aWindow, const TRect &aRect); |
202 static RWindow* FindWindowWithWsHandle(const RPointerArray<CMediaClientVideoDisplayBody>& aDisplays, TInt aWsHandle); |
202 static RWindow* FindWindowWithWsHandle(const RPointerArray<CMediaClientVideoDisplayBody>& aDisplays, TInt aWsHandle); |
203 TInt EnableSubtitles(CMediaClientVideoDisplayBody& aDisplay); |
203 TInt EnableSubtitles(CMediaClientVideoDisplayBody& aDisplay); |
204 TInt AddSubtitleConfig(CMediaClientVideoDisplayBody::TWindowData& aWindowData); |
204 TInt AddSubtitleConfig(CMediaClientVideoDisplayBody::TWindowData& aWindowData); |
205 void GetSubtitleConfigFromWindowData(CMediaClientVideoDisplayBody::TWindowData& aWindowData, TMMFSubtitleWindowConfig& aConfig); |
205 void GetSubtitleConfigFromWindowData(CMediaClientVideoDisplayBody::TWindowData& aWindowData, TMMFSubtitleWindowConfig& aConfig); |
206 void UpdateSurfaceAndSubtitleConfigL(CMediaClientVideoDisplayBody& aDisplay,CMediaClientVideoDisplayBody::TWindowData& aWindowData, const TRect& aClipRect, TVideoRotation aRotation, const TRect& aCropRegion); |
|
207 #endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT |
206 #endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT |
208 |
207 |
209 private: |
208 private: |
210 void ConstructL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindowBase& aWindow, |
209 void ConstructL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindowBase& aWindow, |
211 const TRect& aWindowRect, const TRect& aClipRect); |
210 const TRect& aWindowRect, const TRect& aClipRect); |
230 TBool RectContains(const TRect& aLeft, const TRect& aRight); |
229 TBool RectContains(const TRect& aLeft, const TRect& aRight); |
231 void DoAddDisplayWindowL(RWsSession& aWs, TInt aDisplay, RWindowBase& aWindow, |
230 void DoAddDisplayWindowL(RWsSession& aWs, TInt aDisplay, RWindowBase& aWindow, |
232 const TRect& aClipRect, const TRect& aVideoExtent, RWindow* aWindow2); |
231 const TRect& aClipRect, const TRect& aVideoExtent, RWindow* aWindow2); |
233 TInt SurfaceCreated(); |
232 TInt SurfaceCreated(); |
234 TInt SurfaceParametersChanged(); |
233 TInt SurfaceParametersChanged(); |
235 TInt SetBackgroundSurface(const CMediaClientVideoDisplayBody& aDisplay); |
|
236 TInt RemoveSurface(TBool aControllerEvent); |
234 TInt RemoveSurface(TBool aControllerEvent); |
237 TInt SetAllBackgroundSurfaces(); |
235 TInt SetAllBackgroundSurfaces(); |
238 |
236 |
239 #endif // SYMBIAN_BUILD_GCE |
237 #endif // SYMBIAN_BUILD_GCE |
240 |
238 |