/* * Floating point AAN DCT * this implementation is based upon the IJG integer AAN DCT (see jfdctfst.c) * * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at> * Copyright (c) 2003 Roman Shaposhnik * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/** * @file * @brief * Floating point AAN DCT * @author Michael Niedermayer <michaelni@gmx.at>
*/
/* numbers generated by arbitrary precision arithmetic followed by truncation to 36 fractional digits (enough for a 128-bit IEEE quad, see /usr/include/math.h for this approach). Unfortunately, long double is not always available correctly, e.g ppc has issues. TODO: add L suffixes when ppc and toolchains sort out their stuff.
*/ #define B0 1.000000000000000000000000000000000000 #define B1 0.720959822006947913789091890943021267 // (cos(pi*1/16)sqrt(2))^-1 #define B2 0.765366864730179543456919968060797734 // (cos(pi*2/16)sqrt(2))^-1 #define B3 0.850430094767256448766702844371412325 // (cos(pi*3/16)sqrt(2))^-1 #define B4 1.000000000000000000000000000000000000 // (cos(pi*4/16)sqrt(2))^-1 #define B5 1.272758580572833938461007018281767032 // (cos(pi*5/16)sqrt(2))^-1 #define B6 1.847759065022573512256366378793576574 // (cos(pi*6/16)sqrt(2))^-1 #define B7 3.624509785411551372409941227504289587 // (cos(pi*7/16)sqrt(2))^-1
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.