|
1 // Copyright (c) 2007-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: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef RENDERERUTIL_H |
|
22 #define RENDERERUTIL_H |
|
23 |
|
24 #include <e32def.h> |
|
25 #include <e32const.h> |
|
26 #include <pixelformats.h> |
|
27 #include "videorenderer.hrh" |
|
28 |
|
29 // class declaration |
|
30 class TUncompressedVideoFormat; |
|
31 |
|
32 #ifdef _DEBUG |
|
33 #include <e32debug.h> |
|
34 |
|
35 #define DEBUGPRINT1(_p1) RDebug::Print(_p1) |
|
36 #define DEBUGPRINT2(_p1,_p2) RDebug::Print(_p1,_p2) |
|
37 #define DEBUGPRINT3(_p1,_p2,_p3) RDebug::Print(_p1,_p2,_p3) |
|
38 #define DEBUGPRINT4(_p1,_p2,_p3,_p4) RDebug::Print(_p1,_p2,_p3,_p4) |
|
39 #else |
|
40 #define DEBUGPRINT1(_p1) |
|
41 #define DEBUGPRINT2(_p1,_p2) |
|
42 #define DEBUGPRINT3(_p1,_p2,_p3) |
|
43 #define DEBUGPRINT4(_p1,_p2,_p3,_p4) |
|
44 #endif |
|
45 |
|
46 |
|
47 /** Utiility functions for video renderer */ |
|
48 class VideoRendererUtil |
|
49 { |
|
50 public: |
|
51 static TUncompressedVideoFormat ConvertPixelFormatToUncompressedVideoFormatL(TVideoRendererPixelFormat aPixelFormat); |
|
52 static TUncompressedVideoFormat ConvertUidPixelFormatToUncompressedVideoFormatL(TUidPixelFormat aUidPixelFormat); |
|
53 static TUidPixelFormat ConvertUncompressedVideoFormatToUidPixelFormatL(const TUncompressedVideoFormat& aFormat); |
|
54 static TInt BytesPerPixelL(TUidPixelFormat aPixelFormat); |
|
55 }; |
|
56 |
|
57 |
|
58 |
|
59 #endif /*RENDERERUTIL_H*/ |