Package javax.media.format

Examples of javax.media.format.VideoFormat.clone()


    // equal and match:
    {
      final VideoFormat[] f2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
            (VideoFormat) f1.clone(),
            (VideoFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        VideoFormat f2 = f2s[i];
View Full Code Here


   
    // equals f1
    {
      final VideoFormat[] f2s = new VideoFormat[]{
          new VideoFormat(VideoFormat.MPEG, new Dimension(0, 0), 1000, Format.byteArray, 1.f),
            (VideoFormat) f1.clone(),
            (VideoFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        VideoFormat f2 = f2s[i];
View Full Code Here

   
   
    {
      final Format f1 = new RGBFormat(new Dimension(1, 1), 1000, Format.byteArray, 2.f, 11, 2, 13, 14, 5, 6, 17, 8);
      final Format f2 = new RGBFormat();
      final Format f3 = (Format) f1.clone();
      final Format f4 = (Format) f1.clone();
//      System.out.println(f1.intersects(f2));
//      System.out.println(f3); 
//      final Format f1_2 = f1.intersects(f2);
      assertEquals(f1.intersects(f2), f3);
View Full Code Here

   
    {
      final Format f1 = new RGBFormat(new Dimension(1, 1), 1000, Format.byteArray, 2.f, 11, 2, 13, 14, 5, 6, 17, 8);
      final Format f2 = new RGBFormat();
      final Format f3 = (Format) f1.clone();
      final Format f4 = (Format) f1.clone();
//      System.out.println(f1.intersects(f2));
//      System.out.println(f3); 
//      final Format f1_2 = f1.intersects(f2);
      assertEquals(f1.intersects(f2), f3);
      assertNotEquals(f1.intersects(f2), f2);
View Full Code Here

      assertFalse(f1.clone() == f1);
     
      if (f1 instanceof VideoFormat)
      {  final VideoFormat vf1 = (VideoFormat) f1;
        if (vf1.getSize() != null)
          assertFalse(vf1.getSize() == ((VideoFormat) vf1.clone()).getSize());
       
        final VideoFormat fRelax = (VideoFormat) f1.relax();
        assertEquals(fRelax.getEncoding(), vf1.getEncoding());
        assertEquals(fRelax.getDataType(), vf1.getDataType());
        assertEquals(fRelax.getFrameRate(), -1.f);
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.