MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / III_freqinver

Function III_freqinver

modules/data/mp3/libmad/layer3.c:2386–2415  ·  view source on GitHub ↗

NAME: III_freqinver() DESCRIPTION: perform subband frequency inversion for odd sample lines */

Source from the content-addressed store, hash-verified

2384 DESCRIPTION: perform subband frequency inversion for odd sample lines
2385*/
2386static
2387void III_freqinver(mad_fixed_t sample[18][32], unsigned int sb)
2388{
2389 unsigned int i;
2390 stack(__FUNCTION__, __FILE__, __LINE__);
2391
2392# if 1 || defined(ASO_INTERLEAVE1) || defined(ASO_INTERLEAVE2)
2393 {
2394 register mad_fixed_t tmp1, tmp2;
2395
2396 tmp1 = sample[1][sb];
2397 tmp2 = sample[3][sb];
2398
2399 for (i = 1; i < 13; i += 4) {
2400 sample[i + 0][sb] = -tmp1;
2401 tmp1 = sample[i + 4][sb];
2402 sample[i + 2][sb] = -tmp2;
2403 tmp2 = sample[i + 6][sb];
2404 }
2405
2406 sample[13][sb] = -tmp1;
2407 tmp1 = sample[17][sb];
2408 sample[15][sb] = -tmp2;
2409 sample[17][sb] = -tmp1;
2410 }
2411# else
2412 for (i = 1; i < 18; i += 2)
2413 sample[i][sb] = -sample[i][sb];
2414# endif
2415}
2416
2417/*
2418 NAME: III_decode()

Callers 1

III_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected