Hi,
I'm doing a school project on mp3 decoders. Other teams in my class is proposing to do an 8-bit cosine lookup table implementation of the idct. Does anyone know if this will work?
Yuxuan
I know that Xing implements lookup tables for their encoder, that's why it's so fast. But floating point math is more accurate, and processing power and ram is cheap these days.
Which does your instructor prefer, speed or accuracy? If I were you, I'd design your project in a way that will make your instructor happy.
John
-----Original Message----- From: mad-user-admin@lists.mars.org [mailto:mad-user-admin@lists.mars.org]On Behalf Of Yuxuan Mao Sent: Sunday, February 24, 2002 11:39 AM To: mad-dev@lists.mars.org; mad-user@lists.mars.org Subject: [mad-user] alternative idct implementation question
Hi,
I'm doing a school project on mp3 decoders. Other teams in my class is proposing to do an 8-bit cosine lookup table implementation of the idct. Does anyone know if this will work?
Yuxuan
You can increase the accuracy by increasing the size of the lookup table from a table of 8bit values to something bigger, as memory permits. Also, another way is to make the table as the encoder runs. At the beginning, you can initialize it if you want or add the values as the need pops up (if the value is in the table, then use it, if not, calculate it and store it for future use), or both.
There's many ways to "skin a car" (figure of speech, btw).
G.
John van Ommen wrote:
I know that Xing implements lookup tables for their encoder, that's why it's so fast. But floating point math is more accurate, and processing power and ram is cheap these days.
Which does your instructor prefer, speed or accuracy? If I were you, I'd design your project in a way that will make your instructor happy.
John
-----Original Message----- From: mad-user-admin@lists.mars.org [mailto:mad-user-admin@lists.mars.org]On Behalf Of Yuxuan Mao Sent: Sunday, February 24, 2002 11:39 AM To: mad-dev@lists.mars.org; mad-user@lists.mars.org Subject: [mad-user] alternative idct implementation question
Hi,
I'm doing a school project on mp3 decoders. Other teams in my class is proposing to do an 8-bit cosine lookup table implementation of the idct. Does anyone know if this will work?
Yuxuan
You can increase the accuracy by increasing the size of the lookup table
from a
table of 8bit values to something bigger, as memory permits. Also,
another way
is to make the table as the encoder runs. At the beginning, you can
initialize
it
This kind of things is already done for pow(4/3) in many decoders: they create a table of about 1000 values, and then every pow(4/3) is computed using this table and a few multiplications (wich are in fact some shifts).
Btw I think that this discussion should move to mad-dev@lists.mars.org
Regards,
---- Gabriel Bouvigne www.mp3-tech.org personal page: http://gabriel.mp3-tech.org