Examples of VideoFormat


Examples of javax.media.format.VideoFormat

  }

  // Display data if monitor is active
  if (isEnabled()) {
      if (bti == null) {
    VideoFormat vf = (VideoFormat) cbuffer.getFormat();
    bti = new BufferToImage(vf);
      }
      if (bti != null && component != null) {
    Image im = bti.createImage(cbuffer);
    Graphics g = component.getGraphics();
View Full Code Here

Examples of javax.media.format.VideoFormat

      // We don't know this particular format.  We'll just
      // leave it alone then.
      return supported;
  }

  return (new VideoFormat(null,
        new Dimension(width, height),
        Format.NOT_SPECIFIED,
        null,
        Format.NOT_SPECIFIED)).intersects(supported);
    }
View Full Code Here

Examples of javax.media.format.VideoFormat

     */
    void setJPEGQuality(Player p, float val) {

  Control cs[] = p.getControls();
  QualityControl qc = null;
  VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);

  // Loop through the controls to find the Quality control for
   // the JPEG encoder.
  for (int i = 0; i < cs.length; i++) {

View Full Code Here

Examples of javax.media.format.VideoFormat

    }
  }
 
  public void testEqualsMatches_VideoFormat()
  {
    final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);

    // equal and match:
    {
      final VideoFormat[] f2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
            (VideoFormat) f1.clone(),
            (VideoFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        VideoFormat f2 = f2s[i];
        assertTrue(f1.equals(f2));
        assertTrue(f1.matches(f2));
        assertTrue(f2.equals(f1));
        assertTrue(f2.matches(f1));
      }
    }
   
    // not equal and not match:
    {
      final VideoFormat[] f2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.CINEPAK, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(1, 0), 1000, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.shortArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 2.f),
                       
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        VideoFormat f2 = f2s[i];
        //System.out.println(f2);
        assertFalse(f1.equals(f2));
        assertFalse(f1.matches(f2));
        assertFalse(f2.equals(f1));
        assertFalse(f2.matches(f1));
      }
    }

    // not equal but match:
    {     
      final VideoFormat[] f2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 2000, Format.byteArray, 1.f),
          new VideoFormat(null, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, null, 1000, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), Format.NOT_SPECIFIED, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, null, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, Format.NOT_SPECIFIED),
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        VideoFormat f2 = f2s[i];
        //System.out.println(f2);
        assertFalse(f1.equals(f2));
        assertTrue(f1.matches(f2));
        assertFalse(f2.equals(f1));
        assertTrue(f2.matches(f1));
      }
    }
  }
View Full Code Here

