亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readme.txt

?? JPEG(Joint Photographic Expert Group,聯合攝影專家組)編碼的數據執行解壓縮的各項功能.JPEG的VHDL實現代碼
?? TXT
字號:
- Directory Organization


   cores - Xilinx CoreGen generated cores are inside this directory (if it is not there anymore then you should be able to generate them using CoreGen with the parameters described in the section "Functional Description" of this document.)
   docs - documents about this project
   images - contains main test image to run testbench against
   src - contains main source file compressor.vhd
   testbench - contains main testbench file


- Description

This project features a complete JPEG Hardware Compressor (standard Baseline DCT, JFIF header) with 2:1:1 subsampling, able to compress at a rate of up to 24 images per second (on XC2V1000-4 @ 40 MHz with resolution 352x288).

Image resolution is not limited. It takes an RGB input (row-wise) and outputs to a memory the compressed JPEG image. Its quality is comparable to software solutions.

A testbench has been made that takes a bitmap image from your computer and writes a compressed JPEG file by simulating the code. Download the code and try it, it's easy.

The source code is VHDL and it is LGPL, so it can be used in commercial applications as long as the terms of the license are respected.

Anyone interested in the image standards used in this project, they can be downloaded from the following places:

JPEG (ITU-T81 standard): http://www.w3.org/Graphics/JPEG/itu-t81.pdf
JFIF (JPEG file headers): http://www.w3.org/Graphics/JPEG/jfif3.pdf
BMP (bitmaps for the testbench): http://netghost.narod.ru/gff/vendspec/micbmp/bmp.txt

Please note that there is another Tab in this web page named "Detailed Description" with further info on this core.

If you run into any problems downloading the files from the cvs please check that you are downloading them in binary form. For any questions my email is:
galland@opencores.org


- Notes

