Home
last modified time | relevance | path

Searched refs:test_pcm (Results 1 – 2 of 2) sorted by relevance

/third_party/libsnd/src/
Dtest_ima_oki_adpcm.c37 static const short test_pcm [] = variable
66 if (adpcm_decode (&adpcm, code >> 4) != test_pcm [2 * i + j]) in test_oki_adpcm()
76 for (i = 0 ; i < ARRAY_LEN (test_pcm) - 1 ; i += 2) in test_oki_adpcm()
77 { code = adpcm_encode (&adpcm, test_pcm [i]) ; in test_oki_adpcm()
78 code = (code << 4) | adpcm_encode (&adpcm, test_pcm [i + 1]) ; in test_oki_adpcm()
94 if (ARRAY_LEN (adpcm.pcm) < ARRAY_LEN (test_pcm)) in test_oki_adpcm_block()
95 …m) > ARRAY_LEN (test_pcm) (%d > %d).\n\n", __LINE__, ARRAY_LEN (adpcm.pcm), ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block()
108 memcpy (adpcm.pcm, test_pcm, sizeof (adpcm.pcm [0]) * ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block()
109 adpcm.pcm_count = ARRAY_LEN (test_pcm) ; in test_oki_adpcm_block()
114 if (adpcm.code_count * 2 != ARRAY_LEN (test_pcm)) in test_oki_adpcm_block()
[all …]
Dima_oki_adpcm.c170 static const short test_pcm [] = variable
200 if (adpcm_decode (&adpcm, code >> 4) != test_pcm [2 * i + j]) in test_oki_adpcm()
211 for (i = 0 ; i < ARRAY_LEN (test_pcm) ; i += j) in test_oki_adpcm()
212 { code = adpcm_encode (&adpcm, test_pcm [i]) ; in test_oki_adpcm()
213 code = (code << 4) | adpcm_encode (&adpcm, test_pcm [i + 1]) ; in test_oki_adpcm()
229 if (ARRAY_LEN (adpcm.pcm) < ARRAY_LEN (test_pcm)) in test_oki_adpcm_block()
230 …m) > ARRAY_LEN (test_pcm) (%d > %d).\n\n", __LINE__, ARRAY_LEN (adpcm.pcm), ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block()
244 memcpy (adpcm.pcm, test_pcm, sizeof (adpcm.pcm [0]) * ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block()
245 adpcm.pcm_count = ARRAY_LEN (test_pcm) ; in test_oki_adpcm_block()
250 if (adpcm.code_count * 2 != ARRAY_LEN (test_pcm)) in test_oki_adpcm_block()
[all …]