khronosfws/openmax_al/src/adaptation/xastaticcameracapsadaptation.h
changeset 16 43d09473c595
parent 14 80975da52420
child 22 128eb6a32b84
equal deleted inserted replaced
14:80975da52420 16:43d09473c595
     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 XASTATICCAMERACAPSADAPTATION_H
       
    19 #define XASTATICCAMERACAPSADAPTATION_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "XAGlobals.h"
       
    23 
       
    24 #ifdef XA_USE_TEST_PLUGINS
       
    25 #define XACAMERAIMPL_DEFAULT_DEVICE XA_ADAPTID_VIDEOTESTSRC
       
    26 #else
       
    27 #define XACAMERAIMPL_DEFAULT_DEVICE XA_ADAPTID_V4L2SRC
       
    28 #endif
       
    29 
       
    30 /* Structure to hold commonly used capabilities of codec/device.
       
    31  */
       
    32 typedef struct XAStaticCameraCapsData_
       
    33 {
       
    34     XAuint32              deviceID;
       
    35     XACameraDescriptor    XAcaps;
       
    36 } XAStaticCameraCapsData;
       
    37 
       
    38 void XAStaticCameraCaps_Init();
       
    39 
       
    40 XAresult XAStaticCameraCaps_GetCameraCapabilities(
       
    41                         XAuint32* pIndex,
       
    42                         XAuint32* pCameraDeviceID,
       
    43                         XACameraDescriptor* pDescriptor);
       
    44 
       
    45 XAresult XAStaticCameraCaps_QueryFocusRegionPatterns(
       
    46                         XAuint32 cameraDeviceID,
       
    47                         XAuint32* pPatternID,
       
    48                         XAuint32* pFocusPattern,
       
    49                         XAuint32* pCustomPoints1,
       
    50                         XAuint32* pCustomPoints2);
       
    51 
       
    52 XAresult XAStaticCameraCaps_GetSupportedAutoLocks(
       
    53                         XAuint32 cameraDeviceID,
       
    54                         XAuint32* pNumCombinations,
       
    55                         XAuint32** ppLocks);
       
    56 
       
    57 XAresult XAStaticCameraCaps_GetSupportedFocusManualSettings(
       
    58                         XAuint32 cameraDeviceID,
       
    59                         XAboolean macroEnabled,
       
    60                         XAmillimeter* pMinValue,
       
    61                         XAmillimeter* pMaxValue,
       
    62                         XAuint32* pNumSettings,
       
    63                         XAmillimeter** ppSettings);
       
    64 
       
    65 XAresult XAStaticCameraCaps_GetSupportedISOSensitivitySettings(
       
    66                         XAuint32 cameraDeviceID,
       
    67                         XAuint32* pMinValue,
       
    68                         XAuint32* pMaxValue,
       
    69                         XAuint32* pNumSettings,
       
    70                         XAuint32** ppSettings);
       
    71 
       
    72 XAresult XAStaticCameraCaps_GetSupportedApertureManualSettings(
       
    73                         XAuint32 cameraDeviceID,
       
    74                         XAuint32* pMinValue,
       
    75                         XAuint32* pMaxValue,
       
    76                         XAuint32* pNumSettings,
       
    77                         XAuint32** ppSettings);
       
    78 
       
    79 XAresult XAStaticCameraCaps_GetSupportedShutterSpeedManualSettings(
       
    80                         XAuint32 cameraDeviceID,
       
    81                         XAmicrosecond* pMinValue,
       
    82                         XAmicrosecond* pMaxValue,
       
    83                         XAuint32* pNumSettings,
       
    84                         XAmicrosecond** ppSettings);
       
    85 
       
    86 XAresult XAStaticCameraCaps_GetSupportedWhiteBalanceManualSettings(
       
    87                         XAuint32 cameraDeviceID,
       
    88                         XAuint32* pMinValue,
       
    89                         XAuint32* pMaxValue,
       
    90                         XAuint32* pNumSettings,
       
    91                         XAuint32** ppSettings);
       
    92 
       
    93 XAresult XAStaticCameraCaps_GetSupportedZoomSettings(
       
    94                         XAuint32 cameraDeviceID,
       
    95                         XAboolean digitalEnabled,
       
    96                         XAboolean macroEnabled,
       
    97                         XApermille* pMaxValue,
       
    98                         XAuint32* pNumSettings,
       
    99                         XApermille** ppSettings,
       
   100                         XAboolean* pSpeedSupported);
       
   101 
       
   102 #endif /* XASTATICCAMERACAPSADAPTATION_H */