/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/gstreamer/gstreamer/gst/ |
D | gstsample.c | 63 _gst_sample_copy (GstSample * sample) in _gst_sample_copy() argument 67 copy = gst_sample_new (sample->buffer, sample->caps, &sample->segment, in _gst_sample_copy() 68 (sample->info) ? gst_structure_copy (sample->info) : NULL); in _gst_sample_copy() 70 if (sample->buffer_list) { in _gst_sample_copy() 71 copy->buffer_list = gst_buffer_list_ref (sample->buffer_list); in _gst_sample_copy() 80 _gst_sample_free (GstSample * sample) in _gst_sample_free() argument 82 GST_LOG ("free %p", sample); in _gst_sample_free() 84 if (sample->buffer) { in _gst_sample_free() 85 gst_mini_object_remove_parent (GST_MINI_OBJECT_CAST (sample->buffer), in _gst_sample_free() 86 GST_MINI_OBJECT_CAST (sample)); in _gst_sample_free() [all …]
|
D | gstsample.h | 61 GstBuffer * gst_sample_get_buffer (GstSample *sample); 64 GstCaps * gst_sample_get_caps (GstSample *sample); 67 GstSegment * gst_sample_get_segment (GstSample *sample); 70 const GstStructure * gst_sample_get_info (GstSample *sample); 73 GstBufferList * gst_sample_get_buffer_list (GstSample *sample); 76 void gst_sample_set_buffer_list (GstSample *sample, GstBufferList *buffer_list); 79 void gst_sample_set_buffer (GstSample *sample, GstBuffer *buffer); 82 void gst_sample_set_caps (GstSample *sample, GstCaps *caps); 85 void gst_sample_set_segment (GstSample * sample, const GstSegment *segment); 88 gboolean gst_sample_set_info (GstSample *sample, GstStructure *info); [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 | 48 int sample[2]; ///< previous sample (for SOL_DPCM) member 140 s->sample[0] = s->sample[1] = 0; in dpcm_decode_init() 157 s->sample[0] = s->sample[1] = 0x80; in dpcm_decode_init() 161 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/flutter/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/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/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/gstreamer/gstplugins_good/tests/check/pipelines/ |
D | flacdec.c | 25 _get_first_sample (GstSample * sample) in _get_first_sample() argument 33 fail_unless (sample != NULL, "NULL sample"); in _get_first_sample() 35 caps = gst_sample_get_caps (sample); in _get_first_sample() 38 buf = gst_sample_get_buffer (sample); in _get_first_sample() 68 GstSample *sample = NULL; in GST_START_TEST() local 90 g_signal_emit_by_name (appsink, "pull-sample", &sample); in GST_START_TEST() 91 if (sample == NULL) in GST_START_TEST() 94 first_sample = _get_first_sample (sample); in GST_START_TEST() 96 size += gst_buffer_get_size (gst_sample_get_buffer (sample)); in GST_START_TEST() 98 gst_sample_unref (sample); in GST_START_TEST() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/audio/sun/ |
D | SDL_sunaudio.c | 54 static Uint8 snd2au(int sample); 365 snd2au(int sample) in snd2au() argument 370 if (sample < 0) { in snd2au() 371 sample = -sample; in snd2au() 377 if (sample < 32) { in snd2au() 378 sample = 0xF0 | (15 - sample / 2); in snd2au() 379 } else if (sample < 96) { in snd2au() 380 sample = 0xE0 | (15 - (sample - 32) / 4); in snd2au() 381 } else if (sample < 224) { in snd2au() 382 sample = 0xD0 | (15 - (sample - 96) / 8); in snd2au() [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/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/ffmpeg/libavfilter/ |
D | af_asoftclip.c | 150 float sample = src[n] * factor; in filter_flt() local 152 if (FFABS(sample) >= 1.5f) in filter_flt() 153 dst[n] = FFSIGN(sample); in filter_flt() 155 dst[n] = sample - 0.1481f * powf(sample, 3.f); in filter_flt() 167 float sample = src[n] * factor; in filter_flt() local 169 dst[n] = sample / (sqrtf(param + sample * sample)); in filter_flt() 175 float sample = src[n] * factor; in filter_flt() local 177 if (FFABS(sample) >= 1.25) in filter_flt() 178 dst[n] = FFSIGN(sample); in filter_flt() 180 dst[n] = sample - 0.08192f * powf(sample, 5.f); in filter_flt() [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/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/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/gstreamer/gstplugins_good/gst/law/ |
D | mulaw-conversion.c | 56 gint16 sample; in mulaw_encode() local 61 sample = in[i]; in mulaw_encode() 63 sign = (sample >> 8) & 0x80; /* set aside the sign */ in mulaw_encode() 65 sample = -sample; /* get magnitude */ in mulaw_encode() 69 if (((guint16) sample) > CLIP) in mulaw_encode() 70 sample = CLIP; /* clip the magnitude */ in mulaw_encode() 73 sample = sample + BIAS; in mulaw_encode() 74 exponent = exp_lut[(sample >> 7) & 0xFF]; in mulaw_encode() 75 mantissa = (sample >> (exponent + 3)) & 0x0F; in mulaw_encode()
|