Lines Matching refs:src
35 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() argument
38 src += count; in memcpy_to_i16_from_u8()
40 *--dst = (int16_t)(*--src - 0x80) << 8; in memcpy_to_i16_from_u8()
44 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_u8_from_i16() argument
47 *dst++ = (*src++ >> 8) + 0x80; in memcpy_to_u8_from_i16()
51 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count) in memcpy_to_u8_from_float() argument
54 *dst++ = clamp8_from_float(*src++); in memcpy_to_u8_from_float()
58 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_i32() argument
61 *dst++ = *src++ >> 16; in memcpy_to_i16_from_i32()
65 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) in memcpy_to_i16_from_float() argument
68 *dst++ = clamp16_from_float(*src++); in memcpy_to_i16_from_float()
72 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count) in memcpy_to_float_from_q4_27() argument
75 *dst++ = float_from_q4_27(*src++); in memcpy_to_float_from_q4_27()
79 void memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count) in memcpy_to_float_from_i16() argument
82 *dst++ = float_from_i16(*src++); in memcpy_to_float_from_i16()
86 void memcpy_to_float_from_u8(float *dst, const uint8_t *src, size_t count) in memcpy_to_float_from_u8() argument
89 *dst++ = float_from_u8(*src++); in memcpy_to_float_from_u8()
93 void memcpy_to_float_from_p24(float *dst, const uint8_t *src, size_t count) in memcpy_to_float_from_p24() argument
96 *dst++ = float_from_p24(src); in memcpy_to_float_from_p24()
97 src += 3; in memcpy_to_float_from_p24()
101 void memcpy_to_i16_from_p24(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_p24() argument
105 *dst++ = src[1] | (src[0] << 8); in memcpy_to_i16_from_p24()
107 *dst++ = src[1] | (src[2] << 8); in memcpy_to_i16_from_p24()
109 src += 3; in memcpy_to_i16_from_p24()
113 void memcpy_to_i32_from_p24(int32_t *dst, const uint8_t *src, size_t count) in memcpy_to_i32_from_p24() argument
117 *dst++ = (src[2] << 8) | (src[1] << 16) | (src[0] << 24); in memcpy_to_i32_from_p24()
119 *dst++ = (src[0] << 8) | (src[1] << 16) | (src[2] << 24); in memcpy_to_i32_from_p24()
121 src += 3; in memcpy_to_i32_from_p24()
125 void memcpy_to_p24_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_p24_from_i16() argument
129 *dst++ = *src >> 8; in memcpy_to_p24_from_i16()
130 *dst++ = *src++; in memcpy_to_p24_from_i16()
134 *dst++ = *src; in memcpy_to_p24_from_i16()
135 *dst++ = *src++ >> 8; in memcpy_to_p24_from_i16()
140 void memcpy_to_p24_from_float(uint8_t *dst, const float *src, size_t count) in memcpy_to_p24_from_float() argument
143 int32_t ival = clamp24_from_float(*src++); in memcpy_to_p24_from_float()
157 void memcpy_to_p24_from_q8_23(uint8_t *dst, const int32_t *src, size_t count) in memcpy_to_p24_from_q8_23() argument
160 int32_t ival = clamp24_from_q8_23(*src++); in memcpy_to_p24_from_q8_23()
174 void memcpy_to_p24_from_i32(uint8_t *dst, const int32_t *src, size_t count) in memcpy_to_p24_from_i32() argument
177 int32_t ival = *src++ >> 8; in memcpy_to_p24_from_i32()
191 void memcpy_to_q8_23_from_i16(int32_t *dst, const int16_t *src, size_t count) in memcpy_to_q8_23_from_i16() argument
194 *dst++ = (int32_t)*src++ << 8; in memcpy_to_q8_23_from_i16()
198 void memcpy_to_q8_23_from_float_with_clamp(int32_t *dst, const float *src, size_t count) in memcpy_to_q8_23_from_float_with_clamp() argument
201 *dst++ = clamp24_from_float(*src++); in memcpy_to_q8_23_from_float_with_clamp()
205 void memcpy_to_q8_23_from_p24(int32_t *dst, const uint8_t *src, size_t count) in memcpy_to_q8_23_from_p24() argument
209 *dst++ = (int8_t)src[0] << 16 | src[1] << 8 | src[2]; in memcpy_to_q8_23_from_p24()
211 *dst++ = (int8_t)src[2] << 16 | src[1] << 8 | src[0]; in memcpy_to_q8_23_from_p24()
213 src += 3; in memcpy_to_q8_23_from_p24()
217 void memcpy_to_q4_27_from_float(int32_t *dst, const float *src, size_t count) in memcpy_to_q4_27_from_float() argument
220 *dst++ = clampq4_27_from_float(*src++); in memcpy_to_q4_27_from_float()
224 void memcpy_to_i16_from_q8_23(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_q8_23() argument
227 *dst++ = clamp16(*src++ >> 8); in memcpy_to_i16_from_q8_23()
231 void memcpy_to_float_from_q8_23(float *dst, const int32_t *src, size_t count) in memcpy_to_float_from_q8_23() argument
234 *dst++ = float_from_q8_23(*src++); in memcpy_to_float_from_q8_23()
238 void memcpy_to_i32_from_i16(int32_t *dst, const int16_t *src, size_t count) in memcpy_to_i32_from_i16() argument
241 *dst++ = (int32_t)*src++ << 16; in memcpy_to_i32_from_i16()
245 void memcpy_to_i32_from_float(int32_t *dst, const float *src, size_t count) in memcpy_to_i32_from_float() argument
248 *dst++ = clamp32_from_float(*src++); in memcpy_to_i32_from_float()
252 void memcpy_to_float_from_i32(float *dst, const int32_t *src, size_t count) in memcpy_to_float_from_i32() argument
255 *dst++ = float_from_i32(*src++); in memcpy_to_float_from_i32()
259 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count) in downmix_to_mono_i16_from_stereo_i16() argument
262 *dst++ = (int16_t)(((int32_t)src[0] + (int32_t)src[1]) >> 1); in downmix_to_mono_i16_from_stereo_i16()
263 src += 2; in downmix_to_mono_i16_from_stereo_i16()
267 void upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) in upmix_to_stereo_i16_from_mono_i16() argument
270 int32_t temp = *src++; in upmix_to_stereo_i16_from_mono_i16()
277 void downmix_to_mono_float_from_stereo_float(float *dst, const float *src, size_t frames) in downmix_to_mono_float_from_stereo_float() argument
280 *dst++ = (src[0] + src[1]) * 0.5; in downmix_to_mono_float_from_stereo_float()
281 src += 2; in downmix_to_mono_float_from_stereo_float()
285 void upmix_to_stereo_float_from_mono_float(float *dst, const float *src, size_t frames) in upmix_to_stereo_float_from_mono_float() argument
288 float temp = *src++; in upmix_to_stereo_float_from_mono_float()
345 #define copy_frame_by_mask(dst, dmask, src, smask, count, zero) \ argument
354 *(dst)++ = (smask) & bit ? *(src)++ : (zero); \
356 ++(src); \
363 const void *src, uint32_t src_mask, size_t sample_size, size_t count) in memcpy_by_channel_mask() argument
372 memcpy_by_idxary(dst, dst_channels, src, src_channels, idxary, sample_size, count); in memcpy_by_channel_mask()
375 memcpy(dst, src, sample_size * popcount(dst_mask) * count); in memcpy_by_channel_mask()
381 const uint8_t *usrc = (const uint8_t*)src; in memcpy_by_channel_mask()
387 const uint16_t *usrc = (const uint16_t*)src; in memcpy_by_channel_mask()
393 const uint8x3_t *usrc = (const uint8x3_t*)src; in memcpy_by_channel_mask()
400 const uint32_t *usrc = (const uint32_t*)src; in memcpy_by_channel_mask()
416 #define copy_frame_by_idx(dst, dst_channels, src, src_channels, idxary, count, zero) \ argument
423 *(dst)++ = index < 0 ? (zero) : (src)[index]; \
425 (src) += (src_channels); \
430 const void *src, uint32_t src_channels, in memcpy_by_index_array() argument
436 const uint8_t *usrc = (const uint8_t*)src; in memcpy_by_index_array()
442 const uint16_t *usrc = (const uint16_t*)src; in memcpy_by_index_array()
448 const uint8x3_t *usrc = (const uint8x3_t*)src; in memcpy_by_index_array()
455 const uint32_t *usrc = (const uint32_t*)src; in memcpy_by_index_array()