Examples of transcode()


Examples of com.adobe.fonts.transcoder.FontTranscoder.transcode()

        OutputStream output = null;
        try
        {
            File outputFile = new File( getTargetDirectory(), fontSwfFinalName + ".swf" );
            output = new FileOutputStream( outputFile );
            fontTranscoder.transcode( description, output );
        }
        catch ( FontTranscoderException e )
        {
            throw new MojoExecutionException( "Failed to create the font swf", e );
        }
View Full Code Here

Examples of com.day.cq.dam.handler.ffmpeg.FFMpegWrapper.transcode()

                FFMpegWrapper ffmpegWrapper = FFMpegWrapper.fromProfile(tmpFile, profile, tmpWorkingDir);
                ffmpegWrapper.setExecutableLocator(getLocator());
                FileInputStream fis = null;
                try {
                    final String renditionName = getRenditionName(ffmpegWrapper);
                    final File transcodedAudio = ffmpegWrapper.transcode();
                    fis = new FileInputStream(transcodedAudio);
                    asset.addRendition(renditionName, fis, ffmpegWrapper.getOutputMimetype());
                    if (!transcodedAudio.delete()) {
                        log.error("Transcoded audio file @ {} coud not be deleted");
                    }
View Full Code Here

Examples of com.moldflow.batik.transcoder.SVGRenderingTranscoder.transcode()

          ostream = new FileOutputStream(destinationFile);
          Writer out = new OutputStreamWriter(ostream, "UTF-8");
          TranscoderOutput transcoderOutput = new TranscoderOutput(out);

          SVGRenderingTranscoder t = new SVGRenderingTranscoder();
          t.transcode(transcoderInput, transcoderOutput);

          out.flush();
          out.close();
          log("Processed file " + absoluteFile.getName(), Project.MSG_INFO);
        } catch (FileNotFoundException e) {
View Full Code Here

Examples of com.moldflow.batik.transcoder.SVGScriptExecutor.transcode()

          ostream = new FileOutputStream(destinationFile);
          Writer out = new OutputStreamWriter(ostream, "UTF-8");
          TranscoderOutput transcoderOutput = new TranscoderOutput(out);

          SVGScriptExecutor t = new SVGScriptExecutor();
          t.transcode(transcoderInput, transcoderOutput);

          out.flush();
          out.close();
          log("Processed file " + absoluteFile.getName(), Project.MSG_INFO);
        } catch (FileNotFoundException e) {
View Full Code Here

Examples of com.volantis.map.sti.transcoder.Transcoder.transcode()

            synchronized (mutex) {
                transcoder = transcoderFactory.createTranscoder();            }

            // Perform transcoding on local instance of transcoder,
            // thus in thread-safe way.
            transcoder.transcode(descriptor, request, response);

        } catch (TranscoderFactoryException e) {
            // thrown when the TranscoderFactory instantiation fails.
            LOGGER.error(e);
            result = Result.UNSUPPORTED;
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.batikutil.ThumbnailTranscoder.transcode()

    ThumbnailTranscoder t = new ThumbnailTranscoder();
    t.addTranscodingHint(PNGTranscoder.KEY_WIDTH, new Float(width));
    t.addTranscodingHint(PNGTranscoder.KEY_HEIGHT, new Float(height));
    // Don't clone. Assume this is used safely.
    TranscoderInput input = new TranscoderInput(document);
    t.transcode(input, null);
    return t.getLastImage();
  }

  /**
   * Dump the SVG plot to a debug file.
View Full Code Here

Examples of flash.svg.SpriteTranscoder.transcode()

            throws TranscoderException
  {
    try
    {
      SpriteTranscoder transcoder = new SpriteTranscoder();
      transcoder.transcode(ti, null);

      DefineSprite defineSprite = new DefineSprite(symbolName);
      defineSprite.tagList = transcoder.getTags();
      defineSprite.framecount = 1; //SVG is static for now
View Full Code Here

Examples of flex2.compiler.Transcoder.transcode()

                {
                    args.put( Transcoder.NEWNAME, className );
                }

                // put the transcoding output into the compilation unit
                results = t.transcode( context, symbolTable, args, className, generateCode );
            }
        }
        catch(TranscoderException transcoderException)
        {
            logTranscoderException(transcoderException, origin, line, col);
View Full Code Here

Examples of org.apache.batik.transcoder.AbstractTranscoder.transcode()

          transcoder.addTranscodingHint(key, transcodingHints.get(key));
        }
      }

      // Perform the transcoding
      transcoder.transcode(new TranscoderInput(svgDocument), to);

      os.flush();
    }
    finally
    {
View Full Code Here

Examples of org.apache.batik.transcoder.SVGAbstractTranscoder.transcode()

       * by keeping the aspect ratio of the SVG document.
       */
      transcoder.addTranscodingHint(SVGAbstractTranscoder.KEY_WIDTH,
          width);
    }
    transcoder.transcode(input, transOutput);

    return stream;

  }

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.