Help - Search - Members - Calendar
Full Version: FLAC code is fixed point?
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
mdeveloper
I am new to FLAC, from previous discussions i could make out that code is already available. Is this code fixed point? it is optimized for which processor?
pdq
If you are asking if it will encode integer audio data then yes.
kjoonlee
http://flac.sourceforge.net/features.html

QUOTE
Decoding requires only integer arithmetic


You can write an integer decoder if you want, if the reference decoder is not already written that way.
Mike Giacomelli
There are integer only flac decoders if thats what you mean. The rockbox flac decoder is a modified version of ffmpeg's flac decoder, and is extremely fast on ARM and Coldfire.
jcoalson
libFLAC only uses floating point in parts of the encoder. (decoding is integer only.) there is a fixed point flavor you can turn on with #ifdefs but it's not very good.
Justin Ruggles
QUOTE (jcoalson @ Jun 1 2009, 11:26) *
libFLAC only uses floating point in parts of the encoder. (decoding is integer only.) there is a fixed point flavor you can turn on with #ifdefs but it's not very good.

The same applies for FFmpeg. The FLAC decoder is integer only, and the encoder uses floating-point. The exception is for encoding with compression levels 0 to 2, which only use integers.
mdeveloper
QUOTE (Mike Giacomelli @ Jun 1 2009, 15:53) *
There are integer only flac decoders if thats what you mean. The rockbox flac decoder is a modified version of ffmpeg's flac decoder, and is extremely fast on ARM and Coldfire.


Could you tell me more about rockbox flac decoder? How it is different from "Original one" available from http://sourceforge.net/project/showfiles.p...ackage_id=12677

Do you have have comparison figures of rockbox and Original decoder on ARM?
mdeveloper
QUOTE (jcoalson @ Jun 1 2009, 16:26) *
libFLAC only uses floating point in parts of the encoder. (decoding is integer only.) there is a fixed point flavor you can turn on with #ifdefs but it's not very good.


Thanks Josh Coalson.
Is it possible for you to also provide me an idea on Approx. no. of
Multiplications,
Adds/subs,
ORs/Shifts,
Movs etc
involved in decoding of per sample of audio frame by library libFlac, .. this can give idea on performance on any platform.
I guess i have not asked smthing unanswerable smile.gif
Mike Giacomelli
QUOTE (mdeveloper @ Jun 16 2009, 08:22) *
QUOTE (Mike Giacomelli @ Jun 1 2009, 15:53) *
There are integer only flac decoders if thats what you mean. The rockbox flac decoder is a modified version of ffmpeg's flac decoder, and is extremely fast on ARM and Coldfire.


Could you tell me more about rockbox flac decoder? How it is different from "Original one" available from http://sourceforge.net/project/showfiles.p...ackage_id=12677

Do you have have comparison figures of rockbox and Original decoder on ARM?


Its about 3-4x faster as I recall on ARM7TDMI. I think libflac simply isn't well optimized.
Lear
QUOTE (Mike Giacomelli @ Oct 13 2009, 05:24) *
Its about 3-4x faster as I recall on ARM7TDMI. I think libflac simply isn't well optimized.

The version of libflac Rockbox used was 1.1.2, which predates the bitbuffer optimizations in 1.1.4. Don't know how much that affects things though.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.