Examples of AudioFormat


Examples of javax.media.format.AudioFormat

        {
            propagateEOM(outputBuffer)// TODO: what about data? can there be any?
            return BUFFER_PROCESSED_OK;
        }
       
        final AudioFormat inputAudioFormat = (AudioFormat) inputBuffer.getFormat();
       
        byte[] outputBufferData = (byte []) outputBuffer.getData();
        final int requiredOutputBufferLength = inputBuffer.getLength() / 2;
         
        if (outputBufferData == null || outputBufferData.length < requiredOutputBufferLength)
        {  outputBufferData = new byte[requiredOutputBufferLength];
          outputBuffer.setData(outputBufferData);
        }
       
        if (!inputAudioFormat.equals(inputFormat))
          throw new RuntimeException("Incorrect input format");
       
        if (inputAudioFormat.getEndian() == -1)
          throw new RuntimeException("Unspecified endian-ness")// TODO: check in setInputFormat
        final boolean bigEndian = inputAudioFormat.getEndian() == AudioFormat.BIG_ENDIAN; 
        MuLawEncoderUtil.muLawEncode(bigEndian, (byte []) inputBuffer.getData(), inputBuffer.getOffset(), inputBuffer.getLength(), outputBufferData);
        outputBuffer.setLength(requiredOutputBufferLength);
        outputBuffer.setOffset(0);
        outputBuffer.setFormat(outputFormat);
       
View Full Code Here

Examples of javax.media.format.AudioFormat

    if (a == null// then a < b, return -1
      return -1;
    if (b == null)
      return 1// a > b
   
    final AudioFormat aCast = (AudioFormat) a;
    final AudioFormat bCast = (AudioFormat) b;
   
    if (aCast.getSampleRate() > bCast.getSampleRate())
      return 1;
    else if (aCast.getSampleRate() < bCast.getSampleRate())
      return -1;
   
    if (aCast.getChannels() > bCast.getChannels())
      return 1;
    else if (aCast.getChannels() < bCast.getChannels())
      return -1;
     
    if (aCast.getSampleSizeInBits() > bCast.getSampleSizeInBits())
      return 1;
    else if (aCast.getSampleSizeInBits() < bCast.getSampleSizeInBits())
      return -1;
   
    // endian and signed do not affect quality, don't bother to compare.
   
    return 0;
View Full Code Here

Examples of javax.media.format.AudioFormat

public class FormatMatchesIntersectsTest extends TestCase
{

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

  }
View Full Code Here

Examples of javax.media.format.AudioFormat

  }
 
  public void testBig2()
  {

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

  }
View Full Code Here

