comparison adpcm.c @ 10448:b73908dda9b4 libavcodec

Indicate that AdaptCoeff1 and 2 are functions of the actual coefficients.
author daniel
date Thu, 22 Oct 2009 15:57:04 +0000
parents 7955db355703
children 690fa44735ed
comparison
equal deleted inserted replaced
10447:65422cc3a288 10448:b73908dda9b4
84 static const int AdaptationTable[] = { 84 static const int AdaptationTable[] = {
85 230, 230, 230, 230, 307, 409, 512, 614, 85 230, 230, 230, 230, 307, 409, 512, 614,
86 768, 614, 512, 409, 307, 230, 230, 230 86 768, 614, 512, 409, 307, 230, 230, 230
87 }; 87 };
88 88
89 /** Divided by 4 to fit in 8-bit integers */
89 static const uint8_t AdaptCoeff1[] = { 90 static const uint8_t AdaptCoeff1[] = {
90 64, 128, 0, 48, 60, 115, 98 91 64, 128, 0, 48, 60, 115, 98
91 }; 92 };
92 93
94 /** Divided by 4 to fit in 8-bit integers */
93 static const int8_t AdaptCoeff2[] = { 95 static const int8_t AdaptCoeff2[] = {
94 0, -64, 0, 16, 0, -52, -58 96 0, -64, 0, 16, 0, -52, -58
95 }; 97 };
96 98
97 /* These are for CD-ROM XA ADPCM */ 99 /* These are for CD-ROM XA ADPCM */