avivideoformattest.java

来自「FMJ(freedom media for java)是java视频开发的新选择」· Java 代码 · 共 445 行 · 第 1/2 页

JAVA
445
字号
				assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", null, 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 3), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));				assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), -1, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 3000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), -1, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));								assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, null, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));				assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, null, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.intArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.intArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));				assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, -1.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, -1.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 3.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));				assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, -1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, -1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 2, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));				assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, -1, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, -1, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 12, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, -1, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, -1, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 13, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));						assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, -1, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, -1, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 14, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));						assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, -1, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, -1, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 15, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));						assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, -1, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, -1, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 16, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));						assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, -1, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, -1, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 8, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));						assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, null)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, null)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));		assertEquals(				new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader)				 .intersects(				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader2)), 				 new AviVideoFormat("xyz", new Dimension(1, 2), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, codecHeader));							}		private void assertEquals(double a, double b)	{		assertTrue(a == b);	}	}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?