khronosfws/openmax_al/src/camera/xacameradevice.h
changeset 33 5e8b14bae8c3
parent 28 ebf79c79991a
child 36 73253677b50a
equal deleted inserted replaced
28:ebf79c79991a 33:5e8b14bae8c3
     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 XACAMERADEVICE_H
       
    19 #define XACAMERADEVICE_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "xaobjectitf.h"
       
    23 #include "xaglobals.h"
       
    24 #include "xaadptbasectx.h"
       
    25 /** MACROS **/
       
    26 
       
    27 
       
    28 /** TYPES **/
       
    29 
       
    30 
       
    31 /** ENUMERATIONS **/
       
    32 /* Enumeration for interfaces that CameraDevice supports.  */
       
    33 typedef enum
       
    34 {
       
    35     CAMERA_OBJECTITF,
       
    36     CAMERA_CAMERAITF,
       
    37     CAMERA_CONFIGEXTENSIONITF,
       
    38     CAMERA_DIMITF,
       
    39     CAMERA_IMAGECONTROLSITF,
       
    40     CAMERA_IMAGEEFFECTSITF,
       
    41     CAMERA_VIDEOPOSTPROCESSINGITF,
       
    42     CAMERA_ITFCOUNT
       
    43 } XACameraDeviceInterfaces;
       
    44 
       
    45 /** STRUCTURES **/
       
    46 /* Specification for CameraDeviceImpl. */
       
    47 typedef struct XACameraDeviceImpl_
       
    48 {
       
    49     /* Parent for XACameraDeviceImpl */
       
    50     XAObjectItfImpl baseObj;
       
    51 
       
    52     /* variables */
       
    53     XAuint32 deviceID;
       
    54 
       
    55     XAAdaptationBaseCtx* adaptationCtx;
       
    56   
       
    57 } XACameraDeviceImpl;
       
    58 
       
    59 
       
    60 /** METHODS **/
       
    61 
       
    62 /* base object XAObjectItfImpl methods */
       
    63 XAresult    XACameraDeviceImpl_DoRealize(XAObjectItf self);
       
    64 XAresult    XACameraDeviceImpl_DoResume(XAObjectItf self);
       
    65 void        XACameraDeviceImpl_FreeResources(XAObjectItf self);
       
    66 
       
    67 /* CameraDeviceImpl -specific methods*/
       
    68 /* DynamicInterfaceManagement object-specific methods */
       
    69 XAresult XACameraDeviceImpl_DoAddItf(XAObjectItf self, XAObjItfMapEntry *mapEntry  );
       
    70 XAresult XACameraDeviceImpl_DoResumeItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
       
    71 XAresult XACameraDeviceImpl_DoRemoveItf(XAObjectItf self, XAObjItfMapEntry *mapEntry );
       
    72 
       
    73 
       
    74 
       
    75 #endif /* XACAMERADEVICE_H */