Browse Subversion Repository
Contents of /Quantizer.h
Parent Directory
| Revision Log
Revision 4 -
( show annotations)
( download)
( as text)
Sun Apr 5 12:08:23 2009 UTC
(15 years, 1 month ago)
by berupon
File MIME type: text/x-chdr
File size: 324 byte(s)
既に他の場所で公開済みのImageCompressionのプロジェクトを取り込み。
| 1 |
#pragma once |
| 2 |
|
| 3 |
class Quantizer |
| 4 |
{ |
| 5 |
public: |
| 6 |
void init(size_t qp, size_t hBlockness, size_t vBlockness, bool useQuantMatrix); |
| 7 |
|
| 8 |
void quantize(int values[8][8]); |
| 9 |
void dequantize(int values[8][8]); |
| 10 |
private: |
| 11 |
int quant8_table[64]; |
| 12 |
int dequant8_table[64]; |
| 13 |
|
| 14 |
size_t QP; |
| 15 |
size_t QP_shift; |
| 16 |
size_t QP_remain; |
| 17 |
}; |
| 18 |
|
|