1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XAVIDEOPOSTPROSESSINGITFADAPTATION_H |
|
19 #define XAVIDEOPOSTPROSESSINGITFADAPTATION_H |
|
20 |
|
21 #include "XAAdaptationContextBase.h" |
|
22 #include "XADebug.h" |
|
23 #include "XAThreadSafety.h" |
|
24 /* MACROS */ |
|
25 #define BLACK_BG_COLOR_MASK 0x00FFFFFF |
|
26 #define GREEN_BG_COLOR_MASK 0x0000FF00 |
|
27 #define BLUE_BG_COLOR_MASK 0x000000FF |
|
28 #define ALPHA_VALUE_MASK 0x000000FF |
|
29 |
|
30 #define TEST_VIDEO_WIDTH 640 |
|
31 #define TEST_VIDEO_HEIGHT 480 |
|
32 |
|
33 #define ROTATION_RATIO 360000 |
|
34 #define ROTATION_RATIO_NEG -360000 |
|
35 |
|
36 /* FUNCTIONS */ |
|
37 XAresult XAVideoPostProcessingItfAdapt_IsArbitraryRotationSupported(XAAdaptationBaseCtx *bCtx, |
|
38 XAboolean *pSupported); |
|
39 |
|
40 XAresult XAVideoPostProcessingItfAdapt_Commit(XAAdaptationBaseCtx *bCtx, |
|
41 XAmillidegree rotation, |
|
42 XAuint32 scaleOptions, |
|
43 XAuint32 backgroundColor, |
|
44 XAuint32 renderingHints, |
|
45 const XARectangle *pSrcRect, |
|
46 const XARectangle *pDestRect, |
|
47 XAuint32 mirror, |
|
48 XAboolean isMirror, |
|
49 XAboolean isRotate, |
|
50 XAboolean isDestRect, |
|
51 XAboolean isSrcRect, |
|
52 XAboolean isScaleOptions |
|
53 ); |
|
54 XAresult XAVideoPostProcessingItfAdapt_ThreadEntry(XAAdaptationBaseCtx *adaptCtx); |
|
55 XAresult XAVideoPostProcessingItfAdapt_ThreadExit(XAAdaptationBaseCtx *adaptCtx); |
|
56 #endif /* XAVIDEOPOSTPROSESSINGITFADAPTATION_H */ |
|