Examples of javax.media.format.AudioFormat

  public void testConstructors()
  {
   
    {
      final AudioFormat f = new AudioFormat("abc");
      assertEquals(f.getChannels(), -1);
      assertEquals(f.getDataType(), byte[].class);
      assertEquals(f.getEncoding(), "abc");
      assertEquals(f.getEndian(), -1);
      assertEquals(f.getFrameRate(), -1.0);
      assertEquals(f.getFrameSizeInBits(), -1);
      assertEquals(f.getSampleRate(), -1.0);
      assertEquals(f.getSampleSizeInBits(), -1);
      assertEquals(f.getSigned(), -1);
     
    }
   
    {
      final AudioFormat f = new AudioFormat("abc", 1.0, 2, 3);
      assertEquals(f.getChannels(), 3);
      assertEquals(f.getDataType(), byte[].class);
      assertEquals(f.getEncoding(), "abc");
      assertEquals(f.getEndian(), -1);
      assertEquals(f.getFrameRate(), -1.0);
      assertEquals(f.getFrameSizeInBits(), -1);
      assertEquals(f.getSampleRate(), 1.0);
      assertEquals(f.getSampleSizeInBits(), 2);
      assertEquals(f.getSigned(), -1);
     
    }
   
    {
      final AudioFormat f = new AudioFormat("abc", 1.0, 2, 3, 4, 5);
      assertEquals(f.getChannels(), 3);
      assertEquals(f.getDataType(), byte[].class);
      assertEquals(f.getEncoding(), "abc");
      assertEquals(f.getEndian(), 4);
      assertEquals(f.getFrameRate(), -1.0);
      assertEquals(f.getFrameSizeInBits(), -1);
      assertEquals(f.getSampleRate(), 1.0);
      assertEquals(f.getSampleSizeInBits(), 2);
      assertEquals(f.getSigned(), 5);
     
    }
   
    {
      final AudioFormat f = new AudioFormat("abc", 1.0, 2, 3, 4, 5, 6, 7, int[].class);
      assertEquals(f.getChannels(), 3);
      assertEquals(f.getDataType(), int[].class);
      assertEquals(f.getEncoding(), "abc");
      assertEquals(f.getEndian(), 4);
      assertEquals(f.getFrameRate(), 7.0);
      assertEquals(f.getFrameSizeInBits(), 6);
      assertEquals(f.getSampleRate(), 1.0);
      assertEquals(f.getSampleSizeInBits(), 2);
      assertEquals(f.getSigned(), 5);
     
    }
   
    // verify that the frame rate/frame size is not set by default:
    {
      final AudioFormat f = new AudioFormat(AudioFormat.LINEAR, 22050.0, 16, 2, AudioFormat.LITTLE_ENDIAN, AudioFormat.SIGNED);
      assertEquals(f.getChannels(), 2);
      assertEquals(f.getDataType(), byte[].class);
      assertEquals(f.getEncoding(), "LINEAR");
      assertEquals(f.getEndian(), AudioFormat.LITTLE_ENDIAN);
      assertEquals(f.getFrameRate(), -1);
      assertEquals(f.getFrameSizeInBits(), -1);
      assertEquals(f.getSampleRate(), 22050.0);
      assertEquals(f.getSampleSizeInBits(), 16);
      assertEquals(f.getSigned(), AudioFormat.SIGNED);
     
    }
   
    // javasound test, just to see if it is similar
    {
      final javax.sound.sampled.AudioFormat f = new javax.sound.sampled.AudioFormat(
          (float)22050.0,
          16,
          2,
          false,
          false);
     
      assertEquals(f.getSampleRate(), (float) 22050.0);
      assertEquals(f.getFrameRate(), (float) 22050.0);
      assertEquals(f.getChannels(), 2);
      assertEquals(f.getSampleSizeInBits(), 16);
      assertEquals(f.getFrameSize(), 4)// javasound does set this, where as JMF does not set frame size in bits
     
    }
   
  }
View Full Code Here

Examples of javax.media.format.AudioFormat

   
  }
 
  public void testMatchesNull()
  {
    assertFalse(new AudioFormat("speex/rtp", 8000.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray).matches(null));
    assertFalse(new Format("speex/rtp").matches(null));
   
  }
View Full Code Here

Examples of javax.media.format.AudioFormat

    com.sun.media.renderer.audio.JavaSoundRenderer r = new com.sun.media.renderer.audio.JavaSoundRenderer();
    //r.open();  // TODO: causes NPE in FMJ, not JMF.
    Format[] f = r.getSupportedInputFormats();
   
    Format[] expected = new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      };
   
    assertEquals(f.length, expected.length);
   
    for (int i = 0; i < f.length; ++i)
View Full Code Here

Examples of javax.media.format.AudioFormat

  @Override
  public Format[] getSupportedInputFormats()
  {
    // we'll take anything in a byte array.
    return new Format[] {
        new AudioFormat(null, -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
        new VideoFormat(null, null, -1, Format.byteArray, -1.0f)
      };
  }
View Full Code Here

Examples of javax.media.format.AudioFormat

      PlugInManager.DEMULTIPLEXER);

