]> git.sesse.net Git - fjl/blob - idct.h
Measure CPU seconds instead of wall time, and move the timing functions into a
[fjl] / idct.h
1 #ifndef _IDCT_H
2 #define _IDCT_H
3
4 #include <stdint.h>
5
6 #define DCTSIZE 8
7 #define DCTSIZE2 64
8
9 typedef void (idct_func_t)(const int16_t*, const uint32_t*, uint8_t*);
10
11 // Non-factorized reference version (section A.3.3 of the JPEG standard).
12 void idct_reference(const int16_t* input, const uint32_t* quant_table, uint8_t* output);
13
14 // Floating-point IDCT due to Arai, Agui and Nakajima (also known as AA&N).
15 // See idct.c for more details.
16 void idct_float(const int16_t* input, const uint32_t* quant_table, uint8_t* output);
17
18 #endif /* !defined(_IDCT_H) */