/external/adhd/cras/src/tests/ |
D | shm_unittest.cc | 48 shm_.area->write_offset[0] = 100 * shm_.area->config.frame_bytes; in TEST_F() 53 EXPECT_EQ((frames_ - 9) * shm_.config.frame_bytes, shm_.area->read_offset[0]); in TEST_F() 61 shm_.area->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F() 62 shm_.area->read_offset[0] = 50 * shm_.config.frame_bytes; in TEST_F() 67 EXPECT_EQ(shm_.area->write_offset[0] - 10 * shm_.config.frame_bytes, in TEST_F() 75 shm_.area->write_offset[0] = 100 * shm_.config.frame_bytes; in TEST_F() 76 shm_.area->read_offset[0] = 50 * shm_.config.frame_bytes; in TEST_F() 80 25 * shm_.area->config.frame_bytes, in TEST_F() 86 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F() 87 shm_.area->write_offset[0] = 240 * shm_.config.frame_bytes; in TEST_F() [all …]
|
D | cras_router.c | 57 int frame_bytes; in got_samples() local 59 frame_bytes = cras_client_format_bytes_per_frame(aud_format); in got_samples() 60 write_size = frames * frame_bytes; in got_samples() 77 uint32_t frame_bytes = cras_client_format_bytes_per_frame(aud_format); in put_samples() local 82 nread = read(fd, buff, MIN(frames * frame_bytes, BUF_SIZE)); in put_samples() 89 return nread / frame_bytes; in put_samples()
|
D | dev_io_stubs.cc | 23 uint32_t frame_bytes = 4; in create_shm() local 24 uint32_t used_size = cb_threshold * 2 * frame_bytes; in create_shm() 29 shm->config.frame_bytes = frame_bytes; in create_shm()
|
D | cras_test_client.c | 137 int frame_bytes; in got_samples() local 144 frame_bytes = cras_client_format_bytes_per_frame(aud_format); in got_samples() 145 write_size = frames * frame_bytes; in got_samples() 150 MIN(write_size, duration_frames * frame_bytes)); in got_samples() 171 uint32_t frame_bytes = cras_client_format_bytes_per_frame(aud_format); in put_samples() local 195 MIN(frames * frame_bytes, BUF_SIZE)); in put_samples() 200 nread = read(fd, buff, MIN(frames * frame_bytes, BUF_SIZE)); in put_samples() 208 return nread / frame_bytes; in put_samples() 222 uint32_t frame_bytes = cras_client_format_bytes_per_frame(aud_format); in put_stdin_samples() local 224 rc = read(0, playback_samples, frames * frame_bytes); in put_stdin_samples() [all …]
|
D | cras_client_unittest.cc | 187 area.config.frame_bytes = format_bytes; in StreamConnected() 246 area.config.frame_bytes = format_bytes; in StreamConnectedFail()
|
D | audio_thread_unittest.cc | 707 rstream.shm.config.frame_bytes = 4; in TEST() 708 shm_area.config.frame_bytes = 4; in TEST()
|
D | audio_thread_unittest_obsolete.cc | 1985 size_t frame_bytes, in cras_mix_mute_buffer() argument
|
D | iodev_unittest.cc | 2449 size_t frame_bytes, in cras_mix_mute_buffer() argument
|
/external/adhd/cras/src/common/ |
D | cras_shm.h | 26 uint32_t frame_bytes; member 124 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_curr_read_frames() 152 const unsigned frame_bytes = shm->config.frame_bytes; in cras_shm_get_writeable_frames() local 157 written = write_offset / frame_bytes; in cras_shm_get_writeable_frames() 188 final_offset = read_offset + offset * shm->config.frame_bytes; in cras_shm_get_readable_frames() 201 *frames = (write_offset - final_offset) / shm->config.frame_bytes; in cras_shm_get_readable_frames() 230 if (bytes % shm->config.frame_bytes != 0) in cras_shm_get_frames() 232 return bytes / shm->config.frame_bytes; in cras_shm_get_frames() 249 return (write_offset - read_offset) / shm->config.frame_bytes; in cras_shm_get_frames_in_curr_buffer() 268 return shm->config.used_size / shm->config.frame_bytes; in cras_shm_get_num_writeable() [all …]
|
/external/adhd/cras/src/server/ |
D | cras_loopback_iodev.c | 56 unsigned int frame_bytes = cras_get_format_bytes(fmt); in sample_hook() local 67 frames_to_copy = MIN(buf_writable(sbuf) / frame_bytes, nframes); in sample_hook() 71 bytes_to_copy = frames_to_copy * frame_bytes; in sample_hook() 130 unsigned int frame_bytes = cras_get_format_bytes(iodev->format); in frames_queued() local 140 frames_to_fill = MIN(buf_writable(sbuf) / frame_bytes, in frames_queued() 143 bytes_to_fill = frames_to_fill * frame_bytes; in frames_queued() 151 return buf_queued(sbuf) / frame_bytes; in frames_queued() 202 unsigned int frame_bytes = cras_get_format_bytes(iodev->format); in get_record_buffer() local 203 unsigned int avail_frames = buf_readable(sbuf) / frame_bytes; in get_record_buffer() 218 unsigned int frame_bytes = cras_get_format_bytes(iodev->format); in put_record_buffer() local [all …]
|
D | cras_rstream.c | 27 size_t used_size, samples_size, frame_bytes; in setup_shm() local 33 frame_bytes = snd_pcm_format_physical_width(fmt->format) / 8 * in setup_shm() 35 used_size = stream->buffer_frames * frame_bytes; in setup_shm() 57 cras_shm_set_frame_bytes(shm, frame_bytes); in setup_shm() 58 shm->config.frame_bytes = frame_bytes; in setup_shm()
|
D | cras_mix.c | 76 size_t frame_bytes, in cras_mix_mute_buffer() argument 79 return ops->mute_buffer(dst, frame_bytes, count); in cras_mix_mute_buffer()
|
D | cras_iodev.c | 1039 const unsigned int frame_bytes = cras_get_format_bytes(fmt); in cras_iodev_put_output_buffer() local 1040 cras_mix_mute_buffer(frames, frame_bytes, nframes); in cras_iodev_put_output_buffer() 1099 const unsigned int frame_bytes = cras_get_format_bytes(iodev->format); in cras_iodev_get_input_buffer() local 1133 iodev->input_dsp_offset * frame_bytes, in cras_iodev_get_input_buffer() 1140 cras_mix_mute_buffer(hw_buffer, frame_bytes, *frames); in cras_iodev_get_input_buffer() 1260 unsigned int frame_bytes, frames_written; in cras_iodev_fill_odev_zeros() local 1269 frame_bytes = cras_get_format_bytes(odev->ext_format); in cras_iodev_fill_odev_zeros() 1280 memset(buf, 0, frames_written * frame_bytes); in cras_iodev_fill_odev_zeros()
|
D | dev_stream.c | 308 unsigned int frame_bytes; in capture_copy_converted_to_stream() local 315 frame_bytes = cras_get_format_bytes(fmt); in capture_copy_converted_to_stream() 325 frame_bytes); in capture_copy_converted_to_stream() 336 write_frames /= frame_bytes; in capture_copy_converted_to_stream() 355 write_frames * frame_bytes); in capture_copy_converted_to_stream()
|
D | cras_mix.h | 79 size_t frame_bytes,
|
D | cras_mix_ops.h | 46 size_t frame_bytes,
|
D | dev_io.c | 496 unsigned int frame_bytes = cras_get_format_bytes(odev->ext_format); in write_streams() local 538 memset(dst + max_offset * frame_bytes, 0, in write_streams() 539 (write_limit - max_offset) * frame_bytes); in write_streams() 552 dst + frame_bytes * offset, in write_streams()
|
D | cras_mix_ops.c | 849 size_t frame_bytes, in mix_mute_buffer() argument 852 memset(dst, 0, count * frame_bytes); in mix_mute_buffer()
|
/external/adhd/cras/examples/ |
D | cplay.c | 18 unsigned int frame_bytes; member 34 nread = read(data->fd, playback_samples, frames * data->frame_bytes); in put_samples() 38 return nread / data->frame_bytes; in put_samples() 82 data->frame_bytes = 4; in main()
|
/external/adhd/cras/src/libcras/ |
D | cras_helpers.c | 16 unsigned int frame_bytes; member 37 to_copy = MIN(to_copy, frames * data->frame_bytes); in play_buffer_callback() 43 return to_copy / data->frame_bytes; in play_buffer_callback() 161 data->frame_bytes = num_channels * PCM_FORMAT_WIDTH(format) / 8; in cras_helper_play_buffer() 163 data->len = frames * data->frame_bytes; in cras_helper_play_buffer()
|
/external/webp/src/mux/ |
D | muxedit.c | 100 uint8_t* frame_bytes; in CreateFrameData() local 107 frame_bytes = (uint8_t*)WebPSafeMalloc(1ULL, frame_size); in CreateFrameData() 108 if (frame_bytes == NULL) return WEBP_MUX_MEMORY_ERROR; in CreateFrameData() 110 PutLE24(frame_bytes + 0, info->x_offset / 2); in CreateFrameData() 111 PutLE24(frame_bytes + 3, info->y_offset / 2); in CreateFrameData() 113 PutLE24(frame_bytes + 6, width - 1); in CreateFrameData() 114 PutLE24(frame_bytes + 9, height - 1); in CreateFrameData() 115 PutLE24(frame_bytes + 12, info->duration); in CreateFrameData() 116 frame_bytes[15] = in CreateFrameData() 120 frame->bytes = frame_bytes; in CreateFrameData()
|
/external/adhd/cras/src/alsa_plugin/ |
D | pcm_cras.c | 132 size_t chan, frame_bytes, sample_bytes; in pcm_cras_process_cb() local 142 frame_bytes = pcm_cras->bytes_per_frame; in pcm_cras_process_cb() 148 memset(samples, 0, nframes * frame_bytes); in pcm_cras_process_cb()
|
/external/libaom/libaom/av1/encoder/ |
D | encoder.c | 5332 static void compute_internal_stats(AV1_COMP *cpi, int frame_bytes) { in compute_internal_stats() argument 5341 cpi->bytes += frame_bytes; in compute_internal_stats()
|