Examples of javax.media.format.VideoFormat

     
    }
   
    {
      final Format f1 = new Format("abc");
      final Format f2 = new VideoFormat("abc");
      assertFalse(f1.equals(f2));
      assertFalse(f2.equals(f1));
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f2));
         
    }
   
    {
      final Format f1 = new Format(VideoFormat.MPEG);
      final Format f2 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      assertFalse(f1.equals(f2));
      assertFalse(f2.equals(f1));
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f2));
         
    }
    {
      final Format f1 = new Format("abc", Format.byteArray);
      final Format f2 = f1.relax();
      assertTrue(f1.getEncoding().equals(f2.getEncoding()));
      assertTrue(f1.getDataType().equals(f2.getDataType()));

      assertTrue(f1.equals(f2));
      assertTrue(f1.matches(f2));
     
    }
   
    {
      final VideoFormat f1 = new VideoFormat(null);
      final VideoFormat f2 = new VideoFormat(null);
      assertTrue(f1.equals(f2));
      assertTrue(f1.matches(f2));
     
    }
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG);
      final VideoFormat f2 = (VideoFormat) f1.clone();
      assertTrue(f1 != f2);
      assertTrue(f1.getEncoding().equals(f2.getEncoding()));
      assertTrue(f1.equals(f2));
      assertTrue(f1.matches(f2));
     
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG_RTP);
      assertFalse(f1.getEncoding().equals(f2.getEncoding()));
      assertFalse(f1.equals(f2));
      assertFalse(f1.matches(f2));
     
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG);
      final VideoFormat f2 = (VideoFormat) f1.relax();
      assertEquals(f1.getEncoding(), f2.getEncoding());
      assertTrue(f1.equals(f2));
      assertTrue(f1.matches(f2));
     
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = (VideoFormat) f1.relax();
      assertEquals(f1.getEncoding(), f2.getEncoding());
      assertEquals(null, f2.getSize());
      assertEquals(f1.getDataType(), f2.getDataType());
      assertEquals(Format.NOT_SPECIFIED, f2.getMaxDataLength());
      assertEquals((float) Format.NOT_SPECIFIED, f2.getFrameRate());
      assertFalse(f1.equals(f2));
      assertTrue(f1.matches(f2));
     
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG, new Dimension(1, 0), 1000, Format.byteArray, 1.f);
      assertFalse(f1.matches(f2));
      assertFalse(f2.matches(f1));
    }

    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG.toLowerCase(), new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG.toUpperCase(), new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f1));
      assertTrue(f1.equals(f2));
      assertTrue(f2.equals(f1));

    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG, null, 1000, Format.byteArray, 1.f);
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f1));
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1001, Format.byteArray, 1.f);
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f1));
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), Format.NOT_SPECIFIED, Format.byteArray, 1.f);
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f1));
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(null, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f1));
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.intArray, 1.f);
      assertFalse(f1.matches(f2));
      assertFalse(f2.matches(f1));
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, null, 1.f);
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f1));
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 2.f);
      assertFalse(f1.matches(f2));
      assertFalse(f2.matches(f1));
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final VideoFormat f2 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, Format.NOT_SPECIFIED);
      assertTrue(f1.matches(f2));
      assertTrue(f2.matches(f1));
    }
   
   
  }
View Full Code Here

Examples of javax.media.format.VideoFormat

 
  public void testIntersects_VideoFormat()
  {
    if (false)
      return;
    final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
   
    // equals f1
    {
      final VideoFormat[] f2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
            (VideoFormat) f1.clone(),
            (VideoFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        VideoFormat f2 = f2s[i];
        final VideoFormat f3 = (VideoFormat) f1.intersects(f2);
       
        assertTrue(f1.equals(f3));
        assertTrue(f1.matches(f3));
        assertTrue(f3.equals(f1));
        assertTrue(f3.matches(f1))
      }
    }
   
    // explicit intersect results
    {
      final VideoFormat[] f2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 2.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(1, 0), 1000, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1001, Format.byteArray, 1.f),
             
      };
      final VideoFormat[] f1_2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
             
      };
      final VideoFormat[] f2_1s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 2.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(1, 0), 1000, Format.byteArray, 1.f),
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1001, Format.byteArray, 1.f),
             
      };
     
      for (int i = 0; i < f2s.length; ++i)
      {
        final VideoFormat f2 = f2s[i];
        final VideoFormat f1_2 = f1_2s[i];
        final VideoFormat f2_1 = f2_1s[i];
        final VideoFormat f1_2_actual = (VideoFormat) f1.intersects(f2);
        final VideoFormat f2_1_actual = (VideoFormat) f2.intersects(f1);
       
       
//        System.out.println(f1_2);
//        System.out.println(f1_2_actual);
        assertTrue(f1_2.equals(f1_2_actual));
        assertTrue(f1_2.matches(f1_2_actual));
        assertTrue(f1_2_actual.equals(f1_2));
        assertTrue(f1_2_actual.matches(f1_2));
       
//        System.out.println(f2_1);
//        System.out.println(f2_1_actual);
        assertTrue(f2_1.equals(f2_1_actual));
        assertTrue(f2_1.matches(f2_1_actual));
        assertTrue(f2_1_actual.equals(f2_1));
        assertTrue(f2_1_actual.matches(f2_1));
      }
    }


  }
View Full Code Here

Examples of javax.media.format.VideoFormat

public class FormatMatchesIntersectsTest extends TestCase
{

