Package com.xuggle.xuggler

Examples of com.xuggle.xuggler.IVideoPicture


    IConverter c = ConverterFactory.createConverter(
      mConverterType.getDescriptor(), mConverterType.getPictureType(),
      TEST_WIDTH, TEST_HEIGHT);

    IVideoPicture picture = IVideoPicture.make(
      mConverterType.getPictureType(), TEST_WIDTH, TEST_HEIGHT);

    c.toImage(picture);
  }
View Full Code Here


    IConverter c = ConverterFactory.createConverter(
      mConverterType.getDescriptor(), IPixelFormat.Type.YUV420P,
      TEST_WIDTH, TEST_HEIGHT);

    IVideoPicture picture = IVideoPicture.make(
      IPixelFormat.Type.GRAY16BE, TEST_WIDTH, TEST_HEIGHT);

    c.toImage(picture);
  }
View Full Code Here

      for (int y = 0; y < h1; ++y)
        image1.setRGB(x, y, gray);

    // convert image1 to a picture and then back to image2

    IVideoPicture picutre = converter1.toPicture(image1, 0);
    BufferedImage image2 = converter2.toImage(picutre);

    assertEquals("image2 wrong width", w2, image2.getWidth());
    assertEquals("image2 wrong height", h2, image2.getHeight());
View Full Code Here

TOP

Related Classes of com.xuggle.xuggler.IVideoPicture

Copyright © 2018 www.massapicom. 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.