Some quick notes until the time I upload the full documentation:

    * This implementation is compliant with ISO standard (and ITU standard T-81), it features a compliant JPEG compressor Baseline DCT with Huffman encoding and 2x2 1x1 1x1 subsampling. The header is the widely employed JFIF. Baseline DCT JPEG with JFIF header is one of the most used image formats.
    * Included with the source code is a Testbench which allows you to compress a bitmap (uncompressed 24 bit BMP) file located in the project folder (if using Active-HDL then in the design folder) just by simulating it. Its name MUST be "image.bmp". By the way, remember that a bitmap image stores the information bottom up, and JPEG is top-bottom, so you should flip (invert) the bitmap image (see the test image if you don't understand what I mean). This is only important for simulation.
    * The testbench is made in such a way that it will automatically exit the simulation when it finishes. A 352x288 image takes almost 40 ms of simulation time (that will take some minutes depending on your machine). The output image will be in the same folder as "image.bmp" and its name will be "image.jpg" (it will overwrite previous outputs without warning).
    * It has been simulated on Windows machines, so I can't guarantee anything on simulation over Linux though I don't think there could be any problem at all. Please update me on this.
    * It has been synthesized and tested in a Xilinx Virtex-2 XC2V1000-4 running at 40 MHz (that is why it takes 40 ms, the testbench simulates a 40 MHz clock). This is one of the worst speed grades (-4), so with most other FPGAs you will get faster implementations.
    * It uses at minimum 11 BlockRAMs (one of them for the DCT block), but you will need some more to store the final compressed image (whose size varies as compression depends on the image as well as in the compression level), the source code in the Downloads page includes a memory for this purpose of 51.200 bytes (buffer_img), that is 25 BlockRAMs.
    * There is an easily overridable limitation on input image resolution, for a description on how to change the maximum input image size see the Notes at the beginning of the main source file "compressor.vhd".
    * The only real limitation is that the input image must have width and height multiple of 16 (that is, an image 32x32 will produce a strictly compliant JPEG image file, but not a 32x24 or a 24x32 input image, although the resulting image will more likely still be viewable), this is due to the subsampling method employed. This limitation could be overriden with some extra logic (for padding as indicated in the JPEG standard). 

    * Finally I would like to apologize if you find this code somewhat messy. When I programmed it, I imposed myself very strict deadlines and making it opensource was not in my mind, mainly because, if I were to do it again, I would do it in other way to get much more performance. The main problem faced with this implementation was a very scarce availability of BlockRAM in the target FPGA, so some areas that could perfectly run in parallel, speeding a lot the whole process, had to be made sequential in order to save up BlockRAMs. Anyways, this code works (it functioned as a webcam, attached to a CMOS sensor) and, though not as fast as it could be, it has a good performance. This source code is LGPL. Any questions, suggestions, comments (positive criticism) is always welcome. 


- Functional Description

The source code is composed of 9 VHDL files:

    * compressor_tb.vhd : Testbench file for the project. It reads an uncompressed BMP located in the project folder (not necessarily the source code folder) and outputs a JPG compressed image (the actual writing of the output file is carried out by the next file). 

    * compressor.vhd : This is the main code file. Inside, there are a few concurrent instructions, declarations of the needed componentes (BlockRAMs and DCT block) and two processes which are responsible of the whole compression process. To better follow the next explanation consult the figure located after this explanation. The first process is RGB2YCbCr is in charge of converting the input signals (Red, Green and Blue, strobed by ProcessRGB signal) to the YCbCr color space and to apply a level shift as specified by the JPEG standard. The second is the process JPEG, it feeds the DCT block (DCT-2D Core in the figure) with data from the previous process (the interface between the two processes are three memories (Y, Cb and Cr Compression Buffers in the figure), one for luminance (Y) data, one for blue chrominance (Cb) and another for red chrominance (Cr)); after the DCT has processed the data (calculated the Forward 2D-DCT) it is quantized with the values stored in memory q_rom (Q ROM in the figure). As this quantization implies dividing by an integer number (remember that only divisions by power of 2 numbers and multiplications times an integer can be made really efficient in digital logic thru the use of shifts, right for division, left for multiplication), the solution was to convert the number to divide into a fraction with denominator 16384 for all the quantization values (128 for every compression level and there are three of these) so that we can multiply times an integer (left shift and some additions) and divide by a power of 2 number (right shift). For instance: to divide by 11 is the same as multiplying times 1/11, which is almost the same as multiplying times 1489/16384, which is actually equal to dividing by 11.003357. Using this apparently complicated way of handling real number operations we get the fastest implementation and no floating point, only a minimal error (you would never notice the visual difference). After quantization of all the values, Huffman encoding starts by looking up the tables stored in huff_rom (Huffman ROM in the figure) and storing in the final image buffer the compressed image (should be buffer_img but in the figure is left as a blue upwards pointing arrow). By the way, at the beginning, when a compression level is selected and the port CompressImage signals the start of a new image, the header in buffer_img (yes, there are some hundred bytes pre-stored with the fixed fields in the header) is updated with image dimensions and with the quantization tables for the selected compression (they are read from the ROM tabla_q in the figure and copied to the appropiate location in buffer_img). 

    * buffer_img.vhd : CoreGen generated file with wrapper for the 25 SP BlockRAMs, Read/Write, WidthxDepth = 8 bits x 51200, where final image is stored. 

    * buffer_comp.vhd : CoreGen generated file with wrapper for 5 SP BlockRAMs, Read/Write, WidthxDepth = 12 bits x 5632. Y pixels (8 bits) stored here and also, after transformation by DCT, their quantized counterparts (12 bits) are stored over them. 

    * buffer_comp_chrom.vhd : CoreGen generated file with wrapper for 1 SP BlockRAM, Read/Write, WidthxDepth = 12 bits x 1408. This component is instantiated twice, one for Cb pixels, and other for Cr pixels. Cx pixels (8 bits) stored here and also, after transformation by DCT, their quantized counterparts (12 bits) are stored over them. 

    * huff_rom.vhd : CoreGen generated file with wrapper for 1 SP BlockRAM, Read Only, WidthxDepth = 20 bits x 352. Huffman Code Tables stored here. 

    * q_rom.vhd : CoreGen generated file with wrapper for 1 SP BlockRAM, Read Only, WidthxDepth = 13 bits x 384. Quantization Numerators stored here for multiplication and later division by 16384 as explained above. Three compression levels, two tables for each one (AC and DC), 64 elements in each one : 3x2x64=384. 

    * tabla_q.vhd : CoreGen generated file with wrapper for 1 SP BlockRAM, Read Only, WidthxDepth = 8 bits x 384. Quantization Tables stored here for updating of the final JPEG file header. Three compression levels, two tables for each one (AC and DC), 64 elements in each one : 3x2x64=384. 

    * dct2d.vhd : CoreGen generated file with wrapper for 2-D Discrete Cosine Transform (Forward DCT), Data Width = 8 bits Signed, Coefficients Width = 24 (Enable Symmetry), Precision Control: Round, Internal Width: 19, Result Width: 19, Performance: Clock Cycles per input=9, Transpose Memory = Block, Reset: No. (Results: Latency = 95 cycles, Row Latency = 15 cycles, Column Latency = 15 cycles). Takes as input sixty-four 8 bits signed values and outputs sixty-four 19 bits signed numbers in the frequency domain (the LSBs are decimals). 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
懂色av一区二区三区免费看| 日韩国产欧美在线观看| 7777精品伊人久久久大香线蕉的| 色素色在线综合| 一本大道av一区二区在线播放| a级高清视频欧美日韩| 成人福利视频在线看| 国产91精品精华液一区二区三区| 国产麻豆欧美日韩一区| 韩国av一区二区三区| 国产精品一区三区| 成人a级免费电影| 一本久久精品一区二区| 欧美在线观看一区| 91精品国产高清一区二区三区蜜臀| 欧美一级精品大片| 久久精品免费在线观看| 亚洲日本护士毛茸茸| 亚洲1区2区3区视频| 久久国产精品色| 成人性生交大合| 欧美日韩在线播放三区四区| 欧美一区二区三区白人| 欧美国产日本韩| 亚洲一区二区视频在线| 精东粉嫩av免费一区二区三区| 国产成人精品影院| 91麻豆国产福利精品| 777xxx欧美| 亚洲欧美综合在线精品| 日本vs亚洲vs韩国一区三区| 国产91清纯白嫩初高中在线观看| 91在线观看视频| 精品久久人人做人人爽| 亚洲嫩草精品久久| 捆绑调教一区二区三区| 99久久久精品免费观看国产蜜| 7777精品伊人久久久大香线蕉的 | 一区二区三区美女| 美腿丝袜亚洲一区| 91在线国产福利| 精品成a人在线观看| 亚洲一区免费观看| 国产91富婆露脸刺激对白| 欧美日韩一区国产| 欧美激情自拍偷拍| 毛片av一区二区三区| 色就色 综合激情| 中文av一区特黄| 午夜精品一区二区三区免费视频 | 欧美激情综合网| 日韩经典中文字幕一区| 色综合久久综合网欧美综合网 | 国产成人综合网| 日韩一区二区在线免费观看| 亚洲精品视频一区| voyeur盗摄精品| 久久精品网站免费观看| 久久国产精品99精品国产| 欧美日韩视频专区在线播放| 中文av一区二区| 国产成人午夜电影网| 日韩免费看的电影| 日韩中文欧美在线| 欧美男男青年gay1069videost| 综合久久久久久久| 99久久精品国产观看| 国产精品天美传媒沈樵| 国产电影一区二区三区| 久久久99精品免费观看| 国产精品一区2区| 久久香蕉国产线看观看99| 久久 天天综合| 精品久久久久久久人人人人传媒 | 国产人久久人人人人爽| 国产在线不卡一区| 国产欧美1区2区3区| 国产精品综合久久| 欧美国产精品专区| kk眼镜猥琐国模调教系列一区二区| 中文av一区二区| 91蜜桃网址入口| 亚洲永久免费视频| 欧美一区二视频| 国模一区二区三区白浆| 国产午夜亚洲精品理论片色戒 | 亚洲欧美日韩国产另类专区| 色视频成人在线观看免| 亚洲sss视频在线视频| 欧美久久久久免费| 免费日韩伦理电影| 久久久久久久综合色一本| 成人免费的视频| 一区二区三区日韩欧美精品| 精品视频在线视频| 久久www免费人成看片高清| 国产婷婷色一区二区三区| 色综合久久久久网| 欧美aa在线视频| 亚洲国产高清在线观看视频| 一道本成人在线| 免费欧美高清视频| 欧美激情一区不卡| 欧美日韩不卡视频| 国产一区二区三区四| 亚洲精品成人天堂一二三| 欧美人动与zoxxxx乱| 国产一区二区在线影院| 亚洲视频1区2区| 精品成人一区二区三区| 日本高清不卡aⅴ免费网站| 日韩激情av在线| 国产精品久久久久久久蜜臀| 欧美丝袜第三区| 国产精品一区二区三区四区| 最新日韩av在线| 精品国产一区二区精华| 99国产精品久久久久久久久久| 奇米影视一区二区三区小说| 亚洲欧洲日产国码二区| 精品久久免费看| 欧美日韩国产欧美日美国产精品| 国产91高潮流白浆在线麻豆| 婷婷久久综合九色综合绿巨人| 亚洲国产经典视频| 日韩午夜激情视频| 欧美日韩一级二级| 波多野结衣在线一区| 久久精品国产澳门| 亚洲国产精品久久人人爱| 亚洲欧洲精品天堂一级| 久久你懂得1024| 6080yy午夜一二三区久久| 在线一区二区视频| 99在线精品一区二区三区| 国产精品亚洲第一| 久久99精品国产.久久久久久 | 不卡视频在线观看| 国产真实乱偷精品视频免| 日本视频免费一区| 午夜欧美在线一二页| 亚洲一区在线观看网站| 一区二区免费在线| 国产精品久久久久久久久搜平片 | 欧美日本韩国一区二区三区视频| 成人视屏免费看| 国产激情一区二区三区桃花岛亚洲| 美女网站色91| 精品制服美女久久| 麻豆成人91精品二区三区| 蜜桃av一区二区在线观看| 久久精品免费观看| 久久国产剧场电影| 韩国欧美一区二区| 国产精品99久久久| av爱爱亚洲一区| 色国产综合视频| 欧美日韩一区二区欧美激情| 欧美日韩国产综合久久| 91精品国产一区二区人妖| 欧美一区二区私人影院日本| 日韩一级片网站| 久久免费美女视频| 国产精品免费网站在线观看| 亚洲色图在线播放| 亚洲小说春色综合另类电影| 日韩av在线发布| 国产美女一区二区| 91在线视频免费观看| 在线视频欧美精品| 日韩欧美亚洲国产另类| 国产亚洲精品久| 亚洲色图在线播放| 另类小说视频一区二区| 国产精品一级片在线观看| 99国产精品99久久久久久| 欧美色综合网站| 26uuu久久综合| 亚洲激情中文1区| 久久精品国产亚洲一区二区三区 | 一本到不卡免费一区二区| 欧美系列亚洲系列| 精品久久久久一区二区国产| 国产精品久久久久影视| 午夜伦理一区二区| 国内精品视频一区二区三区八戒 | 成年人国产精品| 欧美另类高清zo欧美| 国产亚洲欧美激情| 亚洲一区成人在线| 国产精品亚洲第一| 欧美日韩国产三级| 椎名由奈av一区二区三区| 蜜臀精品一区二区三区在线观看 | 日本视频一区二区三区| 成人国产在线观看| 精品久久久影院| 亚洲成a人在线观看| k8久久久一区二区三区| 欧美精品电影在线播放|