Examples of PNGFormat


Examples of net.sf.fmj.media.format.PNGFormat

 
  public void testVideo() throws ParseException
  {
    test(new JPEGFormat());
    test(new GIFFormat());
    test(new PNGFormat());
    test(new GIFFormat(new Dimension(640, 480), -1, Format.byteArray, -1.f));
   
//        test(new VideoFormat(VideoFormat.JPEG_RTP));
//        test(new VideoFormat(VideoFormat.H261_RTP));
//        test(new VideoFormat(VideoFormat.MPEG_RTP));
View Full Code Here

Examples of net.sf.fmj.media.format.PNGFormat

        list.add(floatToStr(gf.getFrameRate()));
       
      }
      else if (f.getClass() == PNGFormat.class)
      {
        final PNGFormat pf = (PNGFormat) vf;
        list.add(dimensionToStr(pf.getSize()));
        list.add(intToStr(pf.getMaxDataLength()));
        if (pf.getDataType() != null && pf.getDataType() != Format.byteArray)
          list.add(dataTypeToStr(pf.getDataType()));
        list.add(floatToStr(pf.getFrameRate()));
       
      }
      else if (f.getClass() == VideoFormat.class)
      {
        list.add(dimensionToStr(vf.getSize()));
View Full Code Here

Examples of net.sf.fmj.media.format.PNGFormat

              Class dataType = t.nextDataType();
        if (dataType == null)
          dataType = Format.byteArray;  // default
              final float frameRate = t.nextFloat();
             
        return new PNGFormat(size, maxDataLength, dataType, frameRate);
      }
      else if (formatClass == VideoFormat.class)
      {
        final java.awt.Dimension size = t.nextDimension();
              final int maxDataLength = t.nextInt();
View Full Code Here

Examples of net.sf.fmj.media.format.PNGFormat

  public Format[] getSupportedInputFormats()
  {
    return new Format[] {
        new JPEGFormat(),
        new GIFFormat(),
        new PNGFormat()};
  }
View Full Code Here

Examples of net.sf.fmj.media.format.PNGFormat

  {
    if (input == null)
      return supportedOutputFormats;
    final VideoFormat inputCast = (VideoFormat) input;
    final Format[] result = new Format[] {
        new PNGFormat(inputCast.getSize(), -1, Format.byteArray, inputCast.getFrameRate())};
 
    return result;
  }
View Full Code Here

Examples of net.sf.fmj.media.format.PNGFormat

      if (frameContentType.equals("image/jpeg"))
        format = new JPEGFormat(new Dimension(image.getWidth(null), image.getHeight(null)), Format.NOT_SPECIFIED, Format.byteArray, -1.f, Format.NOT_SPECIFIED, Format.NOT_SPECIFIED);
      else if(frameContentType.equals("image/gif"))
        format = new GIFFormat(new Dimension(image.getWidth(null), image.getHeight(null)), Format.NOT_SPECIFIED, Format.byteArray, -1.f);
      else if(frameContentType.equals("image/png"))
        format = new PNGFormat(new Dimension(image.getWidth(null), image.getHeight(null)), Format.NOT_SPECIFIED, Format.byteArray, -1.f);
      else
        throw new ResourceUnavailableException("Unsupported frame content type: " + frameContentType);
      // TODO: this discards first image.  save and return first time readFrame is called.
       
    }
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.