Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #ifndef RENDERERUTIL_H
22 #define RENDERERUTIL_H
26 #include <pixelformats.h>
27 #include "videorenderer.hrh"
30 class TUncompressedVideoFormat;
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)
40 #define DEBUGPRINT1(_p1)
41 #define DEBUGPRINT2(_p1,_p2)
42 #define DEBUGPRINT3(_p1,_p2,_p3)
43 #define DEBUGPRINT4(_p1,_p2,_p3,_p4)
47 /** Utiility functions for video renderer */
48 class VideoRendererUtil
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);
59 #endif /*RENDERERUTIL_H*/