mp4sp_enc/arimp4spencwrapper/export_hdr/aricommon.h
changeset 0 bb31fbe78861
equal deleted inserted replaced
-1:000000000000 0:bb31fbe78861
       
     1 /*
       
     2 * Copyright (c) 2009 Aricent and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "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 * Aricent - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Common header used by plugin, wrapper and codec.
       
    16 */
       
    17 
       
    18 #ifndef ARICOMMON_H
       
    19 #define ARICOMMON_H
       
    20 
       
    21 typedef signed char          int8;
       
    22 typedef unsigned char        uint8;
       
    23 typedef short int            int16;
       
    24 typedef unsigned short int   uint16;
       
    25 typedef int                  int32;
       
    26 typedef unsigned int         uint32;
       
    27 
       
    28 typedef float                flt32;
       
    29 typedef double               flt64;
       
    30 
       
    31 typedef unsigned char        tBool;
       
    32 typedef signed int           tError;
       
    33 
       
    34 
       
    35 enum {I_VOP, P_VOP, B_VOP, ACCESS_VOP, SKIP_VOP};
       
    36 enum {LOW, MEDIUM, HIGH, COMPLEX};
       
    37 enum {CBR, VBR, HQVBR};
       
    38 enum {H263,MPEG4};
       
    39 
       
    40 #define E_TRUE               1
       
    41 #define E_FALSE              0
       
    42 
       
    43 #define E_ON                 1
       
    44 #define E_OFF                0
       
    45 
       
    46 #define E_DEBUG              1
       
    47 #define E_RELEASE            0
       
    48 
       
    49 #define E_SUCCESS            0
       
    50 #define E_FAILURE           (-1)
       
    51 #define E_OUT_OF_MEMORY     (-2)
       
    52 #define E_OUT_OF_RANGE      (-3)
       
    53 #define E_FILE_CREATE_FAIL  (-4)
       
    54 #define E_UNDEFINED_FLAG    (-5)
       
    55 #define E_FILE_READ_FAIL    (-6)
       
    56 #define E_FILE_OPEN_FAIL    (-7)
       
    57 #define E_END_OF_FILE		(-8)
       
    58 #define E_NOT_COMPLETE		(-9)
       
    59 #define E_OUTBUF_OVERFLOW	(-10)
       
    60 #define E_USER_ERROR_BASE   (-1000)
       
    61 #define mIsSuccess(code)    ((code)>=0)
       
    62 #define mIsFailure(code)    ((code)<0)
       
    63 
       
    64 #if defined(__MARM_ARM4__) || defined(__MARM_ARMI__) || defined(__MARM_ARM5__) || defined(__MARM_ARMV5__) || defined(__MARM_ARMV6__)
       
    65 
       
    66 	#ifndef USE_UNOPTIMIZED
       
    67 		#define ARM9TDMI_INLINE
       
    68 	#endif
       
    69 #endif
       
    70 
       
    71 #endif  // ARICOMMON_H