HomeSort by relevance Sort by last modified time
    Searched full:frame_bytes (Results 1 - 21 of 21) sorted by null

  /external/adhd/cras/src/tests/
shm_unittest.cc 48 shm_.area->write_offset[0] = 100 * shm_.area->config.frame_bytes;
53 EXPECT_EQ((frames_ - 9) * shm_.config.frame_bytes, shm_.area->read_offset[0]);
61 shm_.area->write_offset[0] = 100 * shm_.config.frame_bytes;
62 shm_.area->read_offset[0] = 50 * shm_.config.frame_bytes;
67 EXPECT_EQ(shm_.area->write_offset[0] - 10 * shm_.config.frame_bytes,
75 shm_.area->write_offset[0] = 100 * shm_.config.frame_bytes;
76 shm_.area->read_offset[0] = 50 * shm_.config.frame_bytes;
80 25 * shm_.area->config.frame_bytes,
86 shm_.config.used_size = 480 * shm_.config.frame_bytes;
87 shm_.area->write_offset[0] = 240 * shm_.config.frame_bytes;
    [all...]
cras_router.c 57 int frame_bytes; local
59 frame_bytes = cras_client_format_bytes_per_frame(aud_format);
60 write_size = frames * frame_bytes;
77 uint32_t frame_bytes = cras_client_format_bytes_per_frame(aud_format); local
82 nread = read(fd, buff, MIN(frames * frame_bytes, BUF_SIZE));
89 return nread / frame_bytes;
cras_test_client.c 130 int frame_bytes; local
137 frame_bytes = cras_client_format_bytes_per_frame(aud_format);
138 write_size = frames * frame_bytes;
143 MIN(write_size, duration_frames * frame_bytes));
179 uint32_t frame_bytes = cras_client_format_bytes_per_frame(aud_format); local
203 MIN(frames * frame_bytes, BUF_SIZE));
208 nread = read(fd, buff, MIN(frames * frame_bytes, BUF_SIZE));
216 return nread / frame_bytes;
230 uint32_t frame_bytes = cras_client_format_bytes_per_frame(aud_format); local
232 rc = read(0, playback_samples, frames * frame_bytes);
    [all...]
cras_client_unittest.cc 185 area.config.frame_bytes = format_bytes;
242 area.config.frame_bytes = format_bytes;
audio_thread_unittest.cc 656 rstream.shm.config.frame_bytes = 4;
657 shm_area.config.frame_bytes = 4;
audio_thread_unittest_obsolete.cc     [all...]
iodev_unittest.cc     [all...]
  /external/adhd/cras/src/libcras/
cras_helpers.c 16 unsigned int frame_bytes; member in struct:buffer_data
37 to_copy = MIN(to_copy, frames * data->frame_bytes);
43 return to_copy / data->frame_bytes;
161 data->frame_bytes = num_channels * PCM_FORMAT_WIDTH(format) / 8;
163 data->len = frames * data->frame_bytes;
  /external/adhd/cras/src/common/
cras_shm.h 22 * frame_bytes - The size of each frame in bytes.
26 uint32_t frame_bytes; member in struct:cras_audio_shm_config
124 return (write_offset - read_offset) / shm->config.frame_bytes;
152 const unsigned frame_bytes = shm->config.frame_bytes; local
157 *frames = limit_frames - (write_offset / frame_bytes);
182 final_offset = read_offset + offset * shm->config.frame_bytes;
195 *frames = (write_offset - final_offset) / shm->config.frame_bytes;
224 if (bytes % shm->config.frame_bytes != 0)
226 return bytes / shm->config.frame_bytes;
    [all...]
  /external/adhd/cras/examples/
cplay.c 18 unsigned int frame_bytes; member in struct:stream_data
34 nread = read(data->fd, playback_samples, frames * data->frame_bytes);
38 return nread / data->frame_bytes;
82 data->frame_bytes = 4;
  /external/adhd/cras/src/server/
cras_loopback_iodev.c 56 unsigned int frame_bytes = cras_get_format_bytes(fmt); local
67 frames_to_copy = MIN(buf_writable_bytes(sbuf) / frame_bytes, nframes);
71 bytes_to_copy = frames_to_copy * frame_bytes;
125 unsigned int frame_bytes = cras_get_format_bytes(iodev->format); local
135 frames_to_fill = MIN(buf_writable_bytes(sbuf) / frame_bytes,
138 bytes_to_fill = frames_to_fill * frame_bytes;
146 return buf_queued_bytes(sbuf) / frame_bytes;
196 unsigned int frame_bytes = cras_get_format_bytes(iodev->format); local
197 unsigned int avail_frames = buf_readable_bytes(sbuf) / frame_bytes;
212 unsigned int frame_bytes = cras_get_format_bytes(iodev->format) local
    [all...]
cras_mix.c 76 size_t frame_bytes,
79 return ops->mute_buffer(dst, frame_bytes, count);
cras_rstream.c 27 size_t used_size, samples_size, frame_bytes; local
33 frame_bytes = snd_pcm_format_physical_width(fmt->format) / 8 *
35 used_size = stream->buffer_frames * frame_bytes;
57 cras_shm_set_frame_bytes(shm, frame_bytes);
58 shm->config.frame_bytes = frame_bytes;
cras_mix.h 75 * frame_bytes - number of bytes in a frame.
79 size_t frame_bytes,
cras_mix_ops.h 46 size_t frame_bytes,
dev_stream.c 273 unsigned int frame_bytes; local
280 frame_bytes = cras_get_format_bytes(fmt);
290 frame_bytes);
301 write_frames /= frame_bytes;
320 write_frames * frame_bytes);
cras_iodev.c 907 const unsigned int frame_bytes = cras_get_format_bytes(fmt); local
908 cras_mix_mute_buffer(frames, frame_bytes, nframes);
961 const unsigned int frame_bytes = cras_get_format_bytes(fmt); local
980 cras_mix_mute_buffer(hw_buffer, frame_bytes, *frames);
1088 unsigned int frame_bytes, frames_written; local
1097 frame_bytes = cras_get_format_bytes(odev->ext_format);
1108 memset(buf, 0, frames_written * frame_bytes);
    [all...]
audio_thread.c 669 unsigned int frame_bytes = cras_get_format_bytes(odev->ext_format); local
710 memset(dst + max_offset * frame_bytes, 0,
711 (write_limit - max_offset) * frame_bytes);
724 dst + frame_bytes * offset,
    [all...]
cras_mix_ops.c 849 size_t frame_bytes,
852 memset(dst, 0, count * frame_bytes);
  /external/webp/src/mux/
muxedit.c 100 uint8_t* frame_bytes; local
107 frame_bytes = (uint8_t*)WebPSafeMalloc(1ULL, frame_size);
108 if (frame_bytes == NULL) return WEBP_MUX_MEMORY_ERROR;
110 PutLE24(frame_bytes + 0, info->x_offset / 2);
111 PutLE24(frame_bytes + 3, info->y_offset / 2);
113 PutLE24(frame_bytes + 6, width - 1);
114 PutLE24(frame_bytes + 9, height - 1);
115 PutLE24(frame_bytes + 12, info->duration);
116 frame_bytes[15] =
120 frame->bytes = frame_bytes;
    [all...]
  /external/adhd/cras/src/alsa_plugin/
pcm_cras.c 132 size_t chan, frame_bytes, sample_bytes; local
142 frame_bytes = pcm_cras->bytes_per_frame;
147 memset(samples, 0, nframes * frame_bytes);

Completed in 363 milliseconds