equal
deleted
inserted
replaced
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 XACAMERAADAPTCTX_H |
|
19 #define XACAMERAADAPTCTX_H |
|
20 |
|
21 #include "xaadaptationgst.h" |
|
22 #ifdef OMAX_CAMERABIN |
|
23 #include <gst/interfaces/photography.h> |
|
24 #endif |
|
25 /* TYPEDEFS */ |
|
26 |
|
27 typedef struct XACameraAdaptationCtx_ XACameraAdaptationCtx; |
|
28 |
|
29 /* |
|
30 * Structure for Camera specific gst-adaptation variables |
|
31 */ |
|
32 typedef struct XACameraAdaptationCtx_ { |
|
33 |
|
34 /* Parent*/ |
|
35 XAAdaptationGstCtx_ baseObj; |
|
36 |
|
37 /* OMX-AL Variables */ |
|
38 XAuint32 deviceID; |
|
39 XAuint32 imageEffectID; |
|
40 XAmillidegree curRotation; |
|
41 XAuint32 curMirror; |
|
42 |
|
43 /* GST Variables */ |
|
44 #ifdef OMAX_CAMERABIN |
|
45 GstFocusStatus focusStatus; |
|
46 #endif |
|
47 /* Internals */ |
|
48 XAboolean recording; |
|
49 XAboolean playing; |
|
50 XAboolean snapshotting; |
|
51 } XACameraAdaptationCtx_; |
|
52 |
|
53 /* FUNCTIONS */ |
|
54 XAAdaptationBaseCtx* XACameraAdapt_Create(XAuint32 deviceID); |
|
55 XAresult XACameraAdapt_PostInit(XAAdaptationBaseCtx* bCtx); |
|
56 void XACameraAdapt_Destroy(XAAdaptationBaseCtx* bCtx); |
|
57 |
|
58 #endif /* XACAMERAADAPTCTX_H */ |
|