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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? compressor.vhd

?? enkoder jpeg - very good
?? VHD
?? 第 1 頁 / 共 5 頁
字號:
------------------------------------------------------------------------------------------------------- Title       : JPEG Hardware Compressor-- Design      : jpeg-- Author      : Victor Lopez Lorenzo-- E-mail      : victor.lopez ((at)) ono ((dot)) com---- License     : Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported--                http://creativecommons.org/licenses/by-nc-sa/3.0/-----------------------------------------------------------------------------------------------------------    Copyright (C) 2004  Victor Lopez Lorenzo------    PLEASE NOTICE THAT THIS CORE IS LICENSED UNDER http://creativecommons.org/licenses/by-nc-sa/3.0/--    (Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported).--    That means you may use it only for NON-COMMERCIAL purposes.-----------------------------------------------------------------------------------------------------------	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 image size is limited to 352x288----    Another 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.----    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);         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      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;   signal TableData : std_logic_vector(5 downto 0);   signal Table : std_logic;      signal ZRLing : std_logic;   signal RFDInt : std_logic;   signal RFDIntData : std_logic_vector(7 downto 0);         function Multiplier (Num, Prod : in std_logic_vector) return std_logic_vector;   	function Multiplier (Num, Prod : in std_logic_vector) return std_logic_vector is		variable result : std_logic_vector(19 downto 0) := (others => '0');	begin --8 bits * 10 bits both unsigned = 18 bits      result := ('0' & Num(7 downto 0)) * ('0' & Prod);		return result(17 downto 0);	end Multiplier;   function MultiplierQ (Num, Prod : in std_logic_vector) return std_logic_vector;   	function MultiplierQ (Num, Prod : in std_logic_vector) return std_logic_vector is      variable result : std_logic_vector(26 downto 0);      variable UNum : std_logic_vector(11 downto 0);	begin --it is like Multiplier but admits bigger operands: Num (10..0) (signed) and Prod (10..0) (unsigned)      --max result = 1000_0000_0000 * 111_1111_1111 = 1(sign)11_1111_1111_1000_0000_0000 (-2.048 * 2.047 = -4.192.256)      --UPDATE: now Prod may be of up to 13 bits (12..0), so the result will be 24..0      if Num(Num'High) = '1' then --negative number?         UNum := not (Num) + 1; --two's complement to make it positive      else         UNum := Num;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人黄色av网站在线| 不卡在线观看av| 成人网页在线观看| 91精品国产综合久久久久久漫画| 日本韩国欧美在线| 久久久精品综合| 91久久人澡人人添人人爽欧美| 91麻豆视频网站| 国产视频不卡一区| 中文字幕在线免费不卡| 美腿丝袜亚洲综合| 九一久久久久久| hitomi一区二区三区精品| 日韩欧美亚洲国产另类| 亚洲一区二区欧美日韩| 欧美一区二区三区日韩视频| 国产视频视频一区| 亚洲午夜精品网| 成人av在线电影| av高清久久久| 欧美精品vⅰdeose4hd| 亚洲一区二区三区国产| 色天天综合久久久久综合片| 欧美亚洲一区二区在线| 午夜精品影院在线观看| 91黄色激情网站| 国产精品视频你懂的| 日韩高清在线观看| 国产精品视频线看| 99久久伊人久久99| 日本视频一区二区| 精品国产伦理网| 一本大道久久精品懂色aⅴ| 老司机午夜精品| 亚洲视频一二三区| 精品一区二区日韩| 天涯成人国产亚洲精品一区av| 中文字幕免费观看一区| 日韩欧美在线不卡| 欧美日韩视频第一区| 97se亚洲国产综合自在线观| 国产精品亚洲专一区二区三区| 日本午夜一本久久久综合| 亚洲综合激情另类小说区| 国产精品欧美一区喷水| 久久久噜噜噜久噜久久综合| 色综合视频一区二区三区高清| 久久99热这里只有精品| 日韩精品久久久久久| 亚洲第一精品在线| 亚洲图片自拍偷拍| 亚洲福利视频一区| 亚洲一二三区视频在线观看| 亚洲精品免费视频| 亚洲午夜电影在线| 五月天丁香久久| 亚洲国产毛片aaaaa无费看| 亚洲黄色av一区| 亚洲精品国产第一综合99久久| 亚洲欧美在线观看| 亚洲欧美日韩电影| 亚洲一区二区三区三| 亚洲综合成人在线视频| 一区二区三区四区不卡视频| 一区二区日韩电影| 亚洲第一激情av| 免费观看成人av| 免费不卡在线视频| 日韩成人精品在线| 亚洲人成小说网站色在线| 国产精品福利一区| 亚洲一区二区视频| 日本成人在线一区| 国内国产精品久久| 成人亚洲一区二区一| 91原创在线视频| 欧美亚洲禁片免费| 日韩午夜激情视频| 久久夜色精品一区| 亚洲特级片在线| 亚洲444eee在线观看| 麻豆高清免费国产一区| 成人免费观看男女羞羞视频| 欧美精品三级在线观看| 久久久午夜精品| 亚洲国产精品精华液2区45| 一区二区在线免费观看| 亚洲超碰精品一区二区| 国产资源在线一区| 色视频成人在线观看免| 91精品国产乱码| 麻豆成人免费电影| eeuss鲁一区二区三区| 欧美在线免费观看亚洲| 精品久久99ma| 依依成人精品视频| 国模娜娜一区二区三区| 91免费视频网| 久久久久久日产精品| 久久精品无码一区二区三区| 亚洲丰满少妇videoshd| 国产黄色成人av| 一本色道久久加勒比精品| 欧美电影免费观看高清完整版在 | 日韩免费在线观看| 欧美经典一区二区| 午夜影视日本亚洲欧洲精品| 国产激情精品久久久第一区二区| 在线观看成人免费视频| 久久夜色精品一区| 午夜国产精品一区| 99久久精品一区| 日韩丝袜美女视频| 亚洲一区二区三区美女| 波多野结衣中文字幕一区 | 欧美一级淫片007| 亚洲色图清纯唯美| 韩国理伦片一区二区三区在线播放| 91视频一区二区三区| 久久天天做天天爱综合色| 一区2区3区在线看| 紧缚奴在线一区二区三区| 成人自拍视频在线| 欧美一级日韩一级| 专区另类欧美日韩| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产美女在线观看一区| 欧美午夜一区二区三区免费大片| 日本一区二区三区国色天香| 蜜桃av一区二区三区| 欧美亚洲综合色| 国产精品灌醉下药二区| 国产传媒久久文化传媒| 日韩精品一区二区三区三区免费 | 91在线免费播放| 国产欧美一区二区精品性| 奇米影视在线99精品| 欧美色欧美亚洲另类二区| 综合色天天鬼久久鬼色| 高清beeg欧美| 国产校园另类小说区| 麻豆成人91精品二区三区| 欧美日本不卡视频| 亚洲综合成人在线| 日本高清不卡一区| 亚洲免费在线视频一区 二区| 成人爽a毛片一区二区免费| 久久久久亚洲蜜桃| 成人免费毛片aaaaa**| 国产精品国产三级国产a| k8久久久一区二区三区| 亚洲精品欧美在线| 精品视频在线免费| 久久精品噜噜噜成人av农村| 日韩你懂的电影在线观看| 亚洲精品国产品国语在线app| 欧美性三三影院| 视频一区二区不卡| 26uuu色噜噜精品一区二区| 国产精品91一区二区| 亚洲日本va午夜在线影院| 色综合久久综合中文综合网| 亚洲精品日韩一| 日韩欧美色综合| 国产一区二区三区在线观看免费| 国产精品视频线看| 91福利区一区二区三区| 又紧又大又爽精品一区二区| 欧美丰满美乳xxx高潮www| 人人超碰91尤物精品国产| 精品久久五月天| 国产一区二区三区美女| 国产女主播视频一区二区| 91欧美一区二区| 日韩av不卡在线观看| 精品999在线播放| 不卡欧美aaaaa| 亚洲一区精品在线| 欧美va天堂va视频va在线| 激情av综合网| 中文字幕精品一区二区三区精品| 99视频一区二区| 亚洲欧美激情一区二区| 欧美日韩中文另类| 亚洲成人在线观看视频| 欧美精品久久一区| 国产成人免费视频网站| 国产丝袜欧美中文另类| 91日韩精品一区| 日本不卡一区二区三区高清视频| 欧美电影免费观看高清完整版| 国产精品1024| 夜夜精品视频一区二区| 精品久久久三级丝袜| 成人毛片老司机大片| 五月综合激情日本mⅴ| 国产欧美日韩综合精品一区二区| 91在线视频官网| 久久9热精品视频| 亚洲黄色小说网站|