Examples of Multiplexer


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

Examples of javax.media.Multiplexer

   
    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

Examples of javax.media.Multiplexer

        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

Examples of javax.media.Multiplexer

        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

Examples of javax.media.Multiplexer

    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

Examples of org.apache.stanbol.ontologymanager.servicesapi.ontology.Multiplexer

        if (ontologyProvider instanceof OntologyCollectorListener) session
                .addOntologyCollectorListener((OntologyCollectorListener) ontologyProvider);
        if (ontologyProvider instanceof SessionListener) session
                .addSessionListener((SessionListener) ontologyProvider);

        Multiplexer multiplexer = ontologyProvider.getOntologyNetworkDescriptor();
        session.addOntologyCollectorListener(multiplexer);
        session.addSessionListener(multiplexer);

        ConnectivityPolicy policy;
        try {
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.ontology.Multiplexer

        spaceFactory.setDefaultNamespace(iri);

        // Add listeners
        // if (ontologyProvider instanceof ScopeEventListener) factory
        // .addScopeEventListener((ScopeEventListener) ontologyProvider);
        Multiplexer multiplexer = ontologyProvider.getOntologyNetworkDescriptor();
        this.addScopeRegistrationListener(multiplexer);
        this.addScopeEventListener(multiplexer);
    }
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.ontology.Multiplexer

        //TODO use rdfViewable instead of Vieable to make separation of
        //presentation and application logic cleaner
        return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
            @Override
            public Integer run() {
                Multiplexer desc = new MGraphMultiplexer(ontologyProvider.getMetaGraph(MGraph.class));
                return desc.getSize(ontologyId);
            }
        });

    }
View Full Code Here

Examples of org.broadinstitute.gatk.engine.walkers.Multiplexer

        }
        catch(NoSuchMethodException ex) {
            throw new ReviewedGATKException(String.format("Unable to find constructor for class %s with parameters %s",multiplexerType.getName(),Arrays.deepToString(sourceFields)),ex);
        }

        Multiplexer multiplexer;
        try {
            multiplexer = multiplexerConstructor.newInstance(sourceValues);
        }
        catch(IllegalAccessException ex) {
            throw new ReviewedGATKException(String.format("Constructor for class %s with parameters %s is inaccessible",multiplexerType.getName(),Arrays.deepToString(sourceFields)),ex);
        }
        catch(InstantiationException ex) {
            throw new ReviewedGATKException(String.format("Can't create class %s with parameters %s",multiplexerType.getName(),Arrays.deepToString(sourceFields)),ex);
        }
        catch(InvocationTargetException ex) {
            throw new ReviewedGATKException(String.format("Can't invoke constructor of class %s with parameters %s",multiplexerType.getName(),Arrays.deepToString(sourceFields)),ex);
        }

        return new MultiplexArgumentTypeDescriptor(multiplexer,multiplexer.multiplex());
    }
View Full Code Here

Examples of org.jgroups.mux.Multiplexer

            throw new IllegalArgumentException("stack name and service ID have to be non null");
       
        if(stack_name.length()==0 || id.length() == 0)
            throw new IllegalArgumentException("stack name and service ID have to non empty strings");
              
        Multiplexer mux = null;
        synchronized (channels) {
            if (!channels.containsKey(stack_name)) {
                JChannel ch = new JChannel(getConfig(stack_name));
                registerChannel(ch, stack_name);
                mux = new Multiplexer(ch);
                channels.put(stack_name, mux);
            } else {
                mux = channels.get(stack_name);
            }
        }
        if(register_for_state_transfer)
            mux.registerForStateTransfer(id, substate_id);
       
        Channel c = mux.createMuxChannel(id, stack_name);
        c.addChannelListener(new MuxFactoryChannelListener());
        return c;
    }
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.