//     PlugInManager.CODEC:
    PlugInManager.addPlugIn("com.sun.media.codec.audio.mpa.JavaDecoder",
      new Format[] {
        new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.video.cinepak.JavaDecoder",
      new Format[] {
        new VideoFormat("cvid", null, -1, Format.byteArray, -1.0f),
      },
      new Format[] {
        new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, 0, -1),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.video.h263.JavaDecoder",
      new Format[] {
        new VideoFormat("h263", null, -1, Format.byteArray, -1.0f),
        new VideoFormat("h263/rtp", null, -1, Format.byteArray, -1.0f),
      },
      new Format[] {
        new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.video.colorspace.JavaRGBConverter",
      new Format[] {
        new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1),
      },
      new Format[] {
        new RGBFormat(null, -1, null, -1.0f, -1, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.video.colorspace.JavaRGBToYUV",
      new Format[] {
        new RGBFormat(null, -1, Format.byteArray, -1.0f, 24, 0xffffffff, 0xffffffff, 0xffffffff, -1, -1, -1, -1),
        new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff0000, 0xff00, 0xff, 1, -1, -1, -1),
        new RGBFormat(null, -1, Format.intArray, -1.0f, 32, 0xff, 0xff00, 0xff0000, 1, -1, -1, -1),
      },
      new Format[] {
        new YUVFormat(null, -1, Format.byteArray, -1.0f, 2, -1, -1, -1, -1, -1),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.PCMToPCM",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.rc.RCModule",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", 8000.0, 16, 2, 0, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", 8000.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.audio.rc.RateCvrt",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.audio.msadpcm.JavaDecoder",
      new Format[] {
        new AudioFormat("msadpcm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.ulaw.JavaDecoder",
      new Format[] {
        new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.alaw.JavaDecoder",
      new Format[] {
        new AudioFormat("alaw", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.dvi.JavaDecoder",
      new Format[] {
        new AudioFormat("dvi/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.g723.JavaDecoder",
      new Format[] {
        new AudioFormat("g723", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("g723/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.gsm.JavaDecoder",
      new Format[] {
        new AudioFormat("gsm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("gsm/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.gsm.JavaDecoder_ms",
      new Format[] {
        new AudioFormat("gsm/ms", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.ima4.JavaDecoder",
      new Format[] {
        new AudioFormat("ima4", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.ima4.JavaDecoder_ms",
      new Format[] {
        new AudioFormat("ima4/ms", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.ulaw.JavaEncoder",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, 16, 1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 16, 2, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("LINEAR", -1.0, 8, 2, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("ULAW", 8000.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.dvi.JavaEncoder",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("dvi/rtp", -1.0, 4, 1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.gsm.JavaEncoder",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("gsm", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.gsm.JavaEncoder_ms",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, 16, 1, 0, 1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new com.sun.media.format.WavAudioFormat("gsm/ms", -1.0, -1, -1, -1, -1, -1, -1, -1.0f, Format.byteArray, null),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.ima4.JavaEncoder",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, 16, -1, 0, 1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("ima4", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.ima4.JavaEncoder_ms",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, 16, -1, 0, 1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new com.sun.media.format.WavAudioFormat("ima4/ms", -1.0, -1, -1, -1, -1, -1, -1, -1.0f, Format.byteArray, null),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.audio.ulaw.Packetizer",
      new Format[] {
        new AudioFormat("ULAW", -1.0, 8, 1, -1, -1, 8, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("ULAW/rtp", -1.0, 8, 1, -1, -1, 8, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.audio.ulaw.DePacketizer",
      new Format[] {
        new AudioFormat("ULAW/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.audio.mpa.Packetizer",
      new Format[] {
        new AudioFormat("mpeglayer3", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 22050.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 24000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 32000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 44100.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 48000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("mpegaudio/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.audio.mpa.DePacketizer",
      new Format[] {
        new AudioFormat("mpegaudio/rtp", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("mpegaudio", 44100.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 48000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 32000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 22050.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 24000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 16000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 11025.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 12000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpegaudio", 8000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 44100.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 48000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 32000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 22050.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 24000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 16000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 11025.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 12000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
        new AudioFormat("mpeglayer3", 8000.0, 16, -1, 1, 1, -1, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.gsm.Packetizer",
      new Format[] {
        new AudioFormat("gsm", 8000.0, -1, 1, -1, -1, 264, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("gsm/rtp", 8000.0, -1, 1, -1, -1, 264, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.ibm.media.codec.audio.g723.Packetizer",
      new Format[] {
        new AudioFormat("g723", 8000.0, -1, 1, -1, -1, 192, -1.0, Format.byteArray),
      },
      new Format[] {
        new AudioFormat("g723/rtp", 8000.0, -1, 1, -1, -1, 192, -1.0, Format.byteArray),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.video.jpeg.Packetizer",
      new Format[] {
        new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f),
      },
      new Format[] {
        new VideoFormat("jpeg/rtp", null, -1, Format.byteArray, -1.0f),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.video.jpeg.DePacketizer",
      new Format[] {
        new VideoFormat("jpeg/rtp", null, -1, Format.byteArray, -1.0f),
      },
      new Format[] {
        new VideoFormat("jpeg", null, -1, Format.byteArray, -1.0f),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.video.mpeg.Packetizer",
      new Format[] {
        new VideoFormat("mpeg", null, -1, Format.byteArray, -1.0f),
      },
      new Format[] {
        new VideoFormat("mpeg/rtp", null, -1, Format.byteArray, -1.0f),
      },
      PlugInManager.CODEC);
    PlugInManager.addPlugIn("com.sun.media.codec.video.mpeg.DePacketizer",
      new Format[] {
        new VideoFormat("mpeg/rtp", null, -1, Format.byteArray, -1.0f),
      },
      new Format[] {
        new VideoFormat("mpeg", null, -1, Format.byteArray, -1.0f),
      },
      PlugInManager.CODEC);

//     PlugInManager.EFFECT:

//     PlugInManager.RENDERER:
    PlugInManager.addPlugIn("com.sun.media.renderer.audio.JavaSoundRenderer",
      new Format[] {
        new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
        new AudioFormat("ULAW", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {},
      PlugInManager.RENDERER);
    PlugInManager.addPlugIn("com.sun.media.renderer.audio.SunAudioRenderer",
      new Format[] {
        new AudioFormat("ULAW", 8000.0, 8, 1, -1, -1, -1, -1.0, Format.byteArray),
      },
      new Format[] {},
      PlugInManager.RENDERER);
    PlugInManager.addPlugIn("com.sun.media.renderer.video.AWTRenderer",
      new Format[] {
View Full Code Here

Examples of javax.media.format.AudioFormat

      assertStringVectorEquals(v1, v2);
     
    }
   
    {
      final Format in = new AudioFormat("mpegaudio", 16000.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray);
      final Format out = new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray);
     
      final Vector v1 = javax.media.PlugInManager.getPlugInList(in, out, javax.media.PlugInManager.CODEC);
      final Vector v2 = net.sf.fmj.test.compat.plugins.PlugInManager.getPlugInList(in, out, javax.media.PlugInManager.CODEC);
     
      assertStringVectorEquals(v1, v2);
     
    }
   
   
    {
      final Format in = new AudioFormat("mpegaudio", 16001.0, -1, -1, -1, 1, -1, -1.0, Format.byteArray);
      final Format out = new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray);
     
      final Vector v1 = javax.media.PlugInManager.getPlugInList(in, out, javax.media.PlugInManager.CODEC);
      final Vector v2 = net.sf.fmj.test.compat.plugins.PlugInManager.getPlugInList(in, out, javax.media.PlugInManager.CODEC);
     
      assertStringVectorEquals(v1, v2);
     
    }
   
    {
      final Format in = new AudioFormat("mpegaudio", Format.NOT_SPECIFIED, -1, -1, -1, 1, -1, -1.0, Format.byteArray);
      final Format out = new AudioFormat("LINEAR", -1.0, -1, -1, -1, -1, -1, -1.0, Format.byteArray);
     
      final Vector v1 = javax.media.PlugInManager.getPlugInList(in, out, javax.media.PlugInManager.CODEC);
      final Vector v2 = net.sf.fmj.test.compat.plugins.PlugInManager.getPlugInList(in, out, javax.media.PlugInManager.CODEC);
     
      assertStringVectorEquals(v1, v2);
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.