Home
last modified time | relevance | path

Searched refs:bat (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/third_party/alsa-utils/bat/
Dbat.c47 static void get_snr_thd_db(struct bat *bat, char *thd) in get_snr_thd_db() argument
56 fprintf(bat->err, _("Invalid threshold '%s':%d\n"), thd, err); in get_snr_thd_db()
59 bat->snr_thd_db = thd_db; in get_snr_thd_db()
63 static void get_snr_thd_pc(struct bat *bat, char *thd) in get_snr_thd_pc() argument
72 fprintf(bat->err, _("Invalid threshold '%s':%d\n"), thd, err); in get_snr_thd_pc()
75 bat->snr_thd_db = 20.0 * log10f(100.0 / thd_pc); in get_snr_thd_pc()
78 static int get_duration(struct bat *bat) in get_duration() argument
85 duration_f = strtof(bat->narg, &ptrf); in get_duration()
91 duration_i = strtol(bat->narg, &ptri, 10); in get_duration()
96 bat->frames = duration_f * bat->rate; in get_duration()
[all …]
Dlatencytest.c34 static float sumaudio(struct bat *bat, short int *buffer, int frames) in sumaudio() argument
42 for (n = 0; n < bat->channels; n++) { in sumaudio()
48 sum = sum / bat->channels; in sumaudio()
53 static void play_and_listen(struct bat *bat, void *buffer, int frames) in play_and_listen() argument
61 int num = bat->latency.number; in play_and_listen()
63 averageinput = (int) (sumaudio(bat, buffer, frames) / frames); in play_and_listen()
67 if (averageinput > bat->latency.threshold) { in play_and_listen()
72 if (*input++ > bat->latency.threshold) in play_and_listen()
74 *input += bat->channels; in play_and_listen()
79 bat->latency.samples += n; in play_and_listen()
[all …]
Dtinyalsa.c43 static int format_convert(struct bat *bat, struct pcm_config *config) in format_convert() argument
48 if (t->format_bat == bat->format) { in format_convert()
53 fprintf(bat->err, _("Invalid format!\n")); in format_convert()
57 static int init_config(struct bat *bat, struct pcm_config *config) in init_config() argument
59 config->channels = bat->channels; in init_config()
60 config->rate = bat->rate; in init_config()
61 if (bat->period_size > 0) in init_config()
62 config->period_size = bat->period_size; in init_config()
70 return format_convert(bat, config); in init_config()
87 static int check_param(struct bat *bat, struct pcm_params *params, in check_param() argument
[all …]
Dalsa.c58 static int format_convert(struct bat *bat, snd_pcm_format_t *fmt) in format_convert() argument
63 if (t->format_bat == bat->format) { in format_convert()
68 fprintf(bat->err, _("Invalid format!\n")); in format_convert()
72 static int set_snd_pcm_params(struct bat *bat, struct pcm_container *sndpcm) in set_snd_pcm_params() argument
85 err = format_convert(bat, &format); in set_snd_pcm_params()
95 fprintf(bat->err, _("Set parameter to device error: ")); in set_snd_pcm_params()
96 fprintf(bat->err, _("default params: %s: %s(%d)\n"), in set_snd_pcm_params()
105 fprintf(bat->err, _("Set parameter to device error: ")); in set_snd_pcm_params()
106 fprintf(bat->err, _("access type: %s: %s(%d)\n"), in set_snd_pcm_params()
114 fprintf(bat->err, _("Set parameter to device error: ")); in set_snd_pcm_params()
[all …]
Danalyze.c31 static void check_amplitude(struct bat *bat, float *buf) in check_amplitude() argument
37 for (i = 0, sum = 0.0, average = 0.0; i < bat->frames; i++) in check_amplitude()
39 average = sum / bat->frames; in check_amplitude()
42 for (i = 0, sum = 0.0; i < bat->frames; i++) in check_amplitude()
44 amplitude = sum / bat->frames * M_PI / 2.0; in check_amplitude()
47 percent = amplitude * 100 / ((1 << ((bat->sample_size << 3) - 1)) - 1); in check_amplitude()
49 fprintf(bat->log, _("Amplitude: %.1f; Percentage: [%d]\n"), in check_amplitude()
52 fprintf(bat->err, _("ERROR: Amplitude can't be negative!\n")); in check_amplitude()
54 fprintf(bat->err, _("WARNING: Signal too weak!\n")); in check_amplitude()
56 fprintf(bat->err, _("WARNING: Signal overflow!\n")); in check_amplitude()
[all …]
Dcommon.c33 static int update_fmt_to_bat(struct bat *bat, struct chunk_fmt *fmt) in update_fmt_to_bat() argument
35 bat->channels = fmt->channels; in update_fmt_to_bat()
36 bat->rate = fmt->sample_rate; in update_fmt_to_bat()
37 bat->sample_size = fmt->sample_length / 8; in update_fmt_to_bat()
38 if (bat->sample_size > 4) { in update_fmt_to_bat()
39 fprintf(bat->err, _("Invalid format: sample size=%d\n"), in update_fmt_to_bat()
40 bat->sample_size); in update_fmt_to_bat()
43 bat->frame_size = fmt->blocks_align; in update_fmt_to_bat()
49 static int update_frames_to_bat(struct bat *bat, in update_frames_to_bat() argument
55 bat->frames = header->length / bat->frame_size; in update_frames_to_bat()
[all …]
Dsignal.c89 static int reorder(struct bat *bat, float *val, int frames) in reorder() argument
94 bytes = frames * bat->channels * sizeof(float); in reorder()
98 fprintf(bat->err, _("Not enough memory.\n")); in reorder()
104 for (c = 0; c < bat->channels; c++) in reorder()
105 val[i * bat->channels + c] = in reorder()
112 static int adjust_waveform(struct bat *bat, float *val, int frames, in adjust_waveform() argument
118 switch (bat->format) { in adjust_waveform()
133 fprintf(bat->err, _("Invalid PCM format: %d\n"), bat->format); in adjust_waveform()
146 int generate_sine_wave(struct bat *bat, int frames, void *buf) in generate_sine_wave() argument
153 nsamples = bat->channels * frames; in generate_sine_wave()
[all …]
Dcommon.h139 struct bat;
171 void *(*fct)(struct bat *);
208 struct bat { struct
257 void prepare_wav_info(struct wav_container *, struct bat *); argument
258 int read_wav_header(struct bat *, char *, FILE *, bool);
259 int write_wav_header(FILE *, struct wav_container *, struct bat *);
260 int update_wav_header(struct bat *, FILE *, int);
261 int generate_input_data(struct bat *, void *, int, int);
/third_party/python/Modules/_decimal/tests/
Drunall.bat14 call .\Tools\buildbot\clean.bat
15 call .\Tools\buildbot\build.bat -c Debug -p x64
25 call python.bat -m test -uall -R 3:3 test_decimal
31 call python.bat -m test -uall test_decimal
37 call python.bat .\Modules\_decimal\tests\deccheck.py
48 call .\Tools\buildbot\clean.bat
49 call .\Tools\buildbot\build.bat -c Release -p x64
59 call python.bat -m test -uall test_decimal
65 call python.bat .\Modules\_decimal\tests\deccheck.py
76 call .\Tools\buildbot\clean.bat
[all …]
/third_party/openh264/build/
DAutoBuildForWindows.bat4 rem AutoBuildForWindows.bat Configuration [-winsdk_version=winsdk_version] [-vc_version=vc_ver…
6 rem Win32-C-Only: AutoBuildForWindows.bat Win32-Debug-C
7 rem Win32-ASM: AutoBuildForWindows.bat Win32-Debug-ASM
8 rem Win64-C-Only: AutoBuildForWindows.bat Win64-Debug-C
9 rem Win64-ASM: AutoBuildForWindows.bat Win64-Debug-ASM
10 rem ARM64-C-Only: AutoBuildForWindows.bat ARM64-Debug-C
11 rem ARM64-ASM: AutoBuildForWindows.bat ARM64-Debug-ASM
13 rem Win32-C-Only: AutoBuildForWindows.bat Win32-Release-C
14 rem Win32-ASM: AutoBuildForWindows.bat Win32-Release-ASM
15 rem Win64-C-Only: AutoBuildForWindows.bat Win64-Release-C
[all …]
/third_party/python/Lib/test/test_email/data/
Dmsg_43.txt3 …il "Banned file: auto__mail.python.bat in mail from you" "^From:" nil nil nil nil "Banned file: au…
14 Subject: Banned file: auto__mail.python.bat in mail from you
48 …ostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.python.bat
54 …ostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.python.bat
60 …ostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.python.bat
66 …ostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.python.bat
72 …ostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.python.bat
78 …ostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.python.bat
84 …ostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.python.bat
90 …ostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.python.bat
[all …]
/third_party/protobuf/kokoro/release/python/windows/
Dbuild_artifacts.bat5 copy kokoro\release\python\windows\build_single_artifact.bat build_single_artifact.bat
38 CALL build_single_artifact.bat || goto :error
43 CALL build_single_artifact.bat || goto :error
48 CALL build_single_artifact.bat || goto :error
53 CALL build_single_artifact.bat || goto :error
58 CALL build_single_artifact.bat || goto :error
63 CALL build_single_artifact.bat || goto :error
68 CALL build_single_artifact.bat || goto :error
73 CALL build_single_artifact.bat || goto :error
/third_party/typescript/tests/baselines/reference/
DdestructuredDeclarationEmit.types2 const foo = { bar: 'hello', bat: 'world', bam: { bork: { bar: 'a', baz: 'b' } } };
3 >foo : { bar: string; bat: string; bam: { bork: { bar: string; baz: string; }; }; }
4 >{ bar: 'hello', bat: 'world', bam: { bork: { bar: 'a', baz: 'b' } } } : { bar: string; bat: string…
7 >bat : string
39 >foo : { bar: string; bat: string; bam: { bork: { bar: string; baz: string; }; }; }
44 >foo : { bar: string; bat: string; bam: { bork: { bar: string; baz: string; }; }; }
48 >foo : { bar: string; bat: string; bam: { bork: { bar: string; baz: string; }; }; }
51 const { bar: baz, bat, bam: { bork: { bar: ibar, baz: ibaz } } } = foo;
54 >bat : string
61 >foo : { bar: string; bat: string; bam: { bork: { bar: string; baz: string; }; }; }
DclassWithMultipleBaseClasses.symbols26 bat();
27 >bat : Symbol(J.bat, Decl(classWithMultipleBaseClasses.ts, 12, 13))
39 bat() { }
40 >bat : Symbol(D.bat, Decl(classWithMultipleBaseClasses.ts, 18, 13))
DdeclFileForClassWithMultipleBaseClasses.js15 bat();
21 bat() { } method in D
46 D.prototype.bat = function () { }; method in D
64 bat(): any;
68 bat(): void;
DconditionalTypes2.errors.txt27 …ract<Extract<T, Foo>, Bar>' is not assignable to parameter of type '{ foo: string; bat: string; }'.
28 …Property 'bat' is missing in type 'Bar & Foo' but required in type '{ foo: string; bat: string; }'.
29 Type 'Extract<T, Bar>' is not assignable to type '{ foo: string; bat: string; }'.
30 …Property 'bat' is missing in type 'Bar & Foo' but required in type '{ foo: string; bat: string; }'.
31 …ype 'Extract<T, Foo & Bar>' is not assignable to parameter of type '{ foo: string; bat: string; }'.
32 …Property 'bat' is missing in type 'Foo & Bar' but required in type '{ foo: string; bat: string; }'.
33 …ype 'Extract2<T, Foo, Bar>' is not assignable to parameter of type '{ foo: string; bat: string; }'.
34 Type 'T extends Bar ? T : never' is not assignable to type '{ foo: string; bat: string; }'.
35 …Property 'bat' is missing in type 'Bar & Foo' but required in type '{ foo: string; bat: string; }'.
134 declare function fooBat(x: { foo: string, bat: string }): void;
[all …]
DdeclFileForClassWithMultipleBaseClasses.symbols26 bat();
27 >bat : Symbol(J.bat, Decl(declFileForClassWithMultipleBaseClasses.ts, 12, 13))
39 bat() { }
40 >bat : Symbol(D.bat, Decl(declFileForClassWithMultipleBaseClasses.ts, 18, 13))
DdestructuredDeclarationEmit.js4 const foo = { bar: 'hello', bat: 'world', bam: { bork: { bar: 'a', baz: 'b' } } }; property
11 const { bar: baz, bat, bam: { bork: { bar: ibar, baz: ibaz } } } = foo;
29 var foo = { bar: 'hello', bat: 'world', bam: { bork: { bar: 'a', baz: 'b' } } }; property
40 var baz = foo_1.foo.bar, bat = foo_1.foo.bat, _a = foo_1.foo.bam.bork, ibar = _a.bar, ibaz = _a.baz; variable
57 bat: string;
DclassWithMultipleBaseClasses.types22 bat();
23 >bat : () => any
33 bat() { }
34 >bat : () => void
DdeclFileForClassWithMultipleBaseClasses.types22 bat();
23 >bat : () => any
33 bat() { }
34 >bat : () => void
/third_party/python/Tools/nuget/
Dbuild.bat28 call "%D%..\msi\get_externals.bat"
29 call "%PCBUILD%find_msbuild.bat" %MSBUILD%
35 if defined REBUILD ( call "%PCBUILD%build.bat" -e -r
36 ) else if not exist "%Py_OutDir%win32\python.exe" call "%PCBUILD%build.bat" -e
44 if defined REBUILD ( call "%PCBUILD%build.bat" -p x64 -e -r
45 ) else if not exist "%Py_OutDir%amd64\python.exe" call "%PCBUILD%build.bat" -p x64 -e
53 if defined REBUILD ( call "%PCBUILD%build.bat" -p ARM -e -r --no-tkinter
54 … ) else if not exist "%Py_OutDir%arm32\python.exe" call "%PCBUILD%build.bat" -p ARM -e --no-tkinter
64 echo build.bat [-x86] [-x64] [--out DIR] [-r] [-h]
/third_party/python/Tools/msi/
Dbuild.bat25 call "%D%get_externals.bat"
26 call "%PCBUILD%find_msbuild.bat" %MSBUILD%
30 call "%PCBUILD%build.bat" -d -e %REBUILD% %BUILDTEST%
32 call "%PCBUILD%build.bat" -e %REBUILD% %BUILDTEST%
36 call "%PCBUILD%build.bat" -p x64 -d -e %REBUILD% %BUILDTEST%
38 call "%PCBUILD%build.bat" -p x64 -e %REBUILD% %BUILDTEST%
43 call "%PCBUILD%..\Doc\make.bat" htmlhelp
73 echo build.bat [-x86] [-x64] [--doc] [-h] [--test-marker] [--pack] [-r]
/third_party/musl/libc-test/
DREADME-HowtoRun.md16 2. 进入musl/scripts,并根据实际环境,修改runtest_Windows.bat中测试用例生成目录完整路径(必要)
17 ```bat
24 3. 将bat脚本复制到windows环境下使用!windows端双击运行runtest_Windows.bat,执行完毕会将详细错误结果信息REPORT返回到当前bat所在目录,并对结果进行统计生…
48 注:此bat文件是从WSL映射目录传输文件到单板目录下,由于WSL无法直接访问windows端口,所以在WSL目录中使用可能无法传输用例。
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/mpegts/
Dgst-dvb-section.c312 _gst_mpegts_bat_stream_copy (GstMpegtsBATStream * bat) in _gst_mpegts_bat_stream_copy() argument
316 copy = g_slice_dup (GstMpegtsBATStream, bat); in _gst_mpegts_bat_stream_copy()
317 copy->descriptors = g_ptr_array_ref (bat->descriptors); in _gst_mpegts_bat_stream_copy()
323 _gst_mpegts_bat_stream_free (GstMpegtsBATStream * bat) in _gst_mpegts_bat_stream_free() argument
325 if (bat->descriptors) in _gst_mpegts_bat_stream_free()
326 g_ptr_array_unref (bat->descriptors); in _gst_mpegts_bat_stream_free()
327 g_slice_free (GstMpegtsBATStream, bat); in _gst_mpegts_bat_stream_free()
335 _gst_mpegts_bat_copy (GstMpegtsBAT * bat) in _gst_mpegts_bat_copy() argument
339 copy = g_slice_dup (GstMpegtsBAT, bat); in _gst_mpegts_bat_copy()
340 copy->descriptors = g_ptr_array_ref (bat->descriptors); in _gst_mpegts_bat_copy()
[all …]
/third_party/astc-encoder/jenkins/
Dnightly.Jenkinsfile121 bat 'git clean -ffdx'
126 bat '''
127 call c:\\progra~2\\micros~1\\2019\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
137 bat '''
138 call c:\\progra~2\\micros~1\\2019\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
155 bat '''
171 bat 'git clean -ffdx'
176 bat '''
177 call c:\\progra~2\\micros~1\\2019\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
189 bat '''
[all …]

12345678910>>...18