X-Git-Url: https://git.sesse.net/?p=fjl;a=blobdiff_plain;f=idct_imprecise_int.h;fp=idct_imprecise_int.h;h=f103270b1eced62f393a1387ed0fc06c1b4af7db;hp=0000000000000000000000000000000000000000;hb=85cda6b1da31916b0127d1217825dea725619245;hpb=053868677195e472ddbc5129c6248419911b4546 diff --git a/idct_imprecise_int.h b/idct_imprecise_int.h new file mode 100644 index 0000000..f103270 --- /dev/null +++ b/idct_imprecise_int.h @@ -0,0 +1,15 @@ +#ifndef _IDCT_IMPRECISE_INT_H +#define _IDCT_IMPRECISE_INT_H + +#include "idct.h" + +// Straight-forward, stupid integerization of idct_float. (There are quite +// possibly better integer IDCTs possible.) +// +// NOTE: This routine most likely does not conform to the precision and/or +// range demands set forth by the JPEG standard. Caveat emptor. +void* idct_imprecise_int_alloc(const uint32_t* quant_table); +void idct_imprecise_int_free(void* userdata); +void idct_imprecise_int(const int16_t* input, const void* userdata, uint8_t* output); + +#endif /* !defined(_IDCT_IMPRECISE_INT_H) */