Searched refs:read_pos (Results 1 – 4 of 4) sorted by relevance
/external/webrtc/src/modules/audio_processing/utility/ |
D | ring_buffer.c | 26 size_t read_pos; member 49 const size_t margin = buf->element_count - buf->read_pos; in GetBufferReadRegions() 54 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size; in GetBufferReadRegions() 59 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size; in GetBufferReadRegions() 103 self->read_pos = 0; in WebRtc_InitBuffer() 222 int read_pos = (int) self->read_pos; in WebRtc_MoveReadPtr() local 231 read_pos += element_count; in WebRtc_MoveReadPtr() 232 if (read_pos > (int) self->element_count) { in WebRtc_MoveReadPtr() 234 read_pos -= (int) self->element_count; in WebRtc_MoveReadPtr() 237 if (read_pos < 0) { in WebRtc_MoveReadPtr() [all …]
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
D | StreamGobbler.java | 68 int unread_size = write_pos - read_pos; in run() 82 System.arraycopy(buffer, read_pos, new_buffer, 0, unread_size); in run() 86 read_pos = 0; in run() 118 private int read_pos = 0; field in StreamGobbler 141 while (read_pos == write_pos) in read() 158 return buffer[read_pos++] & 0xff; in read() 176 return write_pos - read_pos; in available() 221 while (read_pos == write_pos) in read() 239 int avail = write_pos - read_pos; in read() 243 System.arraycopy(buffer, read_pos, b, off, avail); in read() [all …]
|
/external/qemu/audio/ |
D | winaudio.c | 350 int read_pos; member 498 s->read_pos = 0; in winaudio_in_init() 531 int wav_bytes = (s->read_size - s->read_pos); in winaudio_in_run() 535 uint8_t* src = (uint8_t*)wav_buffer->lpData + s->read_pos; in winaudio_in_run() 544 __FUNCTION__, s->read_index, s->read_pos, s->read_size, wav_samples, wav_bytes, live, in winaudio_in_run() 555 s->read_pos += wav_bytes; in winaudio_in_run() 556 if (s->read_pos == s->read_size) { in winaudio_in_run() 557 s->read_pos = 0; in winaudio_in_run()
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | stream.cc | 1041 size_t count, read_pos, write_pos; in Flow() local 1043 read_pos = *data_len; in Flow() 1045 read_pos = 0; in Flow() 1051 while (!end_of_stream && (read_pos < buffer_len)) { in Flow() 1052 result = source->Read(buffer + read_pos, buffer_len - read_pos, in Flow() 1058 *data_len = read_pos; in Flow() 1062 read_pos += count; in Flow() 1068 while (write_pos < read_pos) { in Flow() 1069 result = sink->Write(buffer + write_pos, read_pos - write_pos, in Flow() 1073 *data_len = read_pos - write_pos; in Flow() [all …]
|