Examples of ISimpleMediaFile


Examples of com.xuggle.xuggler.ISimpleMediaFile

 
  @Test
  public void testVideoTimeBase()
  {
    IRational val=IRational.make(1, 500);
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertNull(obj.getVideoTimeBase());
    obj.setVideoTimeBase(val);
    assertEquals("set method failed", val.getNumerator(), obj.getVideoTimeBase().getNumerator());
    assertEquals("set method failed", val.getDenominator(), obj.getVideoTimeBase().getDenominator());
  }
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

 
  @Test
  public void testVideoFrameRate()
  {
    IRational val=IRational.make(30, 1);
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertNull(obj.getVideoFrameRate());
    obj.setVideoFrameRate(val);
    assertEquals("set method failed", val.getNumerator(), obj.getVideoFrameRate().getNumerator());
    assertEquals("set method failed", val.getDenominator(), obj.getVideoFrameRate().getDenominator());
  }
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

  @Test
  public void testVideoPixelFormat()
  {
    IPixelFormat.Type defaultVal = IPixelFormat.Type.YUV420P;;
    IPixelFormat.Type val=IPixelFormat.Type.RGB24;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.getVideoPixelFormat());
    obj.setVideoPixelFormat(val);
    assertEquals("set method failed", val, obj.getVideoPixelFormat());   
  }
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

  @Test
  public void testVideoNumPicturesInGroupOfPictures()
  {
    int defaultVal = 15;
    int val=123;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.getVideoNumPicturesInGroupOfPictures());
    obj.setVideoNumPicturesInGroupOfPictures(val);
    assertEquals("set method failed", val, obj.getVideoNumPicturesInGroupOfPictures());   
  }
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

  @Test
  public void testVideoGlobalQuality()
  {
    int defaultVal = 0;
    int val=123;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.getVideoGlobalQuality());
    obj.setVideoGlobalQuality(val);
    assertEquals("set method failed", val, obj.getVideoGlobalQuality());   
  }
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

  @Test
  public void testHasVideo()
  {
    boolean defaultVal = true;
    boolean val = false;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.hasVideo());
    obj.setHasVideo(val);
    assertEquals("set method failed", val, obj.hasVideo());   
  }
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

  @Test
  public void testHasAudio()
  {
    boolean defaultVal = true;
    boolean val = false;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.hasAudio());
    obj.setHasAudio(val);
    assertEquals("set method failed", val, obj.hasAudio());   
 
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

  @Test
  public void testContainerFormat()
  {
    IContainerFormat defaultVal = null;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.getContainerFormat());

    IContainerFormat format = IContainerFormat.make();
    assertNotNull(format);
    format.setInputFormat("flv");
    assertNotNull(format.getInputFormatLongName());
    assertTrue(format.getInputFormatLongName().length()>0);
    obj.setContainerFormat(format);
    assertEquals(format.getInputFormatLongName(), obj.getContainerFormat().getInputFormatLongName());
  }
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

 
  @Test
  public void testDuration()
  {
    ITimeValue defaultVal = null;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.getDuration());
   
    ITimeValue expected = ITimeValue.make(3, ITimeValue.Unit.SECONDS);
    obj.setDuration(expected);
    assertEquals(expected, obj.getDuration());
  }
View Full Code Here

Examples of com.xuggle.xuggler.ISimpleMediaFile

  @Test
  public void testURL()
  {
    String defaultVal = null;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.getURL());
   
    String expected = "hello:three";
    obj.setURL(expected);
    assertEquals(expected, obj.getURL());
  }
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.