/external/ltp/lib/ |
D | tst_timer_test.c | 185 unsigned int nsamples) in compute_threshold() argument 191 return (400 + 2 * monotonic_resolution + slack_per_scall) * nsamples in compute_threshold() 192 + 3000/nsamples; in compute_threshold() 200 static unsigned int compute_discard(unsigned int nsamples) in compute_discard() argument 202 if (nsamples == 1) in compute_discard() 205 return MAX(1u, nsamples / 20); in compute_discard() 254 void do_timer_test(long long usec, unsigned int nsamples) in do_timer_test() argument 257 unsigned int discard = compute_discard(nsamples); in do_timer_test() 258 unsigned int keep_samples = nsamples - discard; in do_timer_test() 265 scall, usec, nsamples, 1.00 * threshold / (keep_samples)); in do_timer_test() [all …]
|
/external/libdrm/radeon/ |
D | radeon_surface.c | 179 if (surf->nsamples == 1 && surflevel->mode == RADEON_SURF_MODE_2D && in surf_minify() 191 surflevel->pitch_bytes = surflevel->nblk_x * bpe * surf->nsamples; in surf_minify() 337 xalign = surf_man->hw_info.group_bytes / (tilew * surf->bpe * surf->nsamples); in r6_surface_init_1d() 372 (tilew * surf->bpe * surf->nsamples); in r6_surface_init_2d() 384 surf->nsamples * surf->bpe * 64, in r6_surface_init_2d() 385 xalign * yalign * surf->nsamples * surf->bpe); in r6_surface_init_2d() 411 if (surf->nsamples > 1) { in r6_surface_init() 435 if (surf->nsamples > 1) { in r6_surface_init() 588 if (surf->nsamples == 1 && surflevel->mode == RADEON_SURF_MODE_2D && in eg_surf_minify() 605 surflevel->pitch_bytes = surflevel->nblk_x * bpe * surf->nsamples; in eg_surf_minify() [all …]
|
D | radeon_surface.h | 120 uint32_t nsamples; member
|
/external/libopus/src/ |
D | opus_compare.c | 57 size_t nsamples; in read_pcm16() local 62 nsamples=csamples=0; in read_pcm16() 66 if(nsamples+nread>csamples){ in read_pcm16() 68 while(nsamples+nread>csamples); in read_pcm16() 78 samples[(nsamples+xi)*_nchannels+ci]=s; in read_pcm16() 81 nsamples+=nread; in read_pcm16() 84 _nchannels*nsamples*sizeof(*samples)); in read_pcm16() 85 return nsamples; in read_pcm16()
|
/external/webrtc/rtc_base/ |
D | timestamp_aligner_unittest.cc | 31 double MeanTimeDifference(int nsamples, int window_size) { in MeanTimeDifference() argument 32 if (nsamples <= window_size) { in MeanTimeDifference() 34 return nsamples / 2.0; in MeanTimeDifference() 41 (window_size / 2.0 - 1) * pow(alpha, nsamples - window_size)); in MeanTimeDifference()
|
/external/flac/src/test_streams/ |
D | main.c | 1250 static const unsigned nsamples[] = { 1, 111, 4777 } ; in main() local 1252 for(samples = 0; samples < sizeof(nsamples)/sizeof(nsamples[0]); samples++) { in main() 1255 … flac_snprintf(fn, sizeof (fn), "rt-%u-%u-%u.aiff", channels, bits_per_sample, nsamples[samples]); in main() 1256 if(!generate_aiff(fn, 44100, channels, bits_per_sample, nsamples[samples])) in main() 1259 flac_snprintf(fn, sizeof (fn), "rt-%u-%u-%u.wav", channels, bits_per_sample, nsamples[samples]); in main() 1260 …if(!generate_wav(fn, 44100, channels, bits_per_sample, nsamples[samples], /*strict=*/true, /*flavo… in main() 1263 … flac_snprintf(fn, sizeof (fn), "rt-%u-%u-%u.rf64", channels, bits_per_sample, nsamples[samples]); in main() 1264 …if(!generate_wav(fn, 44100, channels, bits_per_sample, nsamples[samples], /*strict=*/true, /*flavo… in main() 1267 flac_snprintf(fn, sizeof (fn), "rt-%u-%u-%u.w64", channels, bits_per_sample, nsamples[samples]); in main() 1268 …if(!generate_wav(fn, 44100, channels, bits_per_sample, nsamples[samples], /*strict=*/true, /*flavo… in main() [all …]
|
/external/adhd/cras/src/tests/ |
D | a2dp_info_unittest.cc | 38 a2dp.nsamples = 0; in ResetStubData() 116 ASSERT_EQ(5, a2dp.nsamples); in TEST() 124 ASSERT_EQ(10, a2dp.nsamples); in TEST()
|
/external/flac/src/flac/ |
D | analyze.c | 44 uint32_t nsamples; member 176 stats->nsamples = 0; in init_stats() 186 stats->nsamples += incr; in update_stats() 208 stats->mean = stats->sum / (double)stats->nsamples; in compute_stats() 209 stats->variance = (stats->sos - (stats->sum * stats->sum / stats->nsamples)) / stats->nsamples; in compute_stats()
|
/external/catch2/include/internal/benchmark/detail/ |
D | catch_estimate_clock.hpp | 84 int nsamples = static_cast<int>(std::ceil(time_limit / r.elapsed)); in estimate_clock_cost() local 85 times.reserve(nsamples); in estimate_clock_cost() 86 std::generate_n(std::back_inserter(times), nsamples, [time_clock, &r] { in estimate_clock_cost()
|
/external/mesa3d/src/gallium/winsys/radeon/drm/ |
D | radeon_drm_surface.c | 109 surf_drm->nsamples = tex->nr_samples ? tex->nr_samples : 1; in surf_winsys_to_drm() 158 bpe * surf_drm->nsamples); in surf_winsys_to_drm() 169 surf_drm->nsamples); in surf_winsys_to_drm() 202 surf_drm->bpe * surf_drm->nsamples); in surf_drm_to_winsys() 212 surf_drm->nsamples); in surf_drm_to_winsys()
|
/external/adhd/cras/src/server/ |
D | cras_a2dp_info.c | 130 header->timestamp = htonl(a2dp->nsamples); in avdtp_write() 175 a2dp->nsamples += processed / format_bytes; in a2dp_encode()
|
D | cras_a2dp_info.h | 33 int nsamples; member
|
D | cras_iodev.c | 1165 unsigned int nsamples = nframes * fmt->num_channels; in cras_iodev_put_output_buffer() local 1166 cras_scale_buffer(fmt->format, frames, nsamples, in cras_iodev_put_output_buffer()
|
/external/python/cpython2/Lib/ |
D | sndhdr.py | 154 nsamples = get_long_le(h[8:12]) 156 return 'sndt', rate, 1, nsamples, 8
|
/external/pdfium/third_party/libtiff/ |
D | tif_pixarlog.c | 758 tmsize_t nsamples; in PixarLogDecode() local 764 nsamples = occ / sizeof(float); /* XXX float == 32 bits */ in PixarLogDecode() 769 nsamples = occ / sizeof(uint16); /* XXX uint16 == 16 bits */ in PixarLogDecode() 773 nsamples = occ; in PixarLogDecode() 795 sp->stream.avail_out = (uInt) (nsamples * sizeof(uint16)); in PixarLogDecode() 796 if (sp->stream.avail_out != nsamples * sizeof(uint16)) in PixarLogDecode() 839 TIFFSwabArrayOfShort(up, nsamples); in PixarLogDecode() 846 if (nsamples % llen) { in PixarLogDecode() 849 "%lu, data truncated.", (unsigned long) llen, (unsigned long) nsamples); in PixarLogDecode() 850 nsamples -= nsamples % llen; in PixarLogDecode() [all …]
|
D | tif_getimage.c | 2426 int nsamples = 8 / bitspersample; in makebwmap() local 2430 if( nsamples == 0 ) in makebwmap() 2431 nsamples = 1; in makebwmap() 2434 256*sizeof (uint32 *)+(256*nsamples*sizeof(uint32))); in makebwmap() 2562 int nsamples = 8 / bitspersample; in makecmap() local 2570 256*sizeof (uint32 *)+(256*nsamples*sizeof(uint32))); in makecmap()
|
/external/python/cpython3/Lib/ |
D | sndhdr.py | 183 nsamples = get_long_le(h[8:12]) 185 return 'sndt', rate, 1, nsamples, 8
|
/external/tcpdump/ |
D | print-sflow.c | 879 uint32_t nsamples; in sflow_print() local 906 nsamples=EXTRACT_32BITS(sflow_datagram->samples); in sflow_print() 914 nsamples, in sflow_print() 921 while (nsamples > 0 && tlen > 0) { in sflow_print() 978 nsamples--; in sflow_print()
|
/external/python/cpython2/Doc/library/ |
D | al.rst | 157 .. method:: audio port.readsamps(nsamples)
|
/external/llvm/test/Transforms/LoopDeletion/ |
D | 2008-05-06-Phi.ll | 106 …r(%struct.lame_global_flags* %gfp, i16* %buffer_l, i16* %buffer_r, i32 %nsamples, i8* %mp3buf, i32…
|
/external/llvm-project/llvm/test/Transforms/LoopDeletion/ |
D | 2008-05-06-Phi.ll | 106 …r(%struct.lame_global_flags* %gfp, i16* %buffer_l, i16* %buffer_r, i32 %nsamples, i8* %mp3buf, i32…
|
/external/virglrenderer/tests/ |
D | test_virgl_transfer.c | 532 struct pipe_box *box, int nsamples, int large_flags) in get_resource_args() argument 546 args->nr_samples = nsamples; in get_resource_args()
|
/external/catch2/single_include/catch2/ |
D | catch.hpp | 7109 int nsamples = static_cast<int>(std::ceil(time_limit / r.elapsed)); in estimate_clock_cost() local 7110 times.reserve(nsamples); in estimate_clock_cost() 7111 std::generate_n(std::back_inserter(times), nsamples, [time_clock, &r] { in estimate_clock_cost()
|
/external/libabigail/tests/lib/ |
D | catch.hpp | 7141 int nsamples = static_cast<int>(std::ceil(time_limit / r.elapsed)); in estimate_clock_cost() local 7142 times.reserve(nsamples); in estimate_clock_cost() 7143 std::generate_n(std::back_inserter(times), nsamples, [time_clock, &r] { in estimate_clock_cost()
|