Home
last modified time | relevance | path

Searched refs:in_frames (Results 1 – 9 of 9) sorted by relevance

/external/adhd/cras/src/server/
Dcras_fmt_conv_ops.c128 size_t s16_mono_to_stereo(const uint8_t *_in, size_t in_frames, uint8_t *_out) in s16_mono_to_stereo() argument
134 for (i = 0; i < in_frames; i++) { in s16_mono_to_stereo()
138 return in_frames; in s16_mono_to_stereo()
144 size_t s16_stereo_to_mono(const uint8_t *_in, size_t in_frames, uint8_t *_out) in s16_stereo_to_mono() argument
150 for (i = 0; i < in_frames; i++) in s16_stereo_to_mono()
152 return in_frames; in s16_stereo_to_mono()
162 const uint8_t *_in, size_t in_frames, uint8_t *_out) in s16_mono_to_51() argument
168 memset(out, 0, sizeof(*out) * 6 * in_frames); in s16_mono_to_51()
171 for (i = 0; i < in_frames; i++) in s16_mono_to_51()
174 for (i = 0; i < in_frames; i++) { in s16_mono_to_51()
[all …]
Dcras_fmt_conv.c32 const uint8_t *in, size_t in_frames,
184 size_t in_frames, uint8_t *out) in mono_to_stereo() argument
186 return s16_mono_to_stereo(in, in_frames, out); in mono_to_stereo()
190 size_t in_frames, uint8_t *out) in stereo_to_mono() argument
192 return s16_stereo_to_mono(in, in_frames, out); in stereo_to_mono()
196 size_t in_frames, uint8_t *out) in mono_to_51() argument
204 return s16_mono_to_51(left, right, center, in, in_frames, out); in mono_to_51()
208 size_t in_frames, uint8_t *out) in stereo_to_51() argument
216 return s16_stereo_to_51(left, right, center, in, in_frames, out); in stereo_to_51()
220 size_t in_frames, uint8_t *out) in quad_to_51() argument
[all …]
Dcras_fmt_conv_ops.h29 size_t s16_mono_to_stereo(const uint8_t *in, size_t in_frames, uint8_t *out);
34 size_t s16_stereo_to_mono(const uint8_t *in, size_t in_frames, uint8_t *out);
40 const uint8_t *in, size_t in_frames, uint8_t *out);
46 const uint8_t *in, size_t in_frames, uint8_t *out);
52 size_t rear_right, const uint8_t *in, size_t in_frames,
58 size_t s16_51_to_stereo(const uint8_t *in, size_t in_frames, uint8_t *out);
63 size_t s16_51_to_quad(const uint8_t *in, size_t in_frames, uint8_t *out);
70 const uint8_t *in, size_t in_frames, uint8_t *out);
77 const uint8_t *in, size_t in_frames, uint8_t *out);
84 const uint8_t *in, size_t in_frames,
[all …]
Dlinear_resampler.c79 float in_frames; in linear_resampler_out_frames_to_in() local
83 in_frames = (float)(lr->dst_offset + frames) / lr->f; in linear_resampler_out_frames_to_in()
84 if ((in_frames > lr->src_offset)) in linear_resampler_out_frames_to_in()
85 return 1 + (unsigned int)(in_frames - lr->src_offset); in linear_resampler_out_frames_to_in()
Dcras_fmt_conv.h59 size_t in_frames);
79 unsigned int *in_frames, size_t out_frames);
/external/adhd/cras/src/tests/
Ddev_stream_unittest.cc68 size_t in_frames; member
279 EXPECT_EQ(conv_buf_avail_at_input_rate, conv_frames_call.in_frames); in TEST_F()
314 EXPECT_EQ(stream_avail_at_input_rate, conv_frames_call.in_frames); in TEST_F()
1214 unsigned int* in_frames, in cras_fmt_conv_convert_frames() argument
1220 conv_frames_call.in_frames = *in_frames; in cras_fmt_conv_convert_frames()
1221 ret = cras_frames_at_rate(in_fmt.frame_rate, *in_frames, out_fmt.frame_rate); in cras_fmt_conv_convert_frames()
1225 *in_frames = in cras_fmt_conv_convert_frames()
1277 size_t in_frames) { in cras_fmt_conv_in_frames_to_out() argument
1278 return cras_frames_at_rate(in_fmt.frame_rate, in_frames, out_fmt.frame_rate); in cras_fmt_conv_in_frames_to_out()
Dfmt_conv_unittest.cc60 unsigned int in_frames = 1; in TEST() local
88 c, (uint8_t*)in_buf, (uint8_t*)out_buf, &in_frames, out_frames); in TEST()
90 EXPECT_EQ(0, in_frames); in TEST()
92 in_frames = 1; in TEST()
95 c, (uint8_t*)in_buf, (uint8_t*)out_buf, &in_frames, out_frames); in TEST()
97 EXPECT_EQ(1, in_frames); in TEST()
Daudio_thread_unittest_obsolete.cc2177 size_t in_frames) { in cras_fmt_conv_in_frames_to_out() argument
2178 return in_frames; in cras_fmt_conv_in_frames_to_out()
Diodev_unittest.cc2443 size_t in_frames) { in cras_fmt_conv_in_frames_to_out() argument
2444 return in_frames; in cras_fmt_conv_in_frames_to_out()