Changeset 2506 for pjproject/trunk/pjmedia/include/pjmedia/alaw_ulaw.h
- Timestamp:
- Mar 12, 2009 6:11:37 PM (14 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
-
Property
svn:mergeinfo
set to
False
/pjproject/branches/projects/aps-direct merged eligible
-
Property
svn:mergeinfo
set to
False
-
pjproject/trunk/pjmedia/include/pjmedia/alaw_ulaw.h
r2416 r2506 145 145 * @param dst Destination buffer for 8-bit U-Law data. 146 146 * @param src Source, 16-bit linear PCM data. 147 * @param lenNumber of samples.147 * @param count Number of samples. 148 148 */ 149 149 PJ_INLINE(void) pjmedia_ulaw_encode(pj_uint8_t *dst, const pj_int16_t *src, 150 pj_size_t len)151 { 152 const pj_int16_t *end = src + len;150 pj_size_t count) 151 { 152 const pj_int16_t *end = src + count; 153 153 154 154 while (src < end) { … … 162 162 * @param dst Destination buffer for 8-bit A-Law data. 163 163 * @param src Source, 16-bit linear PCM data. 164 * @param lenNumber of samples.164 * @param count Number of samples. 165 165 */ 166 166 PJ_INLINE(void) pjmedia_alaw_encode(pj_uint8_t *dst, const pj_int16_t *src, 167 pj_size_t len)168 { 169 const pj_int16_t *end = src + len;167 pj_size_t count) 168 { 169 const pj_int16_t *end = src + count; 170 170 171 171 while (src < end) { … … 179 179 * @param dst Destination buffer for 16-bit PCM data. 180 180 * @param src Source, 8-bit U-Law data. 181 * @param len Number of samples.181 * @param len Encoded frame/source length in bytes. 182 182 */ 183 183 PJ_INLINE(void) pjmedia_ulaw_decode(pj_int16_t *dst, const pj_uint8_t *src, … … 196 196 * @param dst Destination buffer for 16-bit PCM data. 197 197 * @param src Source, 8-bit A-Law data. 198 * @param len Number of samples.198 * @param len Encoded frame/source length in bytes. 199 199 */ 200 200 PJ_INLINE(void) pjmedia_alaw_decode(pj_int16_t *dst, const pj_uint8_t *src,
Note: See TracChangeset
for help on using the changeset viewer.