Examples of RGBFormat


Examples of javax.media.format.RGBFormat

      tracks[i].setFormat(preferredAudioFormat);
        } else if (format instanceof VideoFormat) {
      Dimension size = ((VideoFormat)format).getSize();
      if (MiniME.getSaveType() == 1) {
         
          preferredVideoFormat = new RGBFormat(size,
                 size.width * size.height * 3,
                 Format.byteArray,
                 ((VideoFormat)format).getFrameRate(),
                 24,
                 1, 2, 3);
      } else {
          preferredVideoFormat = new RGBFormat(size,
                 size.width * size.height * 3,
                 Format.byteArray,
                 ((VideoFormat)format).getFrameRate(),
                 24,
                 3, 2, 1,
View Full Code Here

Examples of javax.media.format.RGBFormat

      robot = new Robot();
  } catch (AWTException awe) {
      throw new RuntimeException("");
  }
  maxDataLength = size.width * size.height * 3;
  rgbFormat = new RGBFormat(size, maxDataLength,
          Format.intArray,
          frameRate,
          32,
          0xFF0000, 0xFF00, 0xFF,
          1, size.width,
View Full Code Here

Examples of javax.media.format.RGBFormat

            this.num = num;
        this.angle = 2.0*3.1415926/this.num;
        buildTable();

        inputFormats = new Format[] {
            new RGBFormat(null,
                          Format.NOT_SPECIFIED,
                          Format.byteArray,
                          Format.NOT_SPECIFIED,
                          24,
                          3, 2, 1,
                          3, Format.NOT_SPECIFIED,
                          Format.TRUE,
                          Format.NOT_SPECIFIED)
        };

        outputFormats = new Format[] {
            new RGBFormat(null,
                          Format.NOT_SPECIFIED,
                          Format.byteArray,
                          Format.NOT_SPECIFIED,
                          24,
                          3, 2, 1,
View Full Code Here

Examples of javax.media.format.RGBFormat

    }

    public Format setOutputFormat(Format output) {
        if (output == null || matches(output, outputFormats) == null)
            return null;
        RGBFormat incoming = (RGBFormat) output;
       
        Dimension size = incoming.getSize();
        int maxDataLength = incoming.getMaxDataLength();
        int lineStride = incoming.getLineStride();
        float frameRate = incoming.getFrameRate();
        int flipped = incoming.getFlipped();
        int endian = incoming.getEndian();

        if (size == null)
            return null;
        if (maxDataLength < size.width * size.height * 3)
            maxDataLength = size.width * size.height * 3;
        if (lineStride < size.width * 3)
            lineStride = size.width * 3;
        if (flipped != Format.FALSE)
            flipped = Format.FALSE;
       
        outputFormat = outputFormats[0].intersects(new RGBFormat(size,
                                                        maxDataLength,
                                                        null,
                                                        frameRate,
                                                        Format.NOT_SPECIFIED,
                                                        Format.NOT_SPECIFIED,
View Full Code Here

Examples of javax.media.format.RGBFormat

        outBuffer.setFormat(outputFormat);
        outBuffer.setFlags(inBuffer.getFlags());

        byte [] inData = (byte[]) inBuffer.getData();
        byte [] outData = (byte[]) outBuffer.getData();
        RGBFormat vfIn = (RGBFormat) inBuffer.getFormat();
        Dimension sizeIn = vfIn.getSize();
        int pixStrideIn = vfIn.getPixelStride();
        int lineStrideIn = vfIn.getLineStride();

        int iw = sizeIn.width;
        int ih = sizeIn.height;
        int cx = iw/2;
        int cy = ih/2;
View Full Code Here

Examples of javax.media.format.RGBFormat

    public class PostAccessCodec extends PreAccessCodec {
  // We'll advertize as supporting all video formats.
  public PostAccessCodec() {
      supportedIns = new Format [] {
    new RGBFormat()
      };
  }
View Full Code Here

Examples of javax.media.format.RGBFormat

 
  public BitMapInfo(VideoFormat format)
  {
    if (format instanceof RGBFormat)
    {
      final RGBFormat fCast = (RGBFormat) format;
      this.fourcc = fCast.getEncoding().toUpperCase();
      this.biPlanes = 1;
      this.biBitCount = fCast.getBitsPerPixel();
      if (fCast.getSize() == null)
      {
        this.biWidth = 320;
        this.biHeight = 240;
      }
      else
      {
        this.biWidth = fCast.getSize().width;
        this.biHeight = fCast.getSize().height;
      }
      if (biBitCount == -1)
        this.biSizeImage = -2;
      else
        this.biSizeImage = biWidth * biHeight * (biBitCount / 8);
      this.biClrUsed = 0;
      this.biClrImportant = 0;
    }
    else if (format instanceof AviVideoFormat)
    {
      final AviVideoFormat fCast = (AviVideoFormat) format;
      this.fourcc = fCast.getEncoding();
      this.biPlanes = fCast.getPlanes();
      this.biBitCount = fCast.getBitsPerPixel();
      this.biWidth = fCast.getSize().width;
      this.biHeight = fCast.getSize().height;
      this.biSizeImage = fCast.getImageSize();
      this.biClrUsed = fCast.getClrUsed();
      this.biClrImportant = fCast.getClrImportant();
    }
    else if (format instanceof YUVFormat)
    {
      final YUVFormat fCast = (YUVFormat) format;
      if (fCast.getYuvType() == YUVFormat.YUV_420)
      {  this.fourcc = "YV12";
        this.biBitCount = 12;
      }
      else
      {
View Full Code Here

Examples of javax.media.format.RGBFormat

      // TODO: other biBitCount values?
     
     
     
       
      return new RGBFormat(new Dimension(biWidth, biHeight),
          maxDataLength,
          arrayType,
          frameRate,
          biBitCount,
          red,
View Full Code Here

Examples of javax.media.format.RGBFormat

  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));
View Full Code Here

Examples of javax.media.format.RGBFormat

  {

    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));
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.