Home
last modified time | relevance | path

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

12345678910>>...108

/third_party/alsa-lib/src/pcm/
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 = *src >> 8; in mix_areas_32()
[all …]
Dplugin_ops.h370 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/
Dgstsample.c63 _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 …]
Dgstsample.h61 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/gettext/gettext-tools/examples/
Dcheck-examples116 sample="$1"
117 rm -rf "$sample.bak"
118 cp -a "$sample" "$sample.bak"
119 func_autogen "$sample"
120 func_autoclean "$sample"
121 …LC_ALL=C diff -r -q "$sample.bak" "$sample" | sed -n -e 's/^Only in //p' | sed -e 's|: |/|' > "$sa…
122 if ! test -s "$sample.out"; then
123 rm -f "$sample.out"
125 rm -rf "$sample.bak"
183 sample="$1"
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
Dhistogram_macros.h15 #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/
Dhistogram_macros.h15 #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/
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 += ((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 …]
Dffv1dec_template.c24 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()
122sample[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 …]
Ddpcm.c48 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 …]
/third_party/boost/libs/range/test/
Datl.cpp54 bool test_init_auto_ptr_array(ArrayT& arr, SampleRange& sample) in test_init_auto_ptr_array() argument
58 for (iter_t it = boost::begin(sample), last = boost::end(sample); it != last; ++it) { in test_init_auto_ptr_array()
62 return boost::distance(arr) == boost::distance(sample); in test_init_auto_ptr_array()
67 bool test_init_auto_ptr_list(ListT& lst, SampleRange& sample) in test_init_auto_ptr_list() argument
72 for (iter_t it = boost::begin(sample), last = boost::end(sample); it != last; ++it) { in test_init_auto_ptr_list()
76 return boost::distance(lst) == boost::distance(sample); in test_init_auto_ptr_list()
98 bool test_atl_map(AtlMapT& map, const MapT& sample) in test_atl_map() argument
105 result = result && (boost::distance(map) == boost::distance(sample)); in test_atl_map()
111 … result = result && brdm::test_find_key_and_mapped(sample, std::make_pair(it->m_key, it->m_value)); in test_atl_map()
116 for (siter_t it = boost::begin(sample), last = boost::end(sample); it != last; ++it) { in test_atl_map()
[all …]
Dmfc.cpp52 bool test_mfc_map(MfcMapT& map, const MapT& sample) in test_mfc_map() argument
59 result = result && (boost::distance(map) == boost::distance(sample)); in test_mfc_map()
65 result = result && brdm::test_find_key_and_mapped(sample, *it); in test_mfc_map()
70 for (siter_t it = boost::begin(sample), last = boost::end(sample); it != last; ++it) { in test_mfc_map()
80 bool test_mfc_cpair_map(MfcMapT& map, const MapT& sample) in test_mfc_cpair_map() argument
87 result = result && (boost::distance(map) == boost::distance(sample)); in test_mfc_cpair_map()
93 … result = result && brdm::test_find_key_and_mapped(sample, std::make_pair(it->key, it->value)); in test_mfc_cpair_map()
98 for (siter_t it = boost::begin(sample), last = boost::end(sample); it != last; ++it) { in test_mfc_cpair_map()
110 void test_CByteArray(const Range& sample) in test_CByteArray() argument
119 BOOST_CHECK( brdm::test_init_array(rng, sample) ); in test_CByteArray()
[all …]
/third_party/flatbuffers/samples/
Dsample_binary.go22 sample "MyGame/Sample" packageName
36 sample.WeaponStart(builder)
37 sample.WeaponAddName(builder, weaponOne)
38 sample.WeaponAddDamage(builder, 3)
39 sword := sample.WeaponEnd(builder)
41 sample.WeaponStart(builder)
42 sample.WeaponAddName(builder, weaponTwo)
43 sample.WeaponAddDamage(builder, 5)
44 axe := sample.WeaponEnd(builder)
49 sample.MonsterStartInventoryVector(builder, 10)
[all …]
/third_party/grpc/src/objective-c/examples/
DBUILD108 name = "tvOS-sample-lib",
109 srcs = glob(["tvOS-sample/tvOS-sample/**/*.m"]),
110 hdrs = glob(["tvOS-sample/tvOS-sample/**/*.h"]),
112 "tvOS-sample/tvOS-sample/Base.lproj/**",
113 "tvOS-sample/tvOS-sample/Images.xcassets/**",
119 name = "tvOS-sample",
120 bundle_id = "io.grpc.tvOS-sample",
121 infoplists = ["tvOS-sample/tvOS-sample/Info.plist"],
123 deps = [":tvOS-sample-lib"],
127 name = "watchOS-sample-iOS-lib",
[all …]
/third_party/pulseaudio/src/modules/dbus/
Diface-sample.c36 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/
Dflacdec.c25 _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/grpc/src/objective-c/examples/watchOS-sample/watchOS-sample.xcodeproj/
Dproject.pbxproj10 …F7 /* libPods-watchOS-sample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D836D6D1793B03D9…
17 …E9 /* watchOS-sample WatchKit App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = A…
20 … watchOS-sample WatchKit Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef…
23 …ods-watchOS-sample WatchKit Extension.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C68E1F9…
32 remoteInfo = "watchOS-sample WatchKit App";
39 remoteInfo = "watchOS-sample WatchKit Extension";
50 AB35435922F3A88000C1B2E9 /* watchOS-sample WatchKit Extension.appex in Embed App Extensions */,
61 AB35434A22F3A88000C1B2E9 /* watchOS-sample WatchKit App.app in Embed Watch Content */,
69sample WatchKit Extension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastK…
70sample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text…
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/audio/sun/
DSDL_sunaudio.c54 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/
Dalaw_test.c37 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 …]
Dulaw_test.c37 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/
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_MAX) { in writePCM16()
[all …]
/third_party/grpc/src/objective-c/examples/tvOS-sample/tvOS-sample.xcodeproj/
Dproject.pbxproj10 …39A074 /* libPods-tvOS-sample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E06AA8437E1C07D…
18sample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.x…
19 …4 /* libPods-tvOS-sample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInI…
20sample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text…
21 …0418B42 /* tvOS-sample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; i…
36 02EBA696CC670AE7C839A074 /* libPods-tvOS-sample.a in Frameworks */,
46 4E06AA8437E1C07D35F65494 /* libPods-tvOS-sample.a */,
54 48F25040998C073D575D8368 /* Pods-tvOS-sample.debug.xcconfig */,
55 6DEA6A97511C324413DA4309 /* Pods-tvOS-sample.release.xcconfig */,
63 AB065AF822F3A66000418B42 /* tvOS-sample */,
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
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 = graveyard_.dead; in PopDead() local
127 if (sample == &graveyard_) return nullptr; in PopDead()
[all …]
/third_party/abseil-cpp/absl/container/internal/
Dhashtablez_sampler.cc100 void HashtablezSampler::PushNew(HashtablezInfo* sample) { in PushNew() argument
101 sample->next = all_.load(std::memory_order_relaxed); in PushNew()
102 while (!all_.compare_exchange_weak(sample->next, sample, in PushNew()
108 void HashtablezSampler::PushDead(HashtablezInfo* sample) { in PushDead() argument
110 dispose(*sample); in PushDead()
114 absl::MutexLock sample_lock(&sample->init_mu); in PushDead()
115 sample->dead = graveyard_.dead; in PushDead()
116 graveyard_.dead = sample; in PushDead()
125 HashtablezInfo* sample = graveyard_.dead; in PopDead() local
126 if (sample == &graveyard_) return nullptr; in PopDead()
[all …]
/third_party/gstreamer/gstplugins_good/gst/law/
Dmulaw-conversion.c56 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()

12345678910>>...108