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

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

?? yuvdisplaydialog.cs

?? mpeg4壓縮算法程序
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace MPEGBuilder1UI
{
	/// <summary>
	/// Summary description for YUVDisplayDialog.
	/// </summary>
	public class YUVDisplayDialog : System.Windows.Forms.Form
	{
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.Button button6;
		private System.Windows.Forms.ColumnHeader columnHeader1;
		private System.Windows.Forms.ColumnHeader columnHeader2;
		private System.Windows.Forms.ColumnHeader columnHeader3;
		private System.Windows.Forms.ColumnHeader columnHeader4;
		private System.Windows.Forms.ColumnHeader columnHeader5;
		private System.Windows.Forms.ColumnHeader columnHeader6;
		private System.Windows.Forms.ColumnHeader columnHeader7;
		private System.Windows.Forms.ColumnHeader columnHeader8;
		private System.Windows.Forms.ColumnHeader columnHeader9;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.RadioButton radioButton5;
		private System.Windows.Forms.RadioButton radioButton6;
		private System.Windows.Forms.RadioButton radioButton4;
		private System.Windows.Forms.RadioButton radioButton3;
		private System.Windows.Forms.RadioButton radioButton2;
		private System.Windows.Forms.RadioButton radioButton1;
		private System.Windows.Forms.Label label1;

		private byte[,] valueMatrix = new byte[8,8];
		private int quadX = 0;
		private int quadY = 0;
		private System.Windows.Forms.Label label2;
		private int buttonNumber = 1;

		public YUVDisplayDialog()
		{
			InitializeComponent();
		}

		public YUVDisplayDialog(Bitmap img)
		{
			// Load image section into picture box
			InitializeComponent();
			pictureBox1.Image = img;

			radioButton1.Checked = true;

			quadX = 0;
			quadY = 0;
			buttonNumber = 1;
			fillLV();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.listView1 = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
			this.button4 = new System.Windows.Forms.Button();
			this.button6 = new System.Windows.Forms.Button();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label2 = new System.Windows.Forms.Label();
			this.radioButton6 = new System.Windows.Forms.RadioButton();
			this.radioButton5 = new System.Windows.Forms.RadioButton();
			this.label1 = new System.Windows.Forms.Label();
			this.radioButton1 = new System.Windows.Forms.RadioButton();
			this.radioButton3 = new System.Windows.Forms.RadioButton();
			this.radioButton4 = new System.Windows.Forms.RadioButton();
			this.radioButton2 = new System.Windows.Forms.RadioButton();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// pictureBox1
			// 
			this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.pictureBox1.Location = new System.Drawing.Point(16, 16);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(128, 128);
			this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
			this.pictureBox1.TabIndex = 0;
			this.pictureBox1.TabStop = false;
			// 
			// listView1
			// 
			this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						this.columnHeader1,
																						this.columnHeader2,
																						this.columnHeader3,
																						this.columnHeader4,
																						this.columnHeader5,
																						this.columnHeader6,
																						this.columnHeader7,
																						this.columnHeader8,
																						this.columnHeader9});
			this.listView1.GridLines = true;
			this.listView1.Location = new System.Drawing.Point(192, 16);
			this.listView1.Name = "listView1";
			this.listView1.Size = new System.Drawing.Size(360, 168);
			this.listView1.TabIndex = 1;
			this.listView1.View = System.Windows.Forms.View.Details;
			// 
			// columnHeader1
			// 
			this.columnHeader1.Text = "Pixel";
			this.columnHeader1.Width = 40;
			// 
			// columnHeader2
			// 
			this.columnHeader2.Text = "x0";
			this.columnHeader2.Width = 40;
			// 
			// columnHeader3
			// 
			this.columnHeader3.Text = "x1";
			this.columnHeader3.Width = 40;
			// 
			// columnHeader4
			// 
			this.columnHeader4.Text = "x2";
			this.columnHeader4.Width = 40;
			// 
			// columnHeader5
			// 
			this.columnHeader5.Text = "x3";
			this.columnHeader5.Width = 40;
			// 
			// columnHeader6
			// 
			this.columnHeader6.Text = "x4";
			this.columnHeader6.Width = 40;
			// 
			// columnHeader7
			// 
			this.columnHeader7.Text = "x5";
			this.columnHeader7.Width = 40;
			// 
			// columnHeader8
			// 
			this.columnHeader8.Text = "x6";
			this.columnHeader8.Width = 40;
			// 
			// columnHeader9
			// 
			this.columnHeader9.Text = "x7";
			this.columnHeader9.Width = 40;
			// 
			// button4
			// 
			this.button4.Location = new System.Drawing.Point(200, 336);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(75, 40);
			this.button4.TabIndex = 5;
			this.button4.Text = "Calculate DCT";
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// button6
			// 
			this.button6.Location = new System.Drawing.Point(424, 336);
			this.button6.Name = "button6";
			this.button6.Size = new System.Drawing.Size(75, 40);
			this.button6.TabIndex = 7;
			this.button6.Text = "Close";
			this.button6.Click += new System.EventHandler(this.button6_Click);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.label2,
																					this.radioButton6,
																					this.radioButton5,
																					this.label1,
																					this.radioButton1,
																					this.radioButton3,
																					this.radioButton4,
																					this.radioButton2});
			this.groupBox1.Location = new System.Drawing.Point(16, 168);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(136, 224);
			this.groupBox1.TabIndex = 14;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Component Select";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(24, 128);
			this.label2.Name = "label2";
			this.label2.TabIndex = 17;
			this.label2.Text = "Color Component";
			// 
			// radioButton6
			// 
			this.radioButton6.Location = new System.Drawing.Point(16, 192);
			this.radioButton6.Name = "radioButton6";
			this.radioButton6.Size = new System.Drawing.Size(64, 24);
			this.radioButton6.TabIndex = 16;
			this.radioButton6.Text = "Pb";
			this.radioButton6.CheckedChanged += new System.EventHandler(this.radioButton6_CheckedChanged_1);
			// 
			// radioButton5
			// 
			this.radioButton5.Location = new System.Drawing.Point(16, 152);
			this.radioButton5.Name = "radioButton5";
			this.radioButton5.Size = new System.Drawing.Size(48, 24);
			this.radioButton5.TabIndex = 15;
			this.radioButton5.Text = "Pr";
			this.radioButton5.CheckedChanged += new System.EventHandler(this.radioButton5_CheckedChanged_1);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(32, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(64, 16);
			this.label1.TabIndex = 12;
			this.label1.Text = "Y Quadrant";
			// 
			// radioButton1
			// 
			this.radioButton1.Location = new System.Drawing.Point(16, 48);
			this.radioButton1.Name = "radioButton1";
			this.radioButton1.Size = new System.Drawing.Size(56, 24);
			this.radioButton1.TabIndex = 13;
			this.radioButton1.Text = "Upper Left";
			this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged_1);
			// 
			// radioButton3
			// 
			this.radioButton3.Location = new System.Drawing.Point(16, 88);
			this.radioButton3.Name = "radioButton3";
			this.radioButton3.Size = new System.Drawing.Size(56, 24);
			this.radioButton3.TabIndex = 15;
			this.radioButton3.Text = "Lower Left";
			this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged_1);
			// 
			// radioButton4
			// 
			this.radioButton4.Location = new System.Drawing.Point(72, 88);
			this.radioButton4.Name = "radioButton4";
			this.radioButton4.Size = new System.Drawing.Size(56, 24);
			this.radioButton4.TabIndex = 16;
			this.radioButton4.Text = "Lower Right";
			this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged_1);
			// 
			// radioButton2
			// 
			this.radioButton2.Location = new System.Drawing.Point(72, 48);
			this.radioButton2.Name = "radioButton2";
			this.radioButton2.Size = new System.Drawing.Size(56, 24);
			this.radioButton2.TabIndex = 14;
			this.radioButton2.Text = "Upper Right";
			this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged_1);
			// 
			// YUVDisplayDialog
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(584, 397);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.button6,
																		  this.button4,
																		  this.listView1,
																		  this.pictureBox1,
																		  this.groupBox1});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "YUVDisplayDialog";
			this.Text = "YUVDisplayDialog";
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void button6_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void button4_Click(object sender, System.EventArgs e)
		{
			// Calculate DCT and display in new dialog
			DCTCalculationDialog dlg = new DCTCalculationDialog(valueMatrix);
			dlg.ShowDialog();
		}

		private void radioButton1_CheckedChanged_1(object sender, System.EventArgs e)
		{
			// Upper left Brightness quadrant of image section
			quadX = 0;
			quadY = 0;
			buttonNumber = 1;
			fillLV();
		}

		private void radioButton2_CheckedChanged_1(object sender, System.EventArgs e)
		{
			// Upper right Brightness quadrant of image section
			quadX = 8;
			quadY = 0;
			buttonNumber = 2;
			fillLV();
		}

		private void radioButton3_CheckedChanged_1(object sender, System.EventArgs e)
		{
			// Lower left Brightness quadrant of image section
			quadX = 0;
			quadY = 8;
			buttonNumber = 3;
			fillLV();
		}

		private void radioButton4_CheckedChanged_1(object sender, System.EventArgs e)
		{
			// Lower right Brightness quadrant of image section
			quadX = 8;
			quadY = 8;
			buttonNumber = 4;
			fillLV();
		}

		private void radioButton5_CheckedChanged_1(object sender, System.EventArgs e)
		{
			// Pr color component of image section
			quadX = 0;
			quadY = 0;
			buttonNumber = 5;
			fillLV();
		}

		private void radioButton6_CheckedChanged_1(object sender, System.EventArgs e)
		{
			// Pb color component of image section
			quadX = 0;
			quadY = 0;
			buttonNumber = 6;
			fillLV();
		}

		private void fillLV()
		{
			// Write selected quadrant of component values into ListView
			int i, j;
			string[] rowRGB = new string[9];
			byte pixelColor;
			double Y, Pr, Pb;
			double pixelR, pixelG, pixelB;

			Bitmap img = new Bitmap(pictureBox1.Image);

			listView1.Items.Clear();

			for (i=quadY; i<quadY+8; i++)
			{
				rowRGB[0] = "y" + i.ToString();
				for (j=quadX; j<quadX+8; j++)
				{
					if (buttonNumber < 5)
					{
						pixelR = img.GetPixel(j,i).R;
						pixelG = img.GetPixel(j,i).G;
						pixelB = img.GetPixel(j,i).B;
						Y = (219.0*(0.59*pixelR + 0.30*pixelG + 0.11*pixelB) / 255.0) + 16.0;
						pixelColor = (byte) Y;
						listView1.ForeColor = Color.Black;
					}
					else if (buttonNumber == 5)
					{
						pixelR = img.GetPixel(j*2,i*2).R;
						pixelG = img.GetPixel(j*2,i*2).G;
						pixelB = img.GetPixel(j*2,i*2).B;
						Pr = (224.0*(0.50*pixelR - 0.42*pixelG - 0.08*pixelB) / 255.0) + 128.0;
						pixelColor = (byte) Pr;
						listView1.ForeColor = Color.Red;
					}
					else
					{
						pixelR = img.GetPixel(j*2,i*2).R;
						pixelG = img.GetPixel(j*2,i*2).G;
						pixelB = img.GetPixel(j*2,i*2).B;
						Pb = (224.0*(-0.17*pixelR - 0.33*pixelG + 0.50*pixelB) / 255.0) + 128.0;
						pixelColor = (byte) Pb;
						listView1.ForeColor = Color.Blue;
					}

					rowRGB[j-quadX+1] = pixelColor.ToString();

					valueMatrix[i-quadY,j-quadX] = pixelColor;
				}
				listView1.Items.Add(new ListViewItem(rowRGB));
			}
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产麻豆精品| 91精品国产色综合久久ai换脸| 在线观看精品一区| 久久久久久电影| 亚洲一区二区视频在线| 成人午夜免费视频| 欧美一区二区三区在线观看视频| 国产精品久久久久久久久图文区| 肉色丝袜一区二区| 日本韩国精品在线| 欧美国产日产图区| 国产一区二区网址| 欧美一区二区三区的| 亚洲乱码日产精品bd| 国产成人亚洲精品狼色在线| 日韩视频免费观看高清完整版在线观看| 最近中文字幕一区二区三区| 国产一区日韩二区欧美三区| 日韩欧美国产综合一区| 亚洲第一会所有码转帖| 在线观看网站黄不卡| 亚洲精品欧美综合四区| 成人福利电影精品一区二区在线观看| 亚洲欧洲色图综合| 国产裸体歌舞团一区二区| 日韩精品一区二区三区在线 | 色欲综合视频天天天| 国产欧美日韩在线看| 精品在线播放免费| 日韩欧美国产1| 另类综合日韩欧美亚洲| 日韩精品影音先锋| 久久99国产精品成人| 精品免费视频.| 九九在线精品视频| 日韩女优av电影| 激情深爱一区二区| 久久亚洲私人国产精品va媚药| 琪琪久久久久日韩精品| 欧美一区二区精品在线| 裸体歌舞表演一区二区| 日韩一级大片在线| 国产一区二区三区电影在线观看 | 欧美三区在线视频| 视频一区在线播放| 日韩欧美另类在线| 丁香婷婷综合激情五月色| 亚洲欧洲日韩女同| 欧美日韩精品综合在线| 毛片av中文字幕一区二区| 久久综合久久综合久久| 成人午夜视频在线| 一区二区三区加勒比av| 欧美精品免费视频| 国产精品一区二区你懂的| 综合网在线视频| 精品视频1区2区| 国产在线精品国自产拍免费| 中文字幕在线观看一区| 欧美色图一区二区三区| 久久99这里只有精品| 国产精品久久久久久户外露出| 91精品福利视频| 久久激五月天综合精品| 日韩理论片一区二区| 51精品久久久久久久蜜臀| 国产一区二区三区视频在线播放| 自拍偷拍亚洲激情| 91精品国产全国免费观看| 丁香六月久久综合狠狠色| 亚洲高清不卡在线| 国产婷婷精品av在线| 欧美日韩在线播放一区| 国产精品12区| 五月激情六月综合| 国产精品三级视频| 日韩三级免费观看| 在线视频国内一区二区| 国产在线精品一区二区| 亚洲福利视频一区| 国产精品人成在线观看免费| 91精品国产黑色紧身裤美女| heyzo一本久久综合| 久久福利资源站| 亚洲精品国产高清久久伦理二区| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美亚洲一区二区在线观看| 国产91综合一区在线观看| 91麻豆免费看| 精彩视频一区二区| 日本免费在线视频不卡一不卡二 | www.日韩av| 国产在线不卡一区| 青娱乐精品视频| 亚洲h精品动漫在线观看| 国产精品热久久久久夜色精品三区| 欧美日韩一区二区三区四区| 一本大道久久精品懂色aⅴ| 国产乱码精品1区2区3区| 青青草原综合久久大伊人精品优势 | 日韩理论电影院| 中文字幕乱码久久午夜不卡| 欧美成人一区二区三区在线观看| 欧美日韩不卡视频| 欧美三日本三级三级在线播放| 成人18精品视频| av一区二区三区| 盗摄精品av一区二区三区| 国产在线精品一区二区三区不卡| 奇米精品一区二区三区在线观看一| 夜夜爽夜夜爽精品视频| 一二三区精品福利视频| 国产精品丝袜黑色高跟| 亚洲国产精品二十页| 国产精品视频九色porn| 国产精品嫩草影院com| 久久久亚洲欧洲日产国码αv| 精品国产麻豆免费人成网站| 日韩三级视频在线看| 精品久久久久久久久久久久久久久久久| 欧美精选在线播放| 日韩欧美你懂的| 国产亚洲va综合人人澡精品| 国产亚洲1区2区3区| 中文字幕一区二区三中文字幕| 中文字幕日韩一区| 一区二区三区毛片| 午夜成人在线视频| 激情综合网天天干| 国产91在线看| 色婷婷综合五月| 51精品久久久久久久蜜臀| 欧美成人官网二区| 国产日韩精品一区二区浪潮av | 99视频一区二区| 在线观看欧美黄色| 日韩视频123| 国产精品污网站| 亚洲高清三级视频| 国产综合色在线视频区| 菠萝蜜视频在线观看一区| 欧美亚洲一区二区在线| 欧美成人精品3d动漫h| 18欧美亚洲精品| 亚洲国产精品久久一线不卡| 美女脱光内衣内裤视频久久网站 | 亚洲一区二区三区免费视频| 午夜成人免费电影| 国产盗摄女厕一区二区三区| 色屁屁一区二区| 欧美xxxxxxxxx| 专区另类欧美日韩| 美女视频黄频大全不卡视频在线播放| 狠狠v欧美v日韩v亚洲ⅴ| 91免费小视频| 精品国偷自产国产一区| 亚洲色图另类专区| 97久久超碰精品国产| 6080日韩午夜伦伦午夜伦| 中文字幕va一区二区三区| 亚洲国产精品视频| 成人免费毛片片v| 日韩欧美久久一区| 亚洲在线视频网站| 国产乱码精品一区二区三区av| 欧美三级日韩三级国产三级| 国产女人aaa级久久久级| 日韩国产欧美三级| 94-欧美-setu| 国产视频一区二区在线观看| 五月激情六月综合| 色综合一区二区| 国产欧美一区二区在线| 琪琪一区二区三区| 欧美日韩高清影院| 一区二区在线电影| 成人一级黄色片| 久久奇米777| 美女精品自拍一二三四| 欧美性视频一区二区三区| 国产精品卡一卡二卡三| 韩国av一区二区三区| 日韩三级电影网址| 男女男精品视频网| 欧美日韩国产小视频| 一区二区三区在线免费播放| proumb性欧美在线观看| 久久精品视频在线看| 激情国产一区二区| 欧美电影免费观看高清完整版| 亚洲成人av资源| 欧美日韩国产系列| 亚洲国产另类精品专区| 欧美日韩一级二级三级| 亚洲午夜久久久久久久久电影院| 色呦呦国产精品| 一区二区三区免费| 欧美在线视频日韩| 亚洲一区在线视频| 欧美高清激情brazzers|