Home
last modified time | relevance | path

Searched refs:sample (Results 1 - 25 of 787) sorted by relevance

12345678910>>...32

/third_party/alsa-lib/src/pcm/
H A Dpcm_dmix_generic.c55 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 in mix_areas_32()
137 register signed int sample; generic_mix_areas_16_native() local
169 register signed int sample; generic_remix_areas_16_native() local
200 register signed int sample; generic_mix_areas_32_native() local
234 register signed int sample; generic_remix_areas_32_native() local
267 register signed int sample; generic_mix_areas_16_swap() local
299 register signed int sample; generic_remix_areas_16_swap() local
330 register signed int sample; generic_mix_areas_32_swap() local
364 register signed int sample; generic_remix_areas_32_swap() local
398 register signed int sample; generic_mix_areas_24() local
431 register signed int sample; generic_remix_areas_24() local
465 register int sample = *src - 0x80; generic_mix_areas_u8() local
494 register int sample = *src - 0x80; generic_remix_areas_u8() local
[all...]
H A Dplugin_ops.h2 * Plugin sample operators with fast switch
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
[all...]
/third_party/ffmpeg/libavcodec/
H A Dws-snd1.c61 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 in ws_snd_decode_frame()
[all...]
H A Dffv1dec_template.c24 TYPE *sample[2], in decode_line()
45 sample[1][x] = v; in decode_line()
58 context = RENAME(get_context)(p, sample[1] + x, sample[0] + x, sample[1] + x); in decode_line()
89 if (sample[1][x - 1] == sample[0][x - 1]) { in decode_line()
91 sample[1][x] = sample[0][x]; in decode_line()
97 sample[ in decode_line()
23 decode_line(FFV1Context *s, int w, TYPE *sample[2], int plane_index, int bits) decode_line() argument
131 TYPE *sample[4][2]; decode_rgb_frame() local
[all...]
H A Dffv1enc_template.c24 TYPE *sample[3], in encode_line()
49 int v = sample[0][x]; in encode_line()
61 context = RENAME(get_context)(p, sample[0] + x, sample[1] + x, sample[2] + x); in encode_line()
62 diff = sample[0][x] - RENAME(predict)(sample[0] + x, sample[1] + x); in encode_line()
130 TYPE *sample[4][3]; in encode_rgb_frame() local
146 sample[ in encode_rgb_frame()
23 encode_line(FFV1Context *s, int w, TYPE *sample[3], int plane_index, int bits) encode_line() argument
[all...]
H A Ddpcm.c49 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[ in dpcm_decode_frame()
[all...]
H A Dflacdsp_template.c26 #undef sample macro
39 # define sample sample_type * macro
44 # define sample sample_type macro
54 sample *samples = (sample *) OUT(out); in flac_decorrelate_indep_c()
65 sample *samples = (sample *) OUT(out); in flac_decorrelate_ls_c()
79 sample *samples = (sample *) OUT(out); in flac_decorrelate_rs_c()
93 sample *sample in flac_decorrelate_ms_c()
[all...]
H A Dmfenc.c119 static void mf_sample_set_pts(AVCodecContext *avctx, IMFSample *sample, int64_t av_pts) in mf_sample_set_pts() argument
123 IMFSample_SetSampleTime(sample, stime); in mf_sample_set_pts()
131 static int64_t mf_sample_get_pts(AVCodecContext *avctx, IMFSample *sample) in mf_sample_get_pts() argument
134 HRESULT hr = IMFSample_GetSampleTime(sample, &pts); in mf_sample_get_pts()
233 static int mf_sample_to_avpacket(AVCodecContext *avctx, IMFSample *sample, AVPacket *avpkt) in mf_sample_to_avpacket() argument
244 hr = IMFSample_GetTotalLength(sample, &len); in mf_sample_to_avpacket()
251 IMFSample_ConvertToContiguousBuffer(sample, &buffer); in mf_sample_to_avpacket()
266 avpkt->pts = avpkt->dts = mf_sample_get_pts(avctx, sample); in mf_sample_to_avpacket()
268 hr = IMFAttributes_GetUINT32(sample, &MFSampleExtension_CleanPoint, &t32); in mf_sample_to_avpacket()
272 hr = IMFAttributes_GetUINT64(sample, in mf_sample_to_avpacket()
293 IMFSample *sample; mf_a_avframe_to_sample() local
308 IMFSample *sample; mf_v_avframe_to_sample() local
355 IMFSample *sample; mf_avframe_to_sample() local
369 mf_send_sample(AVCodecContext *avctx, IMFSample *sample) mf_send_sample() argument
413 IMFSample *sample; mf_receive_sample() local
492 IMFSample *sample = NULL; mf_receive_packet() local
[all...]
H A Ddvaudiodec.c68 static inline uint16_t dv_audio_12to16(uint16_t sample) in dv_audio_12to16() argument
72 sample = (sample < 0x800) ? sample : sample | 0xf000; in dv_audio_12to16()
73 shift = (sample & 0xf00) >> 8; in dv_audio_12to16()
76 result = sample; in dv_audio_12to16()
79 result = (sample - (256 * shift)) << shift; in dv_audio_12to16()
82 result = ((sample + ((256 * shift) + 1)) << shift) - 1; in dv_audio_12to16()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A Dhistogram_macros.h15 #define ANGLE_HISTOGRAM_TIMES(name, sample) ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, 1, 10000, 50)
17 #define ANGLE_HISTOGRAM_MEDIUM_TIMES(name, sample) \
18 ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, 10, 180000, 50)
21 #define ANGLE_HISTOGRAM_LONG_TIMES(name, sample) \
22 ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, 1, 3600000, 50)
26 #define ANGLE_HISTOGRAM_LONG_TIMES_100(name, sample) \
27 ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, 1, 3600000, 100)
31 #define ANGLE_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
32 ANGLE_HISTOGRAM_CUSTOM_COUNTS(name, sample, mi
[all...]
/third_party/pulseaudio/src/modules/dbus/
H A Diface-sample.c29 #include "iface-sample.h"
31 #define OBJECT_NAME "sample"
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 in handle_get_sample_rate()
456 pa_scache_entry *sample = call_data; sample_cache_changed_cb() local
483 pa_dbusiface_sample_new(pa_dbusiface_core *core, pa_scache_entry *sample) pa_dbusiface_sample_new() argument
[all...]
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/util/
H A DWaveFileWriter.cpp93 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_MA in writePCM16()
[all...]
/third_party/libsnd/tests/
H A Dalaw_test.c37 static unsigned char alaw_encode (int sample) ;
63 /* Generate a file containing all possible 16 bit sample values in main()
73 /* Now open that file and compare the alaw encoded sample values in main()
93 { printf ("Encoder error : sample #%d (0x%02X should be 0x%02X)\n", k, alaw_buffer [k], alaw_encode (short_buffer [k])) ; in main()
103 ** sample values and write it to disk as alaw encoded.frames. in main()
118 /* Now open that file and compare the alaw decoded sample values in main()
139 { printf ("Decoder error : sample #%d (0x%02X should be 0x%02X)\n", k, short_buffer [k], alaw_decode (alaw_buffer [k])) ; in main()
174 unsigned char alaw_encode (int sample) in alaw_encode() argument
197 /* Get the sample into sign-magnitude. */ in alaw_encode()
198 sign = ((~sample) >> in alaw_encode()
221 int sign, exponent, mantissa, sample ; alaw_decode() local
[all...]
H A Dulaw_test.c37 static unsigned char ulaw_encode (int sample) ;
63 /* Generate a file containing all possible 16 bit sample values in main()
73 /* Now open that file and compare the ulaw encoded sample values in main()
93 { printf ("Encoder error : sample #%d (0x%02X should be 0x%02X)\n", k, ulaw_buffer [k], ulaw_encode (short_buffer [k])) ; in main()
104 ** sample values and write it to disk as ulaw encoded.frames. in main()
119 /* Now open that file and compare the ulaw decoded sample values in main()
140 { printf ("Decoder error : sample #%d (0x%04X should be 0x%04X)\n", k, short_buffer [k], ulaw_decode (ulaw_buffer [k])) ; in main()
180 ** Input: Signed 16 bit linear sample
181 ** Output: 8 bit ulaw sample
188 unsigned char ulaw_encode (int sample) in ulaw_encode() argument
247 int sign, exponent, mantissa, sample ; ulaw_decode() local
[all...]
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_window_filter.c47 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 in ngtcp2_window_filter_update()
[all...]
/third_party/node/deps/v8/src/profiler/
H A Dsymbolizer.cc10 #include "src/profiler/tick-sample.h"
47 const TickSample& sample) { in SymbolizeTickSample()
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 in SymbolizeTickSample()
46 SymbolizeTickSample( const TickSample& sample) SymbolizeTickSample() argument
[all...]
H A Dsampling-heap-profiler.cc21 // We sample with a Poisson process, with constant average sampling interval.
40 // we sample at rate R, the probability that an allocation of size S will be
88 auto sample = in SampleObject() local
90 sample->global.SetWeak(sample.get(), OnWeakCallback, in SampleObject()
92 samples_.emplace(sample.get(), std::move(sample)); in SampleObject()
97 Sample* sample = data.GetParameter(); in OnWeakCallback() local
98 AllocationNode* node = sample->owner; in OnWeakCallback()
99 DCHECK_GT(node->allocations_[sample in OnWeakCallback()
284 const Sample* sample = it.second.get(); BuildSamples() local
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
H A Dhashtablez_sampler.cc101 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 in PopDead() local
143 HashtablezInfo* sample = PopDead(); Register() local
153 Unregister(HashtablezInfo* sample) Unregister() argument
[all...]
/third_party/ffmpeg/libavfilter/
H A Daf_asoftclip.c187 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 in filter_flt() local
223 float sample = dst[n] * factor; filter_flt() local
312 double sample = dst[n] * factor; filter_dbl() local
329 double sample = dst[n] * factor; filter_dbl() local
337 double sample = dst[n] * factor; filter_dbl() local
348 double sample = dst[n] * factor; filter_dbl() local
[all...]
H A Daf_deesser.c121 double sample = src[i]; in filter_frame() local
125 dec->s1 = sample; in filter_frame()
135 offset = 1.0 - fabs(sample); in filter_frame()
139 (sample * (offset * iirAmount)); in filter_frame()
147 sample = dec->iirSampleA + ((sample - dec->iirSampleA) / dec->ratioA); in filter_frame()
150 (sample * (offset * iirAmount)); in filter_frame()
158 sample = dec->iirSampleB + ((sample - dec->iirSampleB) / dec->ratioB); in filter_frame()
164 sample in filter_frame()
[all...]
/third_party/libsnd/src/
H A Dtxw.c85 * atc_length[3] if sample rate 0, [2]&0xfe = 6: 33kHz, 0x10:50, 0xf6: 16,
140 /* Jump 6 bytes (dummp_aeg), read format, read sample rate. */ in txw_read_header()
241 short sample ; in txw_read_s() local
253 { sample = (ucptr [0] << 8) | (ucptr [1] & 0xF0) ; in txw_read_s()
254 ptr [total + k] = sample ; in txw_read_s()
255 sample = (ucptr [2] << 8) | ((ucptr [1] & 0xF) << 4) ; in txw_read_s()
256 ptr [total + k + 1] = sample ; in txw_read_s()
271 short sample ; in txw_read_i() local
283 { sample = (ucptr [0] << 8) | (ucptr [1] & 0xF0) ; in txw_read_i()
284 ptr [total + k] = sample << 1 in txw_read_i()
301 short sample ; txw_read_f() local
337 short sample ; txw_read_d() local
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
H A DSamplerCore.hpp46 SamplerFunction(SamplerMethod method, bool offset = false, bool sample = false) in SamplerFunction()
49 , sample(sample) in SamplerFunction()
56 const bool sample; member
64 Vector4f sampleTexture(Pointer<Byte> &texture, Float4 uvwa[4], Float4 &q, Float &&lodOrBias, Float4 &dsx, Float4 &dsy, Vector4i &offset, Int4 &sample, SamplerFunction function);
69 Vector4s sampleFilter(Pointer<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, const Float4 &a, Vector4i &offset, const Int4 &sample, Float &lod, Float &anisotropy, Float4 &uDelta, Float4 &vDelta, SamplerFunction function);
70 Vector4s sampleAniso(Pointer<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, const Float4 &a, Vector4i &offset, const Int4 &sample, Float &lod, Float &anisotropy, Float4 &uDelta, Float4 &vDelta, bool secondLOD, SamplerFunction function);
71 Vector4s sampleQuad(Pointer<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, const Float4 &a, Vector4i &offset, const Int4 &sample, Float &lod, bool secondLOD, SamplerFunction function);
72 Vector4s sampleQuad2D(Pointer<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, const Float4 &a, Vector4i &offset, const Int4 &sample, Float &lod, bool secondLOD, SamplerFunction function);
73 Vector4s sample3D(Pointer<Byte> &texture, Float4 &u, Float4 &v, Float4 &w, Vector4i &offset, const Int4 &sample, Floa
[all...]
/third_party/ffmpeg/libavformat/
H A Dmovenchint.c68 * Remove the first sample from the sample queue.
81 * Empty the sample queue, releasing all memory.
95 * Add a reference to the sample data to the sample queue. The data is
100 int sample) in sample_queue_push()
116 queue->samples[queue->len].sample_number = sample; in sample_queue_push()
123 * Make local copies of all referenced sample data in the queue.
129 HintSample *sample = &queue->samples[i]; in sample_queue_retain() local
130 if (!sample in sample_queue_retain()
99 sample_queue_push(HintSampleQueue *queue, const uint8_t *data, int size, int sample) sample_queue_push() argument
221 HintSample *sample = &queue->samples[0]; find_sample_match() local
400 ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt, int track_index, int sample, uint8_t *sample_data, int sample_size) ff_mov_add_hinted_packet() argument
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
H A Dclock.cc142 // We pick enough time to amortize the cost of the sample,
153 // data from a sample of the kernel's time value
159 // cycles before we'll sample again (a scaled reciprocal of the period,
169 uint64_t min_cycles_per_sample = 0; // approx cycles before next sample
174 TimeSampleAtomic last_sample; // the last sample; under seq
260 // Read the contents of *atomic into *sample.
264 struct TimeSample *sample) {
265 sample->base_ns = atomic->base_ns.load(std::memory_order_relaxed);
266 sample->base_cycles = atomic->base_cycles.load(std::memory_order_relaxed);
267 sample
[all...]
/third_party/alsa-lib/test/
H A Dmixtest.c109 s32 sample = *sum; in saturate() local
110 if (unlikely(sample < -0x8000)) in saturate()
112 else if (unlikely(sample > 0x7fff)) in saturate()
115 *dst = sample; in saturate()
132 s32 sample = *dst + *src; in mix_areas0() local
133 if (unlikely(sample < -0x8000)) in mix_areas0()
135 else if (unlikely(sample > 0x7fff)) in mix_areas0()
138 *dst = sample; in mix_areas0()
166 s32 sample = *src; in mix_areas2() local
169 sample in mix_areas2()
[all...]

Completed in 12 milliseconds

12345678910>>...32