Пример #1
0
		protected Yuv420(Yuv420 original) :
			base(original)
		{ }
Пример #2
0
		public override Draw.Image Shift(Geometry2D.Integer.Size offset)
		{
			Yuv420 result;
			Monochrome y = this.Y.Shift(offset) as Monochrome;
			Monochrome u = this.U.Shift(offset / 2) as Monochrome;
			Monochrome v = this.V.Shift(offset / 2) as Monochrome;
			result = new Yuv420(this.Size);
			result.Buffer.CopyFrom(y.Buffer, 0, 0, y.Length);
			result.Buffer.CopyFrom(u.Buffer, 0, y.Length, u.Length);
			result.Buffer.CopyFrom(v.Buffer, 0, y.Length + u.Length, v.Length);
			return result;
		}