  public void testBig()
  {
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new AudioFormat("ULAW", 8000.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), true);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), true);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
   
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("h263", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("h263/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new RGBFormat(null, -1, Format.byteArray, -1.0f, 24, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, -1, -1)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, -1, -1)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("msadpcm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("alaw", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("dvi/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("g723", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("g723/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("gsm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("gsm/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("gsm/ms", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ima4", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ima4/ms", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, -1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, -1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ULAW", -1.0, 8, 1, -1, -1, 8, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ULAW/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("gsm", 8000.0, -1, 1, -1, -1, 264, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("g723", 8000.0, -1, 1, -1, -1, 192, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("jpeg/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("mpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("mpeg/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).intersects(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f));
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1)), true);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new VideoFormat("h263", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new VideoFormat("h263/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1)), true);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, Format.byteArray, -1.0f, 24, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, -1, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, -1, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("msadpcm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("alaw", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("dvi/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("g723", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("g723/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("gsm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("gsm/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("gsm/ms", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("ima4", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("ima4/ms", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, -1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("LINEAR", -1.0, 16, -1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("ULAW", -1.0, 8, 1, -1, -1, 8, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("ULAW/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpeglayer3", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpeglayer3", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpeglayer3", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpeglayer3", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpeglayer3", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpeglayer3", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("mpegaudio/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("gsm", 8000.0, -1, 1, -1, -1, 264, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new AudioFormat("g723", 8000.0, -1, 1, -1, -1, 192, -1.0, Format.byteArray)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new VideoFormat("jpeg/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new VideoFormat("mpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new VideoFormat("mpeg/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1)), true);
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 0));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xf800, 0x7e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 0));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 0));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xffffffff, 0xffffffff, 0xffffffff, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x7c00, 0x3e0, 0x1f, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, 0)), new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 0));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0xffffffff, 0xffffffff, 0xffffffff, 3, 960, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0xffffffff, 0xffffffff, 0xffffffff, 3, 960, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0xffffffff, 0xffffffff, 0xffffffff, 3, 960, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0xffffffff, 0xffffffff, 0xffffffff, 3, 960, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xff0000, 0xff00, 0xff, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xff0000, 0xff00, 0xff, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xff0000, 0xff00, 0xff, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xff0000, 0xff00, 0xff, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xff0000, 0xff00, 0xff, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xff0000, 0xff00, 0xff, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xff, 0xff00, 0xff0000, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xff, 0xff00, 0xff0000, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xff, 0xff00, 0xff0000, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 1, 320, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 1, 320, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xff, 0xff00, 0xff0000, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xff, 0xff00, 0xff0000, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xff, 0xff00, 0xff0000, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 1, 320, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 1, 320, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 1, 320, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x1, 0x2, 0x3, 4, 1280, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x1, 0x2, 0x3, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x1, 0x2, 0x3, 4, 1280, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x1, 0x2, 0x3, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x1, 0x2, 0x3, 4, 1280, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x1, 0x2, 0x3, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x1, 0x2, 0x3, 4, 1280, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x3, 0x2, 0x1, 4, 1280, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x3, 0x2, 0x1, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x3, 0x2, 0x1, 4, 1280, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x3, 0x2, 0x1, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x3, 0x2, 0x1, 4, 1280, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x3, 0x2, 0x1, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x3, 0x2, 0x1, 4, 1280, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x2, 0x3, 0x4, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x2, 0x3, 0x4, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x2, 0x3, 0x4, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x2, 0x3, 0x4, 4, 1280, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x2, 0x3, 0x4, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x2, 0x3, 0x4, 4, 1280, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x2, 0x3, 0x4, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x2, 0x3, 0x4, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x2, 0x3, 0x4, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x2, 0x3, 0x4, 4, 1280, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x2, 0x3, 0x4, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x2, 0x3, 0x4, 4, 1280, 0, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x4, 0x3, 0x2, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x4, 0x3, 0x2, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x4, 0x3, 0x2, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x4, 0x3, 0x2, 4, 1280, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x4, 0x3, 0x2, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x4, 0x3, 0x2, 4, 1280, 1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0x4, 0x3, 0x2, -1, -1, -1, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0x4, 0x3, 0x2, -1, -1, -1, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0xffffffff, 0xffffffff, 0xffffffff, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0x4, 0x3, 0x2, -1, -1, -1, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x4, 0x3, 0x2, 4, 1280, -1, -1));
    assertEquals(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1).clone(), new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x4, 0x3, 0x2, 4, 1280, -1, -1).intersects(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 256000, Format.byteArray, 1.3414634f, 32, 0x4, 0x3, 0x2, 4, 1280, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), true);
    assertEquals(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1).clone(), new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1).intersects(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 1, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0xf800, 0x7e0, 0x1f, 2, 640, 0, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.shortArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 1, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 128000, Format.byteArray, 1.3414634f, 16, 0x7c00, 0x3e0, 0x1f, 2, 640, 0, 0).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x1, 0x2, 0x3, 3, 960, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 192000, Format.byteArray, 1.3414634f, 24, 0x3, 0x2, 0x1, 3, 960, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 1, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), true);
    assertEquals(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1).clone(), new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1).intersects(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1));
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), true);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff0000, 0xff00, 0xff, 1, 320, 0, -1).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1).matches(new RGBFormat(new java.awt.Dimension(320, 200), 64000, Format.intArray, 1.3414634f, 32, 0xff, 0xff00, 0xff0000, 0, 0, 0, -1)), true);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), true);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new AudioFormat("ULAW", 8000.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), true);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), true);
    assertEquals(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray).intersects(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray));
    assertEquals(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), true);
    assertEquals(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray).intersects(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray));
    assertEquals(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray).matches(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray)), true);
