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

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

?? compressor.vhd

?? vhdl source for jpeg beginner
?? VHD
?? 第 1 頁 / 共 5 頁
字號:
------------------------------------------------------------------------------------------------------- Title       : JPEG Hardware Compressor-- Design      : jpeg-- Author      : Victor Lopez Lorenzo-- E-mail      : galland@opencores.org-----------------------------------------------------------------------------------------------------------    Copyright (C) 2004  Victor Lopez Lorenzo----    This library is free software; you can redistribute it and/or--    modify it under the terms of the GNU Lesser General Public--    License as published by the Free Software Foundation; either--    version 2.1 of the License, or (at your option) any later version.----    This library is distributed in the hope that it will be useful,--    but WITHOUT ANY WARRANTY; without even the implied warranty of--    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU--    Lesser General Public License for more details.----    You should have received a copy of the GNU Lesser General Public--    License along with this library; if not, write to the Free Software--    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA--                                                                                                 ---------------------------------------------------------------------------------------------------------	Contributors :--		Peter Eisemann   -  Fixed GetCategory, writes and file declarations in order to--						simulate code under ModelSim--                                                                                                 ---------------------------------------------------------------------------------------------------------    --    IMPORTANT NOTES :----    This source code features a compliant JPEG compressor Baseline DCT with--    Huffman enconding 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.----    The maximum number of columns is limited, in this source code, to 352, but--    it can be very easily changed to as many as wanted just by recustomizing--    the BlockRAMs used for buffer_comp and buffer_comp_chrom as indicated in the--    project's documentation, plus changing their associated signals in this--    file and updating two functions: Mult_Columns and Mult_Half_Columns.--    For the BlockRAMs, mainly:--       - buffer_comp must have a depth of (number_of_columns x 16) positions--       - buffer_comp_chrom must have a depth of (number_of_columns x 4) positions--    width is 12 bits for both----    There is another easily overridable limitation, buffer_img, the core of BlockRAM--    memory used to save the final compressed image. I generated one of 51200 bytes,--    if it is not enough for your application (remember that final compressed images--    vary in size even with similar resolution input images as some compress better--    than others), largening it may be as simple as recustomizing the core and--    changing two signals (addri and addribk) and one constant (MaxImageSize),--    apart from copying the new buffer_img declaration.--    --    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).----    I 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.--    --    As a part of this project there is a quite useful Testbench that takes as input--    any BMP (24 bit color) image and compresses it with this code, outputting a JPG--    file that you can view in your computer.-----------------------------------------------------------------------------------------------------library IEEE;use IEEE.STD_LOGIC_1164.all;use IEEE.numeric_std.all;use IEEE.std_logic_unsigned.all; --for arithmetic ops--pragma translate_offlibrary STD;use STD.textio.all;use IEEE.std_logic_textio.all;library XilinxCoreLib;--pragma translate_onlibrary UNISIM; use UNISIM.all; entity Compressor is port ( 	      clk : in STD_LOGIC;	      reset : in STD_LOGIC;         --Control/Status Interface         CompressImage : in std_logic; --must be active high for just one cycle         Compression : in std_logic_vector(1 downto 0); --Quality: 00 = low, 01 = medium, 10 = high         Mono : in std_logic; --active high for grey-scale input image (Red=Green=Blue)         ImgColumns : in std_logic_vector(9 downto 0); --columns in each line of the image to compress         ImgLines : in std_logic_vector(8 downto 0); --lines of the image to compress         Compressing : out std_logic;                  --Data Interface         ProcessRGB : in std_logic;         ProcessingRGB : out std_logic;         Red : in std_logic_vector(7 downto 0);         Green : in std_logic_vector(7 downto 0);         Blue : in std_logic_vector(7 downto 0);                  --JPEG Image BlockRAM (Output) Interface         addr: out std_logic_VECTOR(15 downto 0);         din: out std_logic_VECTOR(7 downto 0);         we: out std_logic);end Compressor;architecture JPG of Compressor is--pragma translate_offfile Debug:   TEXT open WRITE_MODE is "Debug.txt";file DebugY:  TEXT open WRITE_MODE is "DebugY.txt";file DebugCb: TEXT open WRITE_MODE is "DebugCb.txt";file DebugCr: TEXT open WRITE_MODE is "DebugCr.txt";--   file Debug:TEXT is out "Debug.txt";--   file DebugY:TEXT is out "DebugY.txt";--	file DebugCb:TEXT is out "DebugCb.txt";--   file DebugCr:TEXT is out "DebugCr.txt";	constant espacio:string:=" ";   constant espacios:string:="  ";   constant puntoycoma:string:=";";	constant strElemento:string:=" Element: ";   constant strColumna:string:=" Column: ";   constant strLinea:string:=" Line: ";--pragma translate_on   component dct2d port (   	ND: IN std_logic;   	RDY: OUT std_logic;   	RFD: OUT std_logic;   	CLK: IN std_logic;   	DIN: IN std_logic_VECTOR(7 downto 0);   	DOUT: OUT std_logic_VECTOR(18 downto 0));   end component;   component buffer_comp port (   	addr: IN std_logic_VECTOR(12 downto 0);   	clk: IN std_logic;   	din: IN std_logic_VECTOR(11 downto 0);   	dout: OUT std_logic_VECTOR(11 downto 0);   	we: IN std_logic);   end component;      component buffer_comp_chrom port (   	addr: IN std_logic_VECTOR(10 downto 0);   	clk: IN std_logic;   	din: IN std_logic_VECTOR(11 downto 0);   	dout: OUT std_logic_VECTOR(11 downto 0);   	we: IN std_logic);   end component;      component q_rom port (   	addr: IN std_logic_VECTOR(8 downto 0);   	clk: IN std_logic;   	dout: OUT std_logic_VECTOR(12 downto 0));   end component;      component huff_rom port (	   addr: IN std_logic_VECTOR(8 downto 0);	   clk: IN std_logic;	   dout: OUT std_logic_VECTOR(19 downto 0));   end component;   component tabla_q   	port (   	addr: IN std_logic_VECTOR(8 downto 0);   	clk: IN std_logic;   	dout: OUT std_logic_VECTOR(7 downto 0));   end component;      --signals for tabla_q   signal addrTablaQ: std_logic_VECTOR(8 downto 0);  	signal doutTablaQ: std_logic_VECTOR(7 downto 0);      --signal for huff_rom   signal addrH : std_logic_vector(8 downto 0);   signal doutH : std_logic_vector(19 downto 0);      --signals for DCT block	signal ND: std_logic;	signal RDY: std_logic;	signal RFD: std_logic;	signal DIND: std_logic_VECTOR(7 downto 0);	signal DOUTD: std_logic_VECTOR(18 downto 0);      --signals for compression buffer   signal addrY: std_logic_VECTOR(12 downto 0);	signal dinY: std_logic_VECTOR(11 downto 0);	signal doutY: std_logic_VECTOR(11 downto 0);	signal weY: std_logic;   signal addrCb: std_logic_VECTOR(10 downto 0);	signal dinCb: std_logic_VECTOR(11 downto 0);	signal doutCb: std_logic_VECTOR(11 downto 0);	signal weCb: std_logic;   signal addrCr: std_logic_VECTOR(10 downto 0);	signal dinCr: std_logic_VECTOR(11 downto 0);	signal doutCr: std_logic_VECTOR(11 downto 0);	signal weCr: std_logic;                            signal addrY1: std_logic_VECTOR(12 downto 0);   signal addrCb1: std_logic_VECTOR(10 downto 0);      signal addrCr1: std_logic_VECTOR(10 downto 0);      signal addrY2: std_logic_VECTOR(12 downto 0);      signal addrCb2: std_logic_VECTOR(10 downto 0);      signal addrCr2: std_logic_VECTOR(10 downto 0);   	signal dinY1: std_logic_VECTOR(11 downto 0);   signal dinY2: std_logic_VECTOR(11 downto 0);   signal dinCb1: std_logic_VECTOR(11 downto 0);   signal dinCb2: std_logic_VECTOR(11 downto 0);   signal dinCr1: std_logic_VECTOR(11 downto 0);   signal dinCr2: std_logic_VECTOR(11 downto 0);   signal weY1: std_logic;   signal weY2: std_logic;	signal weCb1: std_logic;   signal weCb2: std_logic;	signal weCr1: std_logic;   signal weCr2: std_logic;      --signals for the quantization coefficients ROM   signal addrQ : std_logic_vector(8 downto 0);   signal doutQ : std_logic_vector(12 downto 0);         --this is, (obviously along with the buffer_img blockram core itself) the limiting factor of final compressed image size   signal addri : std_logic_vector(15 downto 0); --to write directly to the port (headers and JPEG size) and read from it   signal addribk : std_logic_vector(15 downto 0); --exclusive when signal Save='1', it holds the current pixel   constant MaxImageSize : std_logic_vector(15 downto 0) :="1100011111111100"; --51196 bytes   --for bigger images, enlarge buffer_img and change these signals' lengths            signal ColumnToCompress : std_logic_vector(9 downto 0);   signal LineToCompress : std_logic_vector(3 downto 0); --goes from 0 to 15, the 16 that may occupy the luminance buffer   signal LineAbsToCompress: std_logic_vector(8 downto 0);   signal MakeDCT : std_logic;   signal CompressingInt : std_logic;      signal Done : std_logic; --the Huffman encoding part rises it for one cycle when finishes   signal StepV : integer range 0 to 5;   signal Save : std_logic;   signal NDe : std_logic;                      signal WriteAdditionalBits : std_logic;      signal WriteTables : std_logic;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产久精国产| 日韩欧美三级在线| 日韩一级视频免费观看在线| 久久婷婷色综合| 欧美国产日韩在线观看| 亚洲自拍与偷拍| 久草在线在线精品观看| 91亚洲精品久久久蜜桃| 日韩一级二级三级| 国产精品成人一区二区艾草| 午夜影院久久久| 韩国午夜理伦三级不卡影院| eeuss国产一区二区三区| 欧美日韩视频一区二区| 2024国产精品| 亚洲乱码国产乱码精品精98午夜| 日韩av中文在线观看| 成人小视频免费在线观看| 欧美日韩国产影片| 国产日本一区二区| 日韩va欧美va亚洲va久久| 成人激情小说网站| 欧美一级xxx| 亚洲日本青草视频在线怡红院| 日韩在线一区二区三区| 不卡视频免费播放| 欧美一级夜夜爽| 亚洲精品水蜜桃| 国产成人精品网址| 欧美一区二区三区白人| 亚洲欧美日韩电影| 国产馆精品极品| 884aa四虎影成人精品一区| 国产精品国产精品国产专区不蜜 | 久久国产综合精品| 91丝袜美女网| 国产亚洲综合性久久久影院| 天天综合日日夜夜精品| 99久久精品情趣| 久久日韩粉嫩一区二区三区| 亚洲h精品动漫在线观看| www.在线欧美| 久久精品网站免费观看| 免费av网站大全久久| 在线观看www91| 中文字幕一区二区日韩精品绯色| 麻豆91在线看| 欧美性受xxxx黑人xyx性爽| 中文一区二区完整视频在线观看| 久久精品国产99久久6| 欧美日韩成人高清| 夜夜嗨av一区二区三区网页| 99久久免费视频.com| 久久久噜噜噜久噜久久综合| 奇米色一区二区三区四区| 欧美色电影在线| 亚洲夂夂婷婷色拍ww47| 91国在线观看| 一区二区在线观看免费视频播放| 99精品桃花视频在线观看| 国产欧美1区2区3区| 国产主播一区二区| 精品久久久久一区二区国产| 美女视频网站黄色亚洲| 3d动漫精品啪啪一区二区竹菊 | 欧美日韩免费电影| 夜夜操天天操亚洲| 91精品1区2区| 一区二区三区四区在线| 色婷婷av一区| 一区二区欧美视频| 欧美特级限制片免费在线观看| 亚洲最色的网站| 欧美色图在线观看| 丝袜美腿亚洲色图| 欧美一区2区视频在线观看| 日本不卡一区二区三区高清视频| 在线成人高清不卡| 免费观看成人鲁鲁鲁鲁鲁视频| 日韩小视频在线观看专区| 理论片日本一区| 久久久精品国产99久久精品芒果 | 中文字幕一区av| 色哟哟在线观看一区二区三区| 国产精品久久午夜夜伦鲁鲁| 99久久99久久精品免费观看 | 色综合久久中文字幕| 亚洲美女一区二区三区| 欧美在线观看一二区| 三级久久三级久久| 欧美精品一区二区三区在线播放| 国产精品18久久久久久久久久久久| 久久精品人人做人人综合| 成人性视频网站| 亚洲免费在线视频一区 二区| 欧美亚洲免费在线一区| 五月婷婷久久丁香| 久久亚洲精品小早川怜子| 粉嫩蜜臀av国产精品网站| 亚洲视频一二三| 欧美高清激情brazzers| 国产麻豆9l精品三级站| 国产精品久久久久久久久晋中 | 日韩黄色免费网站| 精品国产91洋老外米糕| 成人性生交大片免费看在线播放| 亚洲免费观看在线观看| 91精品国产综合久久精品麻豆| 久99久精品视频免费观看| 中文字幕免费不卡| 欧美在线啊v一区| 久久精品国产99国产| 国产精品日韩成人| 欧美日本韩国一区二区三区视频| 狠狠狠色丁香婷婷综合久久五月| 国产精品国产a| 91麻豆精品国产| 国产a视频精品免费观看| 一区二区三区精品视频| 69堂亚洲精品首页| 成人激情小说乱人伦| 亚洲成av人影院在线观看网| 久久免费视频一区| 欧美三级在线播放| 国产精品香蕉一区二区三区| 亚洲精品视频观看| 久久欧美一区二区| 欧美日韩一区二区三区四区| 国产精品一区二区三区网站| 一区二区三区在线高清| 国产午夜精品理论片a级大结局| 欧洲av一区二区嗯嗯嗯啊| 国产精品综合一区二区三区| 一区二区三区在线免费观看| 久久亚洲一区二区三区四区| 欧美视频一区二区三区| 粉嫩aⅴ一区二区三区四区五区| 午夜影视日本亚洲欧洲精品| 国产精品乱子久久久久| 日韩欧美国产电影| 欧美日韩一区久久| 不卡在线观看av| 国产在线视频不卡二| 亚洲一区二区三区视频在线播放| 久久久国产综合精品女国产盗摄| 欧美老女人在线| 91在线云播放| 国产精品综合二区| 久久国内精品自在自线400部| 一区二区三区高清在线| 中文字幕国产一区| 精品国产乱码久久久久久老虎| 欧美主播一区二区三区美女| 成人午夜电影小说| 久久99精品久久久久久国产越南 | 91精品久久久久久蜜臀| 一本久道久久综合中文字幕 | 一区在线播放视频| 久久综合资源网| 欧美一级在线免费| 欧美猛男男办公室激情| 日本精品视频一区二区三区| 国产成人精品三级麻豆| 寂寞少妇一区二区三区| 日本三级亚洲精品| 午夜精品久久久久久久久| 亚洲麻豆国产自偷在线| 国产精品美女久久久久aⅴ| 久久久久久久久久看片| 精品免费一区二区三区| 日韩欧美自拍偷拍| 欧美一区二区视频在线观看| 在线观看国产一区二区| 在线亚洲人成电影网站色www| www.色精品| voyeur盗摄精品| 成人免费的视频| 国产91精品精华液一区二区三区 | 久久精品亚洲麻豆av一区二区| 日韩欧美一卡二卡| 91精品一区二区三区在线观看| 欧美高清一级片在线| 欧美日韩一区二区在线观看视频| 欧美这里有精品| 欧美日韩一区高清| 在线成人高清不卡| 日韩视频在线一区二区| 精品国产污污免费网站入口| 日韩久久免费av| 精品1区2区在线观看| 26uuuu精品一区二区| 国产亚洲人成网站| 国产精品另类一区| 亚洲色欲色欲www在线观看| 一区二区在线观看视频在线观看| 一区二区三区四区亚洲| 午夜亚洲福利老司机| 老司机免费视频一区二区| 国内外成人在线视频| 懂色av中文字幕一区二区三区|