Home
last modified time | relevance | path

Searched refs:format_bytes (Results 1 – 25 of 25) sorted by relevance

/external/adhd/cras/src/server/
Dcras_hfp_info.c98 size_t format_bytes; in hfp_buf_acquire() local
100 format_bytes = cras_get_format_bytes(dev->format); in hfp_buf_acquire()
102 *count *= format_bytes; in hfp_buf_acquire()
111 *count /= format_bytes; in hfp_buf_acquire()
122 size_t format_bytes; in hfp_buf_release() local
123 format_bytes = cras_get_format_bytes(dev->format); in hfp_buf_release()
125 written_frames *= format_bytes; in hfp_buf_release()
135 size_t format_bytes; in hfp_buf_queued() local
136 format_bytes = cras_get_format_bytes(dev->format); in hfp_buf_queued()
139 return buf_queued(info->playback_buf) / format_bytes; in hfp_buf_queued()
[all …]
Dlinear_resampler.c22 unsigned int format_bytes; member
31 unsigned int format_bytes, in linear_resampler_create() argument
41 lr->format_bytes = format_bytes; in linear_resampler_create()
145 in = (int16_t *)(src + src_idx * lr->format_bytes); in linear_resampler_resample()
146 out = (int16_t *)(dst + dst_idx * lr->format_bytes); in linear_resampler_resample()
Dcras_a2dp_iodev.c267 size_t format_bytes; in flush_data() local
274 format_bytes = cras_get_format_bytes(iodev->format); in flush_data()
288 format_bytes, in flush_data()
332 queued_frames = buf_queued(a2dpio->pcm_buf) / format_bytes; in flush_data()
356 size_t format_bytes; in get_buffer() local
361 format_bytes = cras_get_format_bytes(iodev->format); in get_buffer()
367 format_bytes); in get_buffer()
379 size_t format_bytes; in put_buffer() local
382 format_bytes = cras_get_format_bytes(iodev->format); in put_buffer()
383 written_bytes = nwritten * format_bytes; in put_buffer()
Dcras_a2dp_info.c151 int format_bytes, size_t link_mtu) in a2dp_encode() argument
174 a2dp->samples += processed / format_bytes; in a2dp_encode()
175 a2dp->nsamples += processed / format_bytes; in a2dp_encode()
Ddev_stream.c381 unsigned int format_bytes, fr_to_capture; in dev_stream_capture() local
386 format_bytes = cras_get_format_bytes( in dev_stream_capture()
390 area->channels[0].buf + area_offset * format_bytes, in dev_stream_capture()
469 unsigned int format_bytes; in dev_stream_capture_avail() local
483 format_bytes = cras_get_format_bytes( in dev_stream_capture_avail()
489 format_bytes; in dev_stream_capture_avail()
497 format_bytes); in dev_stream_capture_avail()
Dlinear_resampler.h20 unsigned int format_bytes,
Dcras_a2dp_info.h78 int format_bytes, size_t link_mtu);
Dcras_alsa_helpers.h207 int cras_alsa_mmap_begin(snd_pcm_t *handle, unsigned int format_bytes,
Dcras_alsa_io.c504 size_t format_bytes; in get_buffer() local
508 format_bytes = cras_get_format_bytes(iodev->format); in get_buffer()
511 format_bytes, in get_buffer()
1720 size_t format_bytes; in fill_whole_buffer_with_zeros() local
1731 format_bytes = cras_get_format_bytes(iodev->format); in fill_whole_buffer_with_zeros()
1732 memset(dst, 0, iodev->buffer_size * format_bytes); in fill_whole_buffer_with_zeros()
Dcras_alsa_helpers.c791 int cras_alsa_mmap_begin(snd_pcm_t *handle, unsigned int format_bytes, in cras_alsa_mmap_begin() argument
825 *dst = (uint8_t *)my_areas[0].addr + (*offset) * format_bytes; in cras_alsa_mmap_begin()
/external/adhd/cras/src/tests/
Dcras_client_unittest.cc174 size_t format_bytes; in StreamConnected() local
185 format_bytes = cras_get_format_bytes(&server_format); in StreamConnected()
187 area.config.frame_bytes = format_bytes; in StreamConnected()
188 area.config.used_size = shm_writable_frames_ * format_bytes; in StreamConnected()
227 size_t format_bytes; in StreamConnectedFail() local
244 format_bytes = cras_get_format_bytes(&server_format); in StreamConnectedFail()
246 area.config.frame_bytes = format_bytes; in StreamConnectedFail()
247 area.config.used_size = shm_writable_frames_ * format_bytes; in StreamConnectedFail()
Da2dp_iodev_unittest.cc534 int format_bytes, size_t link_mtu) { in a2dp_encode() argument
Dfmt_conv_unittest.cc1539 unsigned int format_bytes, in linear_resampler_create() argument
1543 linear_resampler_format_bytes = format_bytes; in linear_resampler_create()
Dalsa_io_unittest.cc2405 int cras_alsa_mmap_begin(snd_pcm_t *handle, unsigned int format_bytes, in cras_alsa_mmap_begin() argument
/external/swiftshader/third_party/subzero/bloat/
Dbloat.py27 def format_bytes(bytes): function
281 'name': key + ' ' + format_bytes(size),
295 'name': name + ' ' + format_bytes(total),
337 'name': section + ' ' + format_bytes(size),
345 'name': name + ' ' + format_bytes(total),
357 'name': 'top ' + format_bytes(size),
427 print '%6s %s (%s) %s' % (format_bytes(size), sym,
430 print '%6s %s' % (format_bytes(total), 'total'),
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_rast_priv.h172 pixel_offset = px * task->scene->cbufs[buf].format_bytes + in lp_rast_get_color_block_pointer()
206 pixel_offset = px * task->scene->zsbuf.format_bytes + in lp_rast_get_depth_block_pointer()
Dlp_scene.c177 scene->cbufs[i].format_bytes = util_format_get_blocksize(cbuf->format); in lp_scene_begin_rasterization()
186 scene->cbufs[i].format_bytes = util_format_get_blocksize(cbuf->format); in lp_scene_begin_rasterization()
199 scene->zsbuf.format_bytes = util_format_get_blocksize(zsbuf->format); in lp_scene_begin_rasterization()
Dlp_scene.h145 unsigned format_bytes; member
Dlp_rast.c116 scene->cbufs[i].format_bytes * task->x; in lp_rast_tile_begin()
122 scene->zsbuf.format_bytes * task->x; in lp_rast_tile_begin()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DScopedPrinter.cpp42 OS << " (" << format_bytes(Data, None, Data.size(), 1, 0, true) << ")\n"; in printBinaryImpl()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFormat.h230 format_bytes(ArrayRef<uint8_t> Bytes, Optional<uint64_t> FirstByteOffset = None,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DFormat.h239 format_bytes(ArrayRef<uint8_t> Bytes, Optional<uint64_t> FirstByteOffset = None,
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
Draw_ostream_test.cpp196 Str << format_bytes(Bytes, Offset, NumPerLine, ByteGroupSize); in formatted_bytes_str()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/
DDWARFFormValue.cpp374 OS << format_bytes(ArrayRef<uint8_t>(Value.data, 16), None, 16, 16); in dump()
/external/ImageMagick/MagickCore/
Dprofile.c2044 format_bytes[] = {0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8}; in SyncExifProfile() local
2144 number_bytes=(size_t) components*format_bytes[format]; in SyncExifProfile()