View Full Code Here

Examples of javax.media.format.VideoFormat

  }
 
  public void testBig2()
  {

    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new AudioFormat("ULAW", 8000.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), true);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), true);
    assertEquals(new VideoFormat(null, null, -1, null, -1.0f).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("h263", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("h263/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new RGBFormat(null, -1, Format.byteArray, -1.0f, 24, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, -1, -1)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, -1, -1)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("msadpcm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("alaw", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("dvi/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("g723", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("g723/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("gsm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("gsm/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("gsm/ms", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ima4", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ima4/ms", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, -1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("LINEAR", -1.0, 16, -1, 0, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ULAW", -1.0, 8, 1, -1, -1, 8, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("ULAW/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpeglayer3", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("mpegaudio/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("gsm", 8000.0, -1, 1, -1, -1, 264, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new AudioFormat("g723", 8000.0, -1, 1, -1, -1, 192, -1.0, Format.byteArray)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("jpeg/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("mpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("mpeg/rtp", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).intersects(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f));
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new VideoFormat("cvid", new java.awt.Dimension(320, 200), 16222, Format.byteArray, 1.3414634f).matches(new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f)), true);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), true);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new AudioFormat("ULAW", 8000.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray)), true);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, 0, -1)), false);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1)), false);
    assertEquals(new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, null).matches(new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f)), false);
    assertEquals(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), true);
    assertEquals(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray).intersects(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray));
    assertEquals(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray).matches(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), true);
    assertEquals(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray).intersects(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray)), new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray));
    assertEquals(new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray).matches(new AudioFormat("LINEAR", 22050.0, 8, 1, 1, 0, 8, -1.0, Format.byteArray)), true);
View Full Code Here

