|
|
| File Information |
| Description |
1.subsampling
2.level shifting --> dct -->quantization
3.DPCM OF DC COEFFICIENTS+HUFFMAN ENCODING.
4.ZIGZAG SCAN OF AC COEFFICIENTS
5.RUNLENGTH ENCODING + HUFFMAN ENCODING OF AC COEFFICIENTS.
6.ARRANGING THE AC DC COEFFICIENTS OF LUMA ,CB , CR ACCORDING TO JPEG STANDARD. (420 SUBSAMPLING) , REFER TO FIG 'itut81.JPG'.
7.COMBINING (LUMA,CB,CR) BITSREAMS OF 3 COMPONENTS.
7.BYTE STUFFING
8.TAKING 1 BYTE(8 BITS OF CODED STREAM) AND CONVERTING INTO DECIMAL EQUIVALENT.
9.WRITING JFIF HEADER FORMAT .
10. WRITING THE ENCODED BITSTREAM INTO THE ENTROPY CODED SEGMENT OF JFIF HEADER.
11.DECODING PART IS DONE BY THE IMAGE VIEWER ( DEFAULT IMAGE VIEWER LIKE MICROSOFT PICTURE , FAX VIEWER,PICASA, OR ANY OTHER VIWEWRS)
NOTE : I HAVE REPEATED THE DC ENTROPY AND AC ENTROPY CODING PROCEDURE , SEPERATELY FOR EACH COMPONENTS (LUMA,CB,CR). IT CAN BE AVOIDED BY WRITING A SINGLE FUNCTION EACH FOR AC AND DC ENTROPY ENCODING.
functions 'table_huff 'is same as 'table_bitcodval' .
THANKS |
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
| Zip File Content |
|
| Other Files |
jpeg_encoder_complete.zipx, license.txt
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com