mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
27 lines
450 B
C++
27 lines
450 B
C++
#ifndef DCT_H
|
|
#define DCT_H
|
|
|
|
#include "DCTCommon.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace dct {
|
|
|
|
class DCTInternal;
|
|
|
|
class DCT {
|
|
public:
|
|
DCT(int quality);
|
|
~DCT();
|
|
|
|
void forward(uint8_t const *pixels, int16_t *coefficients, int width, int height, int bytesPerRow);
|
|
void inverse(int16_t const *coefficients, uint8_t *pixels, int width, int height, int coefficientsPerRow, int bytesPerRow);
|
|
|
|
private:
|
|
DCTInternal *_internal;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|