- Timestamp:
- Jan 28, 2009 6:03:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/aps-direct/pjmedia/include/pjmedia/types.h
r2394 r2434 48 48 */ 49 49 50 /** 51 * Top most media type. 50 /** 51 * Top most media type. 52 52 */ 53 53 typedef enum pjmedia_type … … 62 62 PJMEDIA_TYPE_VIDEO = 2, 63 63 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 65 65 * encoding_name. 66 66 */ … … 73 73 74 74 75 /** 76 * Media transport protocol. 75 /** 76 * Media transport protocol. 77 77 */ 78 78 typedef enum pjmedia_tp_proto … … 93 93 94 94 95 /** 96 * Media direction. 95 /** 96 * Media direction. 97 97 */ 98 98 typedef enum pjmedia_dir … … 139 139 140 140 141 /** 142 * Opa gue declaration of media endpoint.141 /** 142 * Opaque declaration of media endpoint. 143 143 */ 144 144 typedef struct pjmedia_endpt pjmedia_endpt; … … 151 151 152 152 153 /** 153 /** 154 154 * Media socket info is used to describe the underlying sockets 155 155 * to be used as media transport. … … 179 179 } pjmedia_sock_info; 180 180 181 /** 182 * Declaration of FourCC type. 183 */ 184 typedef 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 181 205 182 206 /** 183 207 * 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, 185 209 * by putting this functionality in one place, it enables some. 186 210 * clever people to optimize this function. … … 206 230 /** 207 231 * 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, 209 233 * by putting this functionality in one place, it enables some. 210 234 * clever people to optimize this function. … … 221 245 unsigned i; 222 246 count >>= 1; 223 for (i=0; i<count; ++i) 247 for (i=0; i<count; ++i) 224 248 ((pj_int32_t*)dst)[i] = ((pj_int32_t*)src)[i]; 225 249 #endif … … 229 253 /** 230 254 * 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, 232 256 * by putting this functionality in one place, it enables some. 233 257 * clever people to optimize this function. … … 244 268 unsigned i; 245 269 count >>= 1; 246 for (i=0; i<count; ++i) 270 for (i=0; i<count; ++i) 247 271 ((pj_int32_t*)dst)[i] = ((pj_int32_t*)src)[i]; 248 272 #endif
Note: See TracChangeset
for help on using the changeset viewer.