Examples of javax.media.format.VideoFormat

    assertEquals(new Format("abc").toString(), "abc");
    assertEquals(new Format(null).toString(), null);
    assertEquals(new Format("abc", Format.byteArray).toString(), "abc");
    assertEquals(new Format("abc", Format.intArray).toString(), "abc");
    assertEquals(new Format("abc", Format.shortArray).toString(), "abc");
    assertEquals(new VideoFormat("abc").toString(), "ABC");
    assertEquals(new VideoFormat(null).toString(), "N/A");
    assertEquals(new VideoFormat(VideoFormat.MPEG).toString(), "MPEG");
   
    assertEquals(new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f).toString(), "MPEG, 0x0, FrameRate=1.0, Length=1000");
    assertEquals(new VideoFormat(VideoFormat.MPEG, null, 1000, Format.byteArray, 1.f).toString(), "MPEG, FrameRate=1.0, Length=1000");
    assertEquals(new VideoFormat(VideoFormat.MPEG, null, Format.NOT_SPECIFIED, Format.byteArray, 1.f).toString(), "MPEG, FrameRate=1.0");
   
    assertEquals(new VideoFormat(VideoFormat.CINEPAK).toString(), "CVID");
    assertEquals(new VideoFormat(VideoFormat.JPEG_RTP).toString(), "JPEG/RTP");
    assertEquals(new VideoFormat(VideoFormat.IRGB).toString(), "IRGB");
    assertEquals(new VideoFormat(VideoFormat.INDEO32).toString(), "IV32");
   
    assertEquals(new YUVFormat().toString(), "YUV Video Format: Size = null MaxDataLength = -1 DataType = class [B yuvType = -1 StrideY = -1 StrideUV = -1 OffsetY = -1 OffsetU = -1 OffsetV = -1\n");
    assertEquals(new YUVFormat(YUVFormat.YUV_111).toString(), "YUV Video Format: Size = null MaxDataLength = -1 DataType = class [B yuvType = 8 StrideY = -1 StrideUV = -1 OffsetY = -1 OffsetU = -1 OffsetV = -1\n");
    assertEquals(new YUVFormat(new java.awt.Dimension(120, 200), 1000, YUVFormat.byteArray, 1.f, YUVFormat.YUV_111, 2, 3, 4, 5, 6).toString(), "YUV Video Format: Size = java.awt.Dimension[width=120,height=200] MaxDataLength = 1000 DataType = class [B yuvType = 8 StrideY = 2 StrideUV = 3 OffsetY = 4 OffsetU = 5 OffsetV = 6\n");
   
View Full Code Here

Examples of javax.media.format.VideoFormat

      assertEquals(f2.getEncoding(), null);
      assertEquals(f1.getDataType(), f2.getDataType());
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f);
      final CopiableVideoFormat f2 = new CopiableVideoFormat(VideoFormat.CINEPAK, new Dimension(1, 0), 1001, Format.shortArray, 2.f);
      f2.doCopy(f1);
      assertEquals(f1.getEncoding(), "mpeg");
      assertEquals(f2.getEncoding(), "cvid");
      assertEquals(f1.getDataType(), f2.getDataType());
      assertEquals(f1.getFrameRate(), f2.getFrameRate());
      assertEquals(f1.getMaxDataLength(), f2.getMaxDataLength());
      assertEquals(f1.getSize(), f2.getSize());
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), Format.NOT_SPECIFIED, Format.byteArray, 1.f);
      final CopiableVideoFormat f2 = new CopiableVideoFormat(VideoFormat.CINEPAK, null, 1001, Format.shortArray, 2.f);
      f2.doCopy(f1);
      assertEquals(f1.getEncoding(), "mpeg");
      assertEquals(f2.getEncoding(), "cvid");
      assertEquals(f1.getDataType(), f2.getDataType());
      assertEquals(f1.getFrameRate(), f2.getFrameRate());
      assertEquals(f1.getMaxDataLength(), f2.getMaxDataLength());
      assertEquals(f1.getSize(), f2.getSize());
    }
   
    try
    {
      final Format f1 = new Format(VideoFormat.MPEG, Format.byteArray);
      final CopiableVideoFormat f2 = new CopiableVideoFormat(VideoFormat.CINEPAK, null, 1001, Format.shortArray, 2.f);
      f2.doCopy(f1);
      assertTrue(false);
    }
    catch (ClassCastException e)
    {
    }
   
    {
      final VideoFormat f1 = new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), Format.NOT_SPECIFIED, Format.byteArray, 1.f);
      final CopiableFormat f2 = new CopiableFormat(VideoFormat.CINEPAK, Format.shortArray);
      f2.doCopy(f1);
      assertEquals(f1.getEncoding(), "mpeg");
      assertEquals(f2.getEncoding(), "cvid");
      assertEquals(f1.getDataType(), f2.getDataType());
     
    }
   
   
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.