Home
last modified time | relevance | path

Searched refs:BUFFER_SIZE (Results 1 – 25 of 138) sorted by relevance

123456

/third_party/libsnd/tests/
Dheaderless_test.c37 #define BUFFER_SIZE (2000) macro
58 { static short buffer [BUFFER_SIZE] ; in headerless_test()
67 for (k = 0 ; k < BUFFER_SIZE ; k++) in headerless_test()
77 if ((k = sf_write_short (file, buffer, BUFFER_SIZE)) != BUFFER_SIZE) in headerless_test()
78 …{ printf ("Line %d: sf_write_short failed with short write (%d => %d).\n", __LINE__, BUFFER_SIZE, … in headerless_test()
98 if (sfinfo.frames < BUFFER_SIZE) in headerless_test()
99 … Incorrect number of.frames in file. (%d => %" PRId64 ")\n", __LINE__, BUFFER_SIZE, sfinfo.frames)… in headerless_test()
118 { static short buffer [BUFFER_SIZE] ; in old_test()
126 for (k = 0 ; k < BUFFER_SIZE ; k++) in old_test()
138 if ((k = sf_write_short (file, buffer, BUFFER_SIZE)) != BUFFER_SIZE) in old_test()
[all …]
Ddwvw_test.c36 #define BUFFER_SIZE (10000) macro
56 { static int write_buf [BUFFER_SIZE] ; in dwvw_test()
57 static int read_buf [BUFFER_SIZE] ; in dwvw_test()
76 for (k = 0 ; k < BUFFER_SIZE / 2 ; k++) in dwvw_test()
81 for ( ; k < BUFFER_SIZE ; k++) in dwvw_test()
84 sf_write_int (file, write_buf, BUFFER_SIZE) ; in dwvw_test()
89 if ((k = sf_read_int (file, read_buf, BUFFER_SIZE)) != BUFFER_SIZE) in dwvw_test()
90 { printf ("Error (line %d) : Only read %d/%d.frames.\n", __LINE__, k, BUFFER_SIZE) ; in dwvw_test()
94 for (k = 0 ; k < BUFFER_SIZE ; k++) in dwvw_test()
98 k, BUFFER_SIZE) ; in dwvw_test()
[all …]
Dscale_clip_test.tpl43 #define BUFFER_SIZE (2 * HALF_BUFFER_SIZE)
67 { double dbl [BUFFER_SIZE] ;
68 float flt [BUFFER_SIZE] ;
69 int i [BUFFER_SIZE] ;
70 short s [BUFFER_SIZE] ;
171 if (sfinfo.frames != BUFFER_SIZE)
172 …ncorrect number of frames in file (%d => %" PRId64 ").\n\n", __LINE__, BUFFER_SIZE, sfinfo.frames)…
192 …ne %d: Input sample %d/%d (%f) has not been clipped.\n\n", __LINE__, k, BUFFER_SIZE, data_in [k]) ;
197 { printf ("\n\nLine %d: Data wrap around at index %d/%d.\n\n", __LINE__, k, BUFFER_SIZE) ;
221 for (k = HALF_BUFFER_SIZE ; k < BUFFER_SIZE ; k++)
[all …]
Dalaw_test.c35 #define BUFFER_SIZE (65536) macro
40 static short short_buffer [BUFFER_SIZE] ;
41 static unsigned char alaw_buffer [BUFFER_SIZE] ;
70 sf_write_short (file, short_buffer, BUFFER_SIZE) ; in main()
85 if (sf_read_raw (file, alaw_buffer, BUFFER_SIZE) != BUFFER_SIZE) in main()
Dulaw_test.c35 #define BUFFER_SIZE (65536) macro
40 static short short_buffer [BUFFER_SIZE] ;
41 static unsigned char ulaw_buffer [BUFFER_SIZE] ;
70 sf_write_short (file, short_buffer, BUFFER_SIZE) ; in main()
85 if (sf_read_raw (file, ulaw_buffer, BUFFER_SIZE) != BUFFER_SIZE) in main()
Dsftest.c31 #define BUFFER_SIZE (1024) macro
34 static short buffer [BUFFER_SIZE] ;
53 while ((count = sf_read_short (file, buffer, BUFFER_SIZE))) in main()
/third_party/ffmpeg/tests/checkasm/
Dutvideodsp.c31 #define BUFFER_SIZE (WIDTH_PADDED * HEIGHT) macro
57 LOCAL_ALIGNED_32(type, src_r0, [BUFFER_SIZE]); \
58 LOCAL_ALIGNED_32(type, src_g0, [BUFFER_SIZE]); \
59 LOCAL_ALIGNED_32(type, src_b0, [BUFFER_SIZE]); \
60 LOCAL_ALIGNED_32(type, src_r1, [BUFFER_SIZE]); \
61 LOCAL_ALIGNED_32(type, src_g1, [BUFFER_SIZE]); \
62 LOCAL_ALIGNED_32(type, src_b1, [BUFFER_SIZE]); \
66 memset(src_r0, 0, BUFFER_SIZE * sizeof(type)); \
67 memset(src_g0, 0, BUFFER_SIZE * sizeof(type)); \
68 memset(src_b0, 0, BUFFER_SIZE * sizeof(type)); \
[all …]
/third_party/openssl/test/
Dafalgtest.c20 #define BUFFER_SIZE 17 macro
55 unsigned char in[BUFFER_SIZE] = "\x53\x69\x6e\x67\x6c\x65\x20\x62" in test_afalg_aes_cbc()
57 unsigned char ebuf[BUFFER_SIZE + 32]; in test_afalg_aes_cbc()
58 unsigned char dbuf[BUFFER_SIZE + 32]; in test_afalg_aes_cbc()
90 || !TEST_true(EVP_CipherUpdate(ctx, ebuf, &encl, in, BUFFER_SIZE)) in test_afalg_aes_cbc()
95 if (!TEST_mem_eq(enc_result, BUFFER_SIZE, ebuf, BUFFER_SIZE)) in test_afalg_aes_cbc()
105 if (!TEST_int_eq(decl, BUFFER_SIZE) in test_afalg_aes_cbc()
106 || !TEST_mem_eq(dbuf, BUFFER_SIZE, in, BUFFER_SIZE)) in test_afalg_aes_cbc()
/third_party/libsnd/src/G72x/
Dg72x_test.c38 #define BUFFER_SIZE (1 << 14) macro
94 { static double orig_buffer [BUFFER_SIZE] ; in g723_test()
95 static short orig [BUFFER_SIZE] ; in g723_test()
96 static short data [BUFFER_SIZE] ; in g723_test()
111 memset (data, 0, BUFFER_SIZE * sizeof (short)) ; in g723_test()
112 memset (orig, 0, BUFFER_SIZE * sizeof (short)) ; in g723_test()
117 gen_signal_double (orig_buffer, 32000.0, BUFFER_SIZE) ; in g723_test()
118 for (k = 0 ; k < BUFFER_SIZE ; k++) in g723_test()
124 for (k = 0 ; k < BUFFER_SIZE ; k++) in g723_test()
135 for (k = 0 ; k < BUFFER_SIZE ; k++) in g723_test()
[all …]
/third_party/musl/porting/liteos_a/user/src/network/
Dether.c8 #define BUFFER_SIZE 200 macro
52 char buf[BUFFER_SIZE], *ch, *ptr = NULL; in ether_line()
87 char buf[BUFFER_SIZE + 1]; in ether_ntohost()
88 char temp_name[BUFFER_SIZE]; in ether_ntohost()
98 while (fgets(buf, BUFFER_SIZE, f)) { in ether_ntohost()
118 char buf[BUFFER_SIZE + 1]; in ether_hostton()
119 char temp_name[BUFFER_SIZE]; in ether_hostton()
129 while (fgets(buf, BUFFER_SIZE, f)) { in ether_hostton()
/third_party/skia/third_party/externals/brotli/research/
Dbrotli_decoder.c13 #define BUFFER_SIZE (1u << 20) macro
50 size_t available_out = BUFFER_SIZE; in main()
58 ctx.input_buffer = (uint8_t*)malloc(BUFFER_SIZE); in main()
60 ctx.output_buffer = (uint8_t*)malloc(BUFFER_SIZE); in main()
70 available_in = fread(ctx.input_buffer, 1, BUFFER_SIZE, ctx.fin); in main()
74 fwrite(ctx.output_buffer, 1, BUFFER_SIZE, ctx.fout); in main()
76 available_out = BUFFER_SIZE; in main()
/third_party/libuv/test/
Dtest-ipc-heavy-traffic-deadlock-bug.c34 #define BUFFER_SIZE 0x2000 /* 8 kb. */ macro
37 #define XFER_SIZE (NUM_WRITES * BUFFERS_PER_WRITE * BUFFER_SIZE)
41 char buffers[BUFFER_SIZE][BUFFERS_PER_WRITE];
53 bytes_written += BUFFERS_PER_WRITE * BUFFER_SIZE; in write_cb()
72 memset(&write_info->buffers[i], BUFFER_CONTENT, BUFFER_SIZE); in do_write()
73 bufs[i] = uv_buf_init(write_info->buffers[i], BUFFER_SIZE); in do_write()
/third_party/icu/icu4c/source/i18n/
Dinputext.cpp23 #define BUFFER_SIZE 8192 macro
29 … : fInputBytes(NEW_ARRAY(uint8_t, BUFFER_SIZE)), // The text to be checked. Markup will have been in InputText()
98 for (srci = 0; srci < fRawLength && dsti < BUFFER_SIZE; srci += 1) { in MungeInput()
132 if (limit > BUFFER_SIZE) { in MungeInput()
133 limit = BUFFER_SIZE; in MungeInput()
/third_party/node/deps/icu-small/source/i18n/
Dinputext.cpp23 #define BUFFER_SIZE 8192 macro
29 … : fInputBytes(NEW_ARRAY(uint8_t, BUFFER_SIZE)), // The text to be checked. Markup will have been in InputText()
98 for (srci = 0; srci < fRawLength && dsti < BUFFER_SIZE; srci += 1) { in MungeInput()
132 if (limit > BUFFER_SIZE) { in MungeInput()
133 limit = BUFFER_SIZE; in MungeInput()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dinputext.cpp23 #define BUFFER_SIZE 8192 macro
29 … : fInputBytes(NEW_ARRAY(uint8_t, BUFFER_SIZE)), // The text to be checked. Markup will have been in InputText()
98 for (srci = 0; srci < fRawLength && dsti < BUFFER_SIZE; srci += 1) { in MungeInput()
132 if (limit > BUFFER_SIZE) { in MungeInput()
133 limit = BUFFER_SIZE; in MungeInput()
/third_party/skia/third_party/externals/icu/source/i18n/
Dinputext.cpp23 #define BUFFER_SIZE 8192 macro
29 … : fInputBytes(NEW_ARRAY(uint8_t, BUFFER_SIZE)), // The text to be checked. Markup will have been in InputText()
98 for (srci = 0; srci < fRawLength && dsti < BUFFER_SIZE; srci += 1) { in MungeInput()
132 if (limit > BUFFER_SIZE) { in MungeInput()
133 limit = BUFFER_SIZE; in MungeInput()
/third_party/libdrm/tests/amdgpu/
Dbo_tests.c32 #define BUFFER_SIZE (4*1024) macro
78 req.alloc_size = BUFFER_SIZE; in suite_bo_tests_init()
88 BUFFER_SIZE, BUFFER_ALIGN, 0, in suite_bo_tests_init()
93 r = amdgpu_bo_va_op(buf_handle, 0, BUFFER_SIZE, va, 0, AMDGPU_VA_OP_MAP); in suite_bo_tests_init()
114 r = amdgpu_bo_va_op(buffer_handle, 0, BUFFER_SIZE, in suite_bo_tests_clean()
148 CU_ASSERT_EQUAL(res.alloc_size, BUFFER_SIZE); in amdgpu_bo_export_import_do_type()
193 for (i = 0; i < (BUFFER_SIZE / 4); ++i) in amdgpu_bo_map_unmap()
/third_party/node/test/parallel/
Dtest-dgram-bind-fd.js13 const BUFFER_SIZE = 4096; constant
58 recvBufferSize: BUFFER_SIZE,
59 sendBufferSize: BUFFER_SIZE,
81 BUFFER_SIZE * 2 : BUFFER_SIZE;
/third_party/flutter/skia/tools/
Dwin_lcid.cpp10 #define BUFFER_SIZE 512 macro
12 WCHAR wcBuffer[BUFFER_SIZE]; in MyFuncLocaleEx()
15 bufferSize = GetLocaleInfoEx(pStr, LOCALE_SENGLANGUAGE, wcBuffer, BUFFER_SIZE); in MyFuncLocaleEx()
/third_party/skia/tools/
Dwin_lcid.cpp10 #define BUFFER_SIZE 512 macro
12 WCHAR wcBuffer[BUFFER_SIZE]; in MyFuncLocaleEx()
15 bufferSize = GetLocaleInfoEx(pStr, LOCALE_SENGLANGUAGE, wcBuffer, BUFFER_SIZE); in MyFuncLocaleEx()
/third_party/flutter/skia/third_party/externals/wuffs/script/
Dadler32-standalone.c38 #define BUFFER_SIZE (1024 * 1024) macro
116 uint8_t buffer[BUFFER_SIZE] = {0};
138 uint32_t actual_hash = calculate_hash(buffer, BUFFER_SIZE); in main()
154 int64_t numer = ((int64_t)num_reps) * BUFFER_SIZE * 1000000; in main()
/third_party/icu/icu4c/source/samples/csdet/
Dcsdet.c18 #define BUFFER_SIZE 8192 macro
22 static char buffer[BUFFER_SIZE]; in main()
51 inputLength = (int32_t) fread(buffer, 1, BUFFER_SIZE, file); in main()
/third_party/skia/third_party/externals/icu/source/samples/csdet/
Dcsdet.c18 #define BUFFER_SIZE 8192 macro
22 static char buffer[BUFFER_SIZE]; in main()
51 inputLength = (int32_t) fread(buffer, 1, BUFFER_SIZE, file); in main()
/third_party/flutter/skia/third_party/externals/icu/source/samples/csdet/
Dcsdet.c18 #define BUFFER_SIZE 8192 macro
22 static char buffer[BUFFER_SIZE]; in main()
51 inputLength = (int32_t) fread(buffer, 1, BUFFER_SIZE, file); in main()
/third_party/node/test/node-api/test_worker_terminate_finalization/
Dtest_worker_terminate_finalization.c7 #define BUFFER_SIZE 4 macro
25 void* bufferData = malloc(BUFFER_SIZE); in Test()
28 …NAPI_CALL(env, napi_create_external_buffer(env, BUFFER_SIZE, bufferData, BufferFinalizer, bufferDa… in Test()

123456