Package javax.media

Examples of javax.media.Multiplexer


          addCodecChainControls(dest);
        }
      }
      else if ( dest instanceof MuxNode )
      {
        Multiplexer m = ((MuxNode)dest).getMultiplexer();
        final Object[] controls = m.getControls();
        if (controls != null)
        {
          for (Object o : controls)
          {
            addControl((Control) o);
View Full Code Here


   
    final List<Multiplexer> muxs = FilterGraphBuilder.findMuxs()// TODO: only find ones that are reachable given the input
    final List<ContentDescriptor> result = new ArrayList<ContentDescriptor>();
    for (int i = 0; i < muxs.size(); ++i)
    {
      final Multiplexer mux = (Multiplexer) muxs.get(i);
      final Format[] f = mux.getSupportedOutputContentDescriptors(null);
      for (int j = 0; j < f.length; ++j)
        result.add((ContentDescriptor) f[j]);
    }
   
    final ContentDescriptor[] arrayResult = new ContentDescriptor[result.size()];
View Full Code Here

        return new PlugInInfo(className, inputFormats, new Format[] {}, PlugInManager.RENDERER);
      }
      else if (o instanceof Multiplexer)
      { 
        if (TRACE) logger.fine("PlugInUtility: Registering Multiplexer: " + className);
        final Multiplexer oCast = (Multiplexer) o;
        // JMF Multiplexers always have nothing for the input formats.
        return new PlugInInfo(className, new Format[] {}, oCast.getSupportedOutputContentDescriptors(null), PlugInManager.MULTIPLEXER);
      }
      else
      {
        logger.warning("PlugInUtility: Unknown or unsupported plug-in: " + o.getClass());
        return null;
View Full Code Here

        if (TRACE) logger.fine("Trying mux for " + destFormat + ": " + muxClassName);
       
        // TODO: instantiate mux, take first successful one for each track.
        // Or, how do we pick the "best" one?  // how do we pick the "best" format?
       
        final Multiplexer mux = (Multiplexer) instantiate(muxClassName);
        if (mux == null)
          continue;

      return mux;
      }
View Full Code Here

    for (int k = 0; k < muxs.size(); ++k)
      {
        final String muxClassName = (String) muxs.get(k);
        if (TRACE) logger.fine("Trying mux: " + muxClassName);
       
        final Multiplexer mux = (Multiplexer) instantiate(muxClassName);
        if (mux == null)
          continue;

        result.add(mux);
      }
View Full Code Here

TOP

Related Classes of javax.media.Multiplexer

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.