« Home | 政治概論考古題 » | What's the bestselling video game of all time » | Stanley Tookie Williams » | Rafał Blechacz v.s. Yundi Li » | 15th International Chopin Piano Competition Result » | 14th Chopin Competition Result » | How to Protect Yourself from Sony DRM Rootkit Malware » | Recitative(recitativo) 宣敘調 » | Madrigal (music) » | Florentine Camerata »

Discrete Cosine Transformation Implementation Note

Transformation Formula

u, v, x, y = 0, 1,2, ….,7



Zig-Zag sequence

(0,0)是為DC coefficient,其餘的為AC coefficient,除了DC之外,其餘的AC以(a,b)方式編碼,b為非零整數,a為b前零的個數。然而,有時將(a,b)編碼稍為往後延(即增加同DC處理方法的係數數量)可能會有較好的壓縮效果


JPEG Encoder/Decoder Block Diagram

此處不使用Huffman而用Arithmetic Coding

Sample Image
將此圖轉為256*256的pgm檔