khronosfws/openmax_al/src/common/xaglobals.h
changeset 25 6f7ceef7b1d1
parent 19 4a629bc82c5e
child 53 eabc8c503852
equal deleted inserted replaced
21:2ed61feeead6 25:6f7ceef7b1d1
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description: 
    14  * Description: Header File for common AL enums, functions.
    15 *
    15  *
    16 */
    16  */
    17 /*All global definitions and declarations here */
    17 /*All global definitions and declarations here */
    18 
    18 
    19 #ifndef XAGLOBALS_H
    19 #ifndef XAGLOBALS_H
    20 #define XAGLOBALS_H
    20 #define XAGLOBALS_H
    21 
    21 
    22 #include "openmaxalwrapper.h"
    22 #include "openmaxalwrapper.h"
    23 #include "xadebug.h"
    23 #include "xadebug.h"
    24 
    24 
    25 /**
    25 /**
    26 GLOBAL ENUMERATIONS
    26  GLOBAL ENUMERATIONS
    27  */
    27  */
    28 /**
    28 /**
    29  * enumeration for different adaptation event types.
    29  * enumeration for different adaptation event types.
    30  * add more types when needed, use single bit values.
    30  * add more types when needed, use single bit values.
    31  **/
    31  **/
    32 typedef enum {
    32 typedef enum
       
    33     {
    33     XA_GENERICEVENTS = 0x1,
    34     XA_GENERICEVENTS = 0x1,
    34     XA_PLAYITFEVENTS = 0x2,
    35     XA_PLAYITFEVENTS = 0x2,
    35     XA_RECORDITFEVENTS = 0x4,
    36     XA_RECORDITFEVENTS = 0x4,
    36     XA_SNAPSHOTITFEVENTS = 0x8,
    37     XA_SNAPSHOTITFEVENTS = 0x8,
    37     XA_OUTPUTMIXITFEVENTS = 0x10,
    38     XA_OUTPUTMIXITFEVENTS = 0x10,
    40     XA_RADIOITFEVENTS = 0x80,
    41     XA_RADIOITFEVENTS = 0x80,
    41     XA_RDSITFEVENTS = 0x100,
    42     XA_RDSITFEVENTS = 0x100,
    42     XA_METADATAEVENTS = 0x200,
    43     XA_METADATAEVENTS = 0x200,
    43     XA_VOLUMEITFEVENTS = 0x400,
    44     XA_VOLUMEITFEVENTS = 0x400,
    44     XA_NOKIALINEARVOLITFEVENTS = 0x800,
    45     XA_NOKIALINEARVOLITFEVENTS = 0x800,
    45     XA_NOKIAEXTVOLITFEVENTS = 0x1000,        
    46     XA_NOKIAEXTVOLITFEVENTS = 0x1000,
    46     XA_ADDMORETYPES  = 0x2000    
    47     XA_ADDMORETYPES = 0x2000
    47 }XAAdaptEventTypes;
    48     } XAAdaptEventTypes;
    48 
       
    49 
    49 
    50 typedef enum
    50 typedef enum
    51 {
    51     {
    52     XACAP_DECODER  = 0x1,
    52     XACAP_DECODER = 0x1,
    53     XACAP_ENCODER  = 0x2,
    53     XACAP_ENCODER = 0x2,
    54     XACAP_DEVSNK   = 0x4,
    54     XACAP_DEVSNK = 0x4,
    55     XACAP_DEVSRC   = 0x8,
    55     XACAP_DEVSRC = 0x8,
    56 
    56 
    57     XACAP_AUDIO    = 0x10,
    57     XACAP_AUDIO = 0x10,
    58     XACAP_VIDEO    = 0x20,
    58     XACAP_VIDEO = 0x20,
    59     XACAP_IMAGE    = 0x40
    59     XACAP_IMAGE = 0x40
    60 } XACapsType;
    60     } XACapsType;
    61 
       
    62 
    61 
    63 typedef enum
    62 typedef enum
    64 {
    63     {
    65     XA_UNDEFINED = 0,
    64     XA_UNDEFINED = 0, XA_READBUFFER, XA_WRITEBUFFER, XA_READ, XA_WRITE
    66     XA_READBUFFER,
    65     } XAConfigExtensionCpKey;
    67     XA_WRITEBUFFER,
       
    68     XA_READ,
       
    69     XA_WRITE
       
    70 } XAConfigExtensionCpKey;
       
    71 
    66 
    72 typedef enum
    67 typedef enum
    73 {
    68     {
    74     XA_MEDIATYPE_AUDIO = 0,
    69     XA_MEDIATYPE_AUDIO = 0,
    75     XA_MEDIATYPE_VIDEO,
    70     XA_MEDIATYPE_VIDEO,
    76     XA_MEDIATYPE_IMAGE,
    71     XA_MEDIATYPE_IMAGE,
    77     XA_MEDIATYPE_UNKNOWN
    72     XA_MEDIATYPE_UNKNOWN
    78 } XAMediaType;
    73     } XAMediaType;
    79 
    74 
    80 #define CPCONFIGKEY "TestAppPipeConfig"
    75 #define CPCONFIGKEY "TestAppPipeConfig"
    81 
    76 
    82 #define XA_RECMODE_STREAM 1
    77 #define XA_RECMODE_STREAM 1
    83 #define XA_RECMODE_STILL 2
    78 #define XA_RECMODE_STILL 2
   101 
    96 
   102 /**
    97 /**
   103  * GLOBAL METHODS
    98  * GLOBAL METHODS
   104  */
    99  */
   105 
   100 
   106 
       
   107 
       
   108 /*
   101 /*
   109  * Check if interface IDs are equal
   102  * Check if interface IDs are equal
   110  */
   103  */
   111 XAboolean XACommon_EqualIIds(XAInterfaceID idA, XAInterfaceID idB);
   104 XAboolean XACommon_EqualIIds(XAInterfaceID idA, XAInterfaceID idB);
   112 
   105 
   113 /*
   106 /*
   114  * Check Data Source availability and type
   107  * Check Data Source availability and type
   115  */
   108  */
   116 XAresult XACommon_CheckDataSource(XADataSource* source, XAMediaType* type);
   109 XAresult XACommon_CheckDataSource(XADataSource* source, XAMediaType* type);
   117 
   110 
   118 XAresult XACommon_ValidateDataLocator( XAuint32 pCounter, void* pSnk, ... );
   111 XAresult XACommon_ValidateDataLocator(XAuint32 pCounter, void* pSnk, ...);
   119 #endif /*XAGLOBALS_H */
   112 #endif /*XAGLOBALS_H */