/third_party/alsa-lib/src/pcm/ |
D | pcm_dmix_generic.c | 55 register signed int sample, old_sample; in mix_areas_16() local 58 sample = *src; in mix_areas_16() 61 sample -= old_sample; in mix_areas_16() 62 ARCH_ADD(sum, sample); in mix_areas_16() 66 sample = 0x7fff; in mix_areas_16() 68 sample = -0x8000; in mix_areas_16() 70 sample = old_sample; in mix_areas_16() 71 *dst = sample; in mix_areas_16() 86 register signed int sample, old_sample; in mix_areas_32() local 89 sample = *src >> 8; in mix_areas_32() [all …]
|
D | plugin_ops.h | 370 get16_1_10: sample = (uint16_t)as_u8c(src) << 8; goto GET16_END; 371 get16_1_90: sample = (uint16_t)(as_u8c(src) ^ 0x80) << 8; goto GET16_END; 372 get16_12_12: sample = as_u16c(src); goto GET16_END; 373 get16_12_92: sample = as_u16c(src) ^ 0x8000; goto GET16_END; 374 get16_12_21: sample = bswap_16(as_u16c(src)); goto GET16_END; 375 get16_12_A1: sample = bswap_16(as_u16c(src) ^ 0x80); goto GET16_END; 376 get16_0123_12: sample = as_u32c(src) >> 8; goto GET16_END; 377 get16_0123_92: sample = (as_u32c(src) >> 8) ^ 0x8000; goto GET16_END; 378 get16_1230_32: sample = bswap_16(as_u32c(src) >> 8); goto GET16_END; 379 get16_1230_B2: sample = bswap_16((as_u32c(src) >> 8) ^ 0x80); goto GET16_END; [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | histogram_macros.h | 15 #define ANGLE_HISTOGRAM_TIMES(name, sample) ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, 1, 10000, 50) argument 17 #define ANGLE_HISTOGRAM_MEDIUM_TIMES(name, sample) \ argument 18 ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, 10, 180000, 50) 21 #define ANGLE_HISTOGRAM_LONG_TIMES(name, sample) \ argument 22 ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, 1, 3600000, 50) 26 #define ANGLE_HISTOGRAM_LONG_TIMES_100(name, sample) \ argument 27 ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, 1, 3600000, 100) 31 #define ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument 32 ANGLE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) 34 #define ANGLE_HISTOGRAM_COUNTS(name, sample) \ argument [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | ws-snd1.c | 61 int sample = 128; in ws_snd_decode_frame() local 121 sample += ( code & 0x3) - 2; in ws_snd_decode_frame() 122 sample = av_clip_uint8(sample); in ws_snd_decode_frame() 123 *samples++ = sample; in ws_snd_decode_frame() 124 sample += ((code >> 2) & 0x3) - 2; in ws_snd_decode_frame() 125 sample = av_clip_uint8(sample); in ws_snd_decode_frame() 126 *samples++ = sample; in ws_snd_decode_frame() 127 sample += ((code >> 4) & 0x3) - 2; in ws_snd_decode_frame() 128 sample = av_clip_uint8(sample); in ws_snd_decode_frame() 129 *samples++ = sample; in ws_snd_decode_frame() [all …]
|
D | ffv1dec_template.c | 24 TYPE *sample[2], in RENAME() 45 sample[1][x] = v; in RENAME() 58 context = RENAME(get_context)(p, sample[1] + x, sample[0] + x, sample[1] + x); in RENAME() 89 if (sample[1][x - 1] == sample[0][x - 1]) { in RENAME() 91 sample[1][x] = sample[0][x]; in RENAME() 97 sample[1][x] = RENAME(predict)(sample[1] + x, sample[0] + x); in RENAME() 122 … sample[1][x] = av_mod_uintp2(RENAME(predict)(sample[1] + x, sample[0] + x) + (SUINT)diff, bits); in RENAME() 131 TYPE *sample[4][2]; in RENAME() local 138 sample[x][0] = RENAME(s->sample_buffer) + x * 2 * (w + 6) + 3; in RENAME() 139 sample[x][1] = RENAME(s->sample_buffer) + (x * 2 + 1) * (w + 6) + 3; in RENAME() [all …]
|
D | dpcm.c | 49 int sample[2]; ///< previous sample (for SOL_DPCM) member 141 s->sample[0] = s->sample[1] = 0; in dpcm_decode_init() 158 s->sample[0] = s->sample[1] = 0x80; in dpcm_decode_init() 162 s->sample[0] = s->sample[1] = 0x80; in dpcm_decode_init() 345 s->sample[0] += s->sol_table[n >> 4]; in dpcm_decode_frame() 346 s->sample[0] = av_clip_uint8(s->sample[0]); in dpcm_decode_frame() 347 *output_samples_u8++ = s->sample[0]; in dpcm_decode_frame() 349 s->sample[stereo] += s->sol_table[n & 0x0F]; in dpcm_decode_frame() 350 s->sample[stereo] = av_clip_uint8(s->sample[stereo]); in dpcm_decode_frame() 351 *output_samples_u8++ = s->sample[stereo]; in dpcm_decode_frame() [all …]
|
D | ffv1enc_template.c | 24 TYPE *sample[3], in RENAME() 49 int v = sample[0][x]; in RENAME() 61 context = RENAME(get_context)(p, sample[0] + x, sample[1] + x, sample[2] + x); in RENAME() 62 diff = sample[0][x] - RENAME(predict)(sample[0] + x, sample[1] + x); in RENAME() 130 TYPE *sample[4][3]; in RENAME() local 146 … sample[p][i]= RENAME(s->sample_buffer) + p*ring_size*(w+6) + ((h+i-y)%ring_size)*(w+6) + 3; in RENAME() 183 sample[0][0][x] = g; in RENAME() 184 sample[1][0][x] = b; in RENAME() 185 sample[2][0][x] = r; in RENAME() 186 sample[3][0][x] = a; in RENAME() [all …]
|
/third_party/pulseaudio/src/modules/dbus/ |
D | iface-sample.c | 36 pa_scache_entry *sample; member 146 idx = s->sample->index; in handle_get_index() 158 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_STRING, &s->sample->name); in handle_get_name() 169 if (!s->sample->memchunk.memblock) { in handle_get_sample_format() 171 … "Sample %s isn't loaded into memory yet, so its sample format is unknown.", s->sample->name); in handle_get_sample_format() 175 sample_format = s->sample->sample_spec.format; in handle_get_sample_format() 188 if (!s->sample->memchunk.memblock) { in handle_get_sample_rate() 190 … "Sample %s isn't loaded into memory yet, so its sample rate is unknown.", s->sample->name); in handle_get_sample_rate() 194 sample_rate = s->sample->sample_spec.rate; in handle_get_sample_rate() 208 if (!s->sample->memchunk.memblock) { in handle_get_channels() [all …]
|
/third_party/libsnd/tests/ |
D | alaw_test.c | 37 static unsigned char alaw_encode (int sample) ; 174 unsigned char alaw_encode (int sample) in alaw_encode() argument 198 sign = ((~sample) >> 8) & 0x80 ; /* set aside the sign */ in alaw_encode() 200 sample = -sample ; /* get magnitude */ in alaw_encode() 201 if (sample > ACLIP) in alaw_encode() 202 sample = ACLIP ; /* clip the magnitude */ in alaw_encode() 205 if (sample >= 256) in alaw_encode() 206 { exponent = exp_lut [(sample >> 8) & 0x7F] ; in alaw_encode() 207 mantissa = (sample >> (exponent + 3)) & 0x0F ; in alaw_encode() 211 Alawbyte = (sample >> 4) ; in alaw_encode() [all …]
|
D | ulaw_test.c | 37 static unsigned char ulaw_encode (int sample) ; 188 unsigned char ulaw_encode (int sample) in ulaw_encode() argument 212 sign = (sample >> 8) & 0x80 ; /* set aside the sign */ in ulaw_encode() 214 sample = -sample ; /* get magnitude */ in ulaw_encode() 215 if (sample > uCLIP) in ulaw_encode() 216 sample = uCLIP ; /* clip the magnitude */ in ulaw_encode() 219 sample = sample + uBIAS ; in ulaw_encode() 220 exponent = exp_lut [(sample >> 7) & 0xFF] ; in ulaw_encode() 221 mantissa = (sample >> (exponent + 3)) & 0x0F ; in ulaw_encode() 247 int sign, exponent, mantissa, sample ; in ulaw_decode() local [all …]
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/util/ |
D | WaveFileWriter.cpp | 93 int32_t sample = ((int) temp) + PCM24_MIN; in writePCM24() local 95 if (sample > PCM24_MAX) { in writePCM24() 96 sample = PCM24_MAX; in writePCM24() 97 } else if (sample < PCM24_MIN) { in writePCM24() 98 sample = PCM24_MIN; in writePCM24() 101 writeByte(sample); // little end in writePCM24() 102 writeByte(sample >> 8); // middle in writePCM24() 103 writeByte(sample >> 16); // big end in writePCM24() 110 int32_t sample = ((int) temp) + INT16_MIN; in writePCM16() local 111 if (sample > INT16_MAX) { in writePCM16() [all …]
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
D | ngtcp2_window_filter.c | 47 if (wf->estimates[0].sample == 0 || new_sample > wf->estimates[0].sample || in ngtcp2_window_filter_update() 53 if (new_sample > wf->estimates[1].sample) { in ngtcp2_window_filter_update() 54 wf->estimates[1].sample = new_sample; in ngtcp2_window_filter_update() 57 } else if (new_sample > wf->estimates[2].sample) { in ngtcp2_window_filter_update() 58 wf->estimates[2].sample = new_sample; in ngtcp2_window_filter_update() 65 wf->estimates[2].sample = new_sample; in ngtcp2_window_filter_update() 75 if (wf->estimates[1].sample == wf->estimates[0].sample && in ngtcp2_window_filter_update() 77 wf->estimates[2].sample = new_sample; in ngtcp2_window_filter_update() 83 if (wf->estimates[2].sample == wf->estimates[1].sample && in ngtcp2_window_filter_update() 85 wf->estimates[2].sample = new_sample; in ngtcp2_window_filter_update() [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/asm/frag/ |
D | vector-shuffle-oom.asm.frag | 106 … float3 _109 = float3(_11._m5) * fast::clamp(_8.sample(_9, _97, level(0.0)).w * _7._m1, 0.0, 1.0); 107 float4 _113 = _12.sample(_13, _97, level(0.0)); 112 _129 = _109 + (_14.sample(_15, _97, level(0.0)).xyz * fast::clamp(_114 * _113.z, 0.0, 1.0)); 119 … float3 _156 = float3(_11._m5) * fast::clamp(_8.sample(_9, _144, level(0.0)).w * _7._m1, 0.0, 1.0); 120 float4 _160 = _12.sample(_13, _144, level(0.0)); 125 … _176 = _156 + (_14.sample(_15, _144, level(0.0)).xyz * fast::clamp(_161 * _160.z, 0.0, 1.0)); 132 … float3 _203 = float3(_11._m5) * fast::clamp(_8.sample(_9, _191, level(0.0)).w * _7._m1, 0.0, 1.0); 133 float4 _207 = _12.sample(_13, _191, level(0.0)); 138 … _223 = _203 + (_14.sample(_15, _191, level(0.0)).xyz * fast::clamp(_208 * _207.z, 0.0, 1.0)); 145 … float3 _250 = float3(_11._m5) * fast::clamp(_8.sample(_9, _238, level(0.0)).w * _7._m1, 0.0, 1.0); [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | hashtablez_sampler.cc | 101 void HashtablezSampler::PushNew(HashtablezInfo* sample) { in PushNew() argument 102 sample->next = all_.load(std::memory_order_relaxed); in PushNew() 103 while (!all_.compare_exchange_weak(sample->next, sample, in PushNew() 109 void HashtablezSampler::PushDead(HashtablezInfo* sample) { in PushDead() argument 111 dispose(*sample); in PushDead() 115 absl::MutexLock sample_lock(&sample->init_mu); in PushDead() 116 sample->dead = graveyard_.dead; in PushDead() 117 graveyard_.dead = sample; in PushDead() 126 HashtablezInfo* sample = graveyard_.dead; in PopDead() local 127 if (sample == &graveyard_) return nullptr; in PopDead() [all …]
|
/third_party/openGLES/extensions/NV/ |
D | NV_sample_locations.txt | 43 applications to specify different sample locations for each pixel in a 49 by storing values that can be used to reconstruct depth at each sample 50 location, rather than storing separate depth values for each sample. For 52 plane equations. When the depth value for a sample is needed, it is 53 automatically evaluated at the sample location. Modifying the sample 56 provides a command to "resolve" and store per-sample depth values using 57 the currently programmed sample locations, which allows the application to 60 The programmable sample locations are used during rasterization and for 64 texture the texture sampling may be done at the standard sample 67 standard sample locations to resolve depth functions rather than the [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/ |
D | NV_sample_locations.txt | 43 applications to specify different sample locations for each pixel in a 49 by storing values that can be used to reconstruct depth at each sample 50 location, rather than storing separate depth values for each sample. For 52 plane equations. When the depth value for a sample is needed, it is 53 automatically evaluated at the sample location. Modifying the sample 56 provides a command to "resolve" and store per-sample depth values using 57 the currently programmed sample locations, which allows the application to 60 The programmable sample locations are used during rasterization and for 64 texture the texture sampling may be done at the standard sample 67 standard sample locations to resolve depth functions rather than the [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
D | clock.cc | 264 struct TimeSample *sample) { in ReadTimeSampleAtomic() argument 265 sample->base_ns = atomic->base_ns.load(std::memory_order_relaxed); in ReadTimeSampleAtomic() 266 sample->base_cycles = atomic->base_cycles.load(std::memory_order_relaxed); in ReadTimeSampleAtomic() 267 sample->nsscaled_per_cycle = in ReadTimeSampleAtomic() 269 sample->min_cycles_per_sample = in ReadTimeSampleAtomic() 271 sample->raw_ns = atomic->raw_ns.load(std::memory_order_relaxed); in ReadTimeSampleAtomic() 384 const struct TimeSample *sample) ABSL_ATTRIBUTE_COLD; 415 struct TimeSample sample; in GetCurrentTimeNanosSlowPath() local 416 ReadTimeSampleAtomic(&time_state.last_sample, &sample); in GetCurrentTimeNanosSlowPath() 421 uint64_t delta_cycles = now_cycles - sample.base_cycles; in GetCurrentTimeNanosSlowPath() [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | af_asoftclip.c | 187 float sample = dst[n] * factor; in filter_flt() local 189 if (FFABS(sample) >= 1.5f) in filter_flt() 190 dst[n] = FFSIGN(sample); in filter_flt() 192 dst[n] = sample - 0.1481f * powf(sample, 3.f); in filter_flt() 204 float sample = dst[n] * factor; in filter_flt() local 206 dst[n] = sample / (sqrtf(param + sample * sample)); in filter_flt() 212 float sample = dst[n] * factor; in filter_flt() local 214 if (FFABS(sample) >= 1.25) in filter_flt() 215 dst[n] = FFSIGN(sample); in filter_flt() 217 dst[n] = sample - 0.08192f * powf(sample, 5.f); in filter_flt() [all …]
|
/third_party/openGLES/extensions/ARB/ |
D | ARB_sample_locations.txt | 59 applications to specify different sample locations for each pixel in a 65 by storing values that can be used to reconstruct depth at each sample 66 location, rather than storing separate depth values for each sample. For 68 plane equations. When the depth value for a sample is needed, it is 69 automatically evaluated at the sample location. Modifying the sample 72 provides a command to "evaluate" and store per-sample depth values using 73 the currently programmed sample locations, which allows the application to 76 The programmable sample locations are used during rasterization and for 80 texture the texture sampling may be done at the standard sample 83 standard sample locations to evaluate depth functions rather than the [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/ |
D | ARB_sample_locations.txt | 49 applications to specify different sample locations for each pixel in a 55 by storing values that can be used to reconstruct depth at each sample 56 location, rather than storing separate depth values for each sample. For 58 plane equations. When the depth value for a sample is needed, it is 59 automatically evaluated at the sample location. Modifying the sample 62 provides a command to "evaluate" and store per-sample depth values using 63 the currently programmed sample locations, which allows the application to 66 The programmable sample locations are used during rasterization and for 70 texture the texture sampling may be done at the standard sample 73 standard sample locations to evaluate depth functions rather than the [all …]
|
/third_party/ffmpeg/libavformat/ |
D | movenchint.c | 100 int sample) in sample_queue_push() argument 116 queue->samples[queue->len].sample_number = sample; in sample_queue_push() 129 HintSample *sample = &queue->samples[i]; in sample_queue_retain() local 130 if (!sample->own_data) { in sample_queue_retain() 131 uint8_t *ptr = av_malloc(sample->size); in sample_queue_retain() 139 memcpy(ptr, sample->data, sample->size); in sample_queue_retain() 140 sample->data = ptr; in sample_queue_retain() 141 sample->own_data = 1; in sample_queue_retain() 221 HintSample *sample = &queue->samples[0]; in find_sample_match() local 224 if (sample->offset == 0 && sample->size > 5) in find_sample_match() [all …]
|
/third_party/node/deps/v8/src/profiler/ |
D | symbolizer.cc | 47 const TickSample& sample) { in SymbolizeTickSample() argument 51 stack_trace.reserve(sample.frames_count + 3); in SymbolizeTickSample() 62 if (sample.pc != nullptr) { in SymbolizeTickSample() 63 if (sample.has_external_callback && sample.state == EXTERNAL) { in SymbolizeTickSample() 68 {FindEntry(reinterpret_cast<Address>(sample.external_callback_entry)), in SymbolizeTickSample() 71 Address attributed_pc = reinterpret_cast<Address>(sample.pc); in SymbolizeTickSample() 78 if (!pc_entry && !sample.has_external_callback) { in SymbolizeTickSample() 79 attributed_pc = reinterpret_cast<Address>(sample.tos); in SymbolizeTickSample() 105 if (!sample.has_external_callback) { in SymbolizeTickSample() 115 for (unsigned i = 0; i < sample.frames_count; ++i) { in SymbolizeTickSample() [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/asm/frag/ |
D | vector-shuffle-oom.asm.frag | 136 … float3 _109 = float3(_11._m5) * fast::clamp(_8.sample(_9, _97, level(0.0)).w * _7._m1, 0.0, 1.0); 137 float4 _113 = _12.sample(_13, _97, level(0.0)); 141 … _129 = _109 + (_14.sample(_15, _97, level(0.0)).xyz * fast::clamp(_113.y * _113.z, 0.0, 1.0)); 152 … float3 _156 = float3(_11._m5) * fast::clamp(_8.sample(_9, _144, level(0.0)).w * _7._m1, 0.0, 1.0); 153 float4 _160 = _12.sample(_13, _144, level(0.0)); 157 … _176 = _156 + (_14.sample(_15, _144, level(0.0)).xyz * fast::clamp(_160.y * _160.z, 0.0, 1.0)); 168 … float3 _203 = float3(_11._m5) * fast::clamp(_8.sample(_9, _191, level(0.0)).w * _7._m1, 0.0, 1.0); 169 float4 _207 = _12.sample(_13, _191, level(0.0)); 173 … _223 = _203 + (_14.sample(_15, _191, level(0.0)).xyz * fast::clamp(_207.y * _207.z, 0.0, 1.0)); 184 … float3 _250 = float3(_11._m5) * fast::clamp(_8.sample(_9, _238, level(0.0)).w * _7._m1, 0.0, 1.0); [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/OES/ |
D | OES_shader_multisample_interpolation.txt | 55 assign the same sets of fragment shader input values to each sample. 60 This extension adds the "sample" qualifier that can be used on vertex 61 outputs and fragment inputs. When the "sample" qualifier is used, the 62 fragment shader is invoked separately for each covered sample and 64 sample point. 69 center, a specific sample number, or at the centroid. 103 "sample in", the data associated with those variables will be assigned 104 independently. The values for each sample must be evaluated at the 105 location of the sample. The data associated with any other variables not 106 qualified with "sample in" need not be evaluated independently for each [all …]
|
/third_party/openGLES/extensions/OES/ |
D | OES_shader_multisample_interpolation.txt | 65 assign the same sets of fragment shader input values to each sample. 70 This extension adds the "sample" qualifier that can be used on vertex 71 outputs and fragment inputs. When the "sample" qualifier is used, the 72 fragment shader is invoked separately for each covered sample and 74 sample point. 79 center, a specific sample number, or at the centroid. 113 "sample in", the data associated with those variables will be assigned 114 independently. The values for each sample must be evaluated at the 115 location of the sample. The data associated with any other variables not 116 qualified with "sample in" need not be evaluated independently for each [all …]
|