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

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

?? 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;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品传媒视频| 91精品国产综合久久久久久漫画| 国产日韩av一区| 国产麻豆精品久久一二三| 欧美xxxxxxxx| 粉嫩一区二区三区在线看| 国产精品美女一区二区三区| 91亚洲精品一区二区乱码| 一区二区三区加勒比av| 欧美日韩和欧美的一区二区| 青青草原综合久久大伊人精品优势| 日韩精品中文字幕在线不卡尤物| 国产一级精品在线| 亚洲欧洲性图库| 欧美精品在线观看一区二区| 另类欧美日韩国产在线| 国产精品欧美极品| 欧美日韩免费一区二区三区 | 欧美一区在线视频| 国产精品一二三区在线| 亚洲美女电影在线| 8x8x8国产精品| 国产91丝袜在线观看| 亚洲免费观看高清完整版在线| 欧美疯狂做受xxxx富婆| 高清国产一区二区| 亚洲狠狠爱一区二区三区| 精品免费国产二区三区| hitomi一区二区三区精品| 亚洲国产精品影院| 久久久影院官网| 日本高清不卡aⅴ免费网站| 日本午夜精品一区二区三区电影| 亚洲国产电影在线观看| 欧美久久久久中文字幕| 成人高清视频在线| 男人操女人的视频在线观看欧美| 国产精品无圣光一区二区| 欧美日韩三级一区| 99这里只有久久精品视频| 七七婷婷婷婷精品国产| 亚洲精品视频免费看| 久久亚洲影视婷婷| 欧美理论电影在线| a4yy欧美一区二区三区| 国产在线精品国自产拍免费| 亚洲成人tv网| 亚洲桃色在线一区| 国产欧美1区2区3区| 欧美不卡一区二区三区| 欧美日韩国产中文| 97se亚洲国产综合自在线观| 国产东北露脸精品视频| 久久国内精品视频| 亚洲bt欧美bt精品777| 最新不卡av在线| 26uuu欧美| 精品国产一区二区三区不卡| 欧美精品777| 在线观看91视频| 一本色道久久综合精品竹菊| 国产剧情在线观看一区二区| 日韩精品欧美精品| 亚洲成人一区在线| 亚洲韩国精品一区| 一区二区三区中文免费| 中文字幕佐山爱一区二区免费| 亚洲国产精品成人综合色在线婷婷| 欧美大片国产精品| 精品国产免费人成电影在线观看四季| 欧美日韩亚洲国产综合| 欧美在线你懂得| 91福利在线导航| 色老综合老女人久久久| 日本福利一区二区| 91激情五月电影| 欧日韩精品视频| 欧美影院午夜播放| 欧美日韩日日骚| 日韩一区二区三免费高清| 911精品国产一区二区在线| 欧美日韩精品一区二区三区蜜桃 | 成人动漫视频在线| av在线不卡免费看| 色综合久久88色综合天天6| 色老汉av一区二区三区| 欧美色图片你懂的| 欧美精品xxxxbbbb| 欧美挠脚心视频网站| 91精品啪在线观看国产60岁| 欧美一级久久久| 久久蜜臀中文字幕| 国产精品久久久久aaaa樱花| 亚洲欧美aⅴ...| 午夜视频久久久久久| 久久精品国产99| 国产精品99久久久久久似苏梦涵| 成人激情视频网站| 欧美色中文字幕| 欧美一级片免费看| 国产日韩亚洲欧美综合| 亚洲人午夜精品天堂一二香蕉| 亚洲国产精品久久一线不卡| 男人的天堂亚洲一区| 国产高清一区日本| 色av综合在线| 欧美成人vr18sexvr| 中文字幕不卡在线播放| 亚洲成人黄色小说| 国精产品一区一区三区mba桃花| 成人免费高清在线| 91小视频在线观看| 欧美一区二区日韩一区二区| 日本一区二区三区在线不卡| 亚洲一区二区在线免费观看视频 | 丝袜美腿亚洲色图| 国产精品自产自拍| 在线观看免费视频综合| 精品人在线二区三区| 成人欧美一区二区三区1314| 日韩av网站在线观看| 国产成人在线看| 欧美日韩午夜精品| 日本一二三四高清不卡| 日本女人一区二区三区| 99久久久久免费精品国产| 日韩欧美国产综合在线一区二区三区| 中文字幕在线一区免费| 美女视频黄a大片欧美| 91在线观看成人| 亚洲精品一区二区三区香蕉| 亚洲综合精品自拍| 国产成人av网站| 日韩免费福利电影在线观看| 亚洲伦理在线免费看| 高清日韩电视剧大全免费| 日韩欧美色综合| 亚洲愉拍自拍另类高清精品| 丁香六月久久综合狠狠色| 日韩免费看网站| 亚洲午夜激情网站| 97精品国产97久久久久久久久久久久| 26uuu色噜噜精品一区二区| 亚洲高清久久久| 色婷婷综合久久久中文一区二区| 久久影音资源网| 蜜臀久久99精品久久久久宅男| 91极品视觉盛宴| 国产精品国产三级国产aⅴ原创 | 91丨porny丨蝌蚪视频| 久久综合久久鬼色中文字| 天堂成人免费av电影一区| 91丨九色丨国产丨porny| 国产网红主播福利一区二区| 久久国产剧场电影| 3atv一区二区三区| 亚洲午夜久久久久久久久电影网| 99久久精品国产导航| 国产精品免费视频网站| 国产成人亚洲精品狼色在线| 精品999在线播放| 免费的国产精品| 欧美一级二级三级蜜桃| 午夜视频一区二区三区| 欧美日韩国产不卡| 五月天一区二区| 精品视频一区二区三区免费| 亚洲精品国产一区二区精华液 | 欧美在线你懂得| 亚洲综合自拍偷拍| 一本一本大道香蕉久在线精品| 中文字幕日韩精品一区| 99久久久久久99| 亚洲欧美日韩精品久久久久| 色综合天天视频在线观看| 亚洲情趣在线观看| 日本乱码高清不卡字幕| 亚洲一区二区美女| 6080国产精品一区二区| 麻豆国产精品777777在线| 欧美精品一区二区在线播放| 激情国产一区二区| 久久久久99精品国产片| 成人免费高清视频在线观看| 《视频一区视频二区| 欧美色国产精品| 免费看日韩精品| 国产丝袜欧美中文另类| 99精品国产91久久久久久| 一区二区高清免费观看影视大全| 欧美群妇大交群中文字幕| 麻豆91小视频| 欧美激情一区二区三区全黄 | 欧洲视频一区二区| 三级精品在线观看| 久久综合久久久久88| 色综合久久久久综合体| 日韩精品一区第一页| 国产亚洲午夜高清国产拍精品 | 日本怡春院一区二区|