Ignore:
Timestamp:
Jan 28, 2009 6:03:12 PM (15 years ago)
Author:
nanang
Message:

Initial sources of APS-direct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjmedia/include/pjmedia/types.h

    r2394 r2434  
    4848 */ 
    4949 
    50 /**  
    51  * Top most media type.  
     50/** 
     51 * Top most media type. 
    5252 */ 
    5353typedef enum pjmedia_type 
     
    6262    PJMEDIA_TYPE_VIDEO = 2, 
    6363 
    64     /** Unknown media type, in this case the name will be specified in  
     64    /** Unknown media type, in this case the name will be specified in 
    6565     *  encoding_name. 
    6666     */ 
     
    7373 
    7474 
    75 /**  
    76  * Media transport protocol.  
     75/** 
     76 * Media transport protocol. 
    7777 */ 
    7878typedef enum pjmedia_tp_proto 
     
    9393 
    9494 
    95 /**  
    96  * Media direction.  
     95/** 
     96 * Media direction. 
    9797 */ 
    9898typedef enum pjmedia_dir 
     
    139139 
    140140 
    141 /**  
    142  * Opague declaration of media endpoint.  
     141/** 
     142 * Opaque declaration of media endpoint. 
    143143 */ 
    144144typedef struct pjmedia_endpt pjmedia_endpt; 
     
    151151 
    152152 
    153 /**  
     153/** 
    154154 * Media socket info is used to describe the underlying sockets 
    155155 * to be used as media transport. 
     
    179179} pjmedia_sock_info; 
    180180 
     181/** 
     182 * Declaration of FourCC type. 
     183 */ 
     184typedef union pjmedia_fourcc { 
     185   pj_uint32_t  u32; 
     186   char         c[4]; 
     187} pjmedia_fourcc; 
     188 
     189 
     190/** 
     191 * FourCC packing macro. 
     192 */ 
     193#define PJMEDIA_FOURCC_PACK(C1, C2, C3, C4) ( C1<<24 | C2<<16 | C3<<8 | C4 ) 
     194 
     195/** 
     196 * FourCC identifier definitions. 
     197 */ 
     198#define PJMEDIA_FOURCC_L16      PJMEDIA_FOURCC_PACK(' ', 'L', '1', '6') 
     199#define PJMEDIA_FOURCC_G711A    PJMEDIA_FOURCC_PACK('G', '7', '1', '1') 
     200#define PJMEDIA_FOURCC_G711U    PJMEDIA_FOURCC_PACK('U', 'L', 'A', 'W') 
     201#define PJMEDIA_FOURCC_AMR      PJMEDIA_FOURCC_PACK(' ', 'A', 'M', 'R') 
     202#define PJMEDIA_FOURCC_G729     PJMEDIA_FOURCC_PACK('G', '7', '2', '9') 
     203#define PJMEDIA_FOURCC_ILBC     PJMEDIA_FOURCC_PACK('i', 'L', 'B', 'C') 
     204 
    181205 
    182206/** 
    183207 * This is a general purpose function set PCM samples to zero. 
    184  * Since this function is needed by many parts of the library,  
     208 * Since this function is needed by many parts of the library, 
    185209 * by putting this functionality in one place, it enables some. 
    186210 * clever people to optimize this function. 
     
    206230/** 
    207231 * This is a general purpose function to copy samples from/to buffers with 
    208  * equal size. Since this function is needed by many parts of the library,  
     232 * equal size. Since this function is needed by many parts of the library, 
    209233 * by putting this functionality in one place, it enables some. 
    210234 * clever people to optimize this function. 
     
    221245    unsigned i; 
    222246    count >>= 1; 
    223     for (i=0; i<count; ++i)  
     247    for (i=0; i<count; ++i) 
    224248        ((pj_int32_t*)dst)[i] = ((pj_int32_t*)src)[i]; 
    225249#endif 
     
    229253/** 
    230254 * This is a general purpose function to copy samples from/to buffers with 
    231  * equal size. Since this function is needed by many parts of the library,  
     255 * equal size. Since this function is needed by many parts of the library, 
    232256 * by putting this functionality in one place, it enables some. 
    233257 * clever people to optimize this function. 
     
    244268    unsigned i; 
    245269    count >>= 1; 
    246     for (i=0; i<count; ++i)  
     270    for (i=0; i<count; ++i) 
    247271        ((pj_int32_t*)dst)[i] = ((pj_int32_t*)src)[i]; 
    248272#endif 
Note: See TracChangeset for help on using the changeset viewer.