Home
last modified time | relevance | path

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

12345678910>>...25

/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/musl/libc-test/
DREADME-HowtoRun.md23 2. 进入musl/scripts,并根据实际环境,修改runtest.bat中测试用例生成目录完整路径(必要)
25 ```bat
32 3. 将bat脚本复制到windows环境下使用!!windows端双击运行runtest.bat,执行完毕会将结果REPORT返回到当前bat所在目录。
34bat将从WSL映射目录传输文件到单板目录下,由于WSL无法直接访问windows端口,所以在WSL中直接使用可能无法传输用例。
41 5. runtest.bat执行结束前会将输出的REPORT与在libc-test/report_base下的REPORT相比较,如果比较出不同将会在scripts下
/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; }; }; }
DdeclFileForClassWithMultipleBaseClasses.js15 bat();
21 bat() { } method in D
46 D.prototype.bat = function () { }; method in D
64 bat(): any;
68 bat(): void;
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.symbols26 bat();
27 >bat : Symbol(J.bat, Decl(declFileForClassWithMultipleBaseClasses.ts, 12, 13))
39 bat() { }
40 >bat : Symbol(D.bat, Decl(declFileForClassWithMultipleBaseClasses.ts, 18, 13))
DconditionalTypes2.errors.txt30 …ract<Extract<T, Foo>, Bar>' is not assignable to parameter of type '{ foo: string; bat: string; }'.
31 …Property 'bat' is missing in type 'Bar & Foo' but required in type '{ foo: string; bat: string; }'.
32 Type 'Extract<T, Bar>' is not assignable to type '{ foo: string; bat: string; }'.
33 …Property 'bat' is missing in type 'Bar & Foo' but required in type '{ foo: string; bat: string; }'.
34 …ype 'Extract<T, Foo & Bar>' is not assignable to parameter of type '{ foo: string; bat: string; }'.
35 …Property 'bat' is missing in type 'Foo & Bar' but required in type '{ foo: string; bat: string; }'.
36 …ype 'Extract2<T, Foo, Bar>' is not assignable to parameter of type '{ foo: string; bat: string; }'.
37 Type 'T extends Bar ? T : never' is not assignable to type '{ foo: string; bat: string; }'.
38 …Property 'bat' is missing in type 'Bar & Foo' but required in type '{ foo: string; bat: string; }'.
136 declare function fooBat(x: { foo: string, bat: string }): void;
[all …]
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/libpsl/msvc/
Dcreate-lists-msvc.mak9 # if [call create-lists.bat header $(makefile_snippet_file) $(variable_name)]
12 # if [call create-lists.bat file $(makefile_snippet_file) $(file_name)]
15 # if [call create-lists.bat footer $(makefile_snippet_file)]
26 # instead when doing 'if [call create-lists.bat file $(makefile_snippet_file) $(file_name)]'
28 # !if [for %c in ($(source_list)) do @if "%~xc" == ".$(srcext)" @call create-lists.bat file $(makef…
40 !if [call create-lists.bat header libpsl-msvc.mak libpsl_OBJS]
43 !if [for %c in ($(LIBPSL_SRCS)) do @if "%~xc" == ".c" @call create-lists.bat file libpsl-msvc.mak v…
46 !if [call create-lists.bat footer libpsl-msvc.mak]
49 !if [call create-lists.bat header libpsl-msvc.mak psl_OBJS]
52 !if [for %c in (..\tools\*.c) do @call create-lists.bat file libpsl-msvc.mak vs^$(VSVER)\^$(CFG)\^$…
[all …]
/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/mindspore/mindspore/lite/examples/quick_start_c/
DReadme.md23 通过脚本build.bat即可编译代码,需要注意的是该脚本不会自动下载`.ms`模型,需要用户自己下载,[点击下载模型](https://download.mindspore.cn/model_zo…
29 ```bat
30 sh build.bat "PATH TO ohos.toolchain.cmake" arm32
32 ```bat
33 sh build.bat "PATH TO ohos.toolchain.cmake" arm64

12345678910>>...25