/** * Implements {@link DataSource#getControls()}. Delegates to the actual * output of the transcoding. * * @return an array of <tt>Object</tt>s which represent the controls * available for this instance */ @Override public synchronized Object[] getControls() { return (outputDataSource == null) ? ControlsAdapter.EMPTY_CONTROLS : outputDataSource.getControls(); }
/** * Implements {@link DataSource#getControls()}. Delegates to the wrapped * <tt>PullBufferDataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#getControls()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to give access to the controls. * * @return an array of <tt>Objects</tt> which represent the controls of the * wrapped <tt>DataSource</tt> */ @Override public Object[] getControls() { return dataSource.getControls(); }
/** * Implements {@link DataSource#getControls()}. Delegates to the wrapped * <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; otherwise, * returns an empty array with <tt>Object</tt> element type. * * @return the array of controls for the wrapped <tt>CaptureDevice</tt> if * it implements <tt>DataSource</tt>; otherwise, an empty array with * <tt>Object</tt> element type */ @Override public Object[] getControls() { if (captureDevice instanceof DataSource) return ((DataSource) captureDevice).getControls(); return ControlsAdapter.EMPTY_CONTROLS; }
/** * Implements {@link DataSource#getControls()}. Delegates to the wrapped * <tt>PushBufferDataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#getControls()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to give access to the controls. * * @return an array of <tt>Objects</tt> which represent the controls of the * wrapped <tt>DataSource</tt> */ @Override public Object[] getControls() { return dataSource.getControls(); }
/** * Implements {@link DataSource#getControls()}. Delegates to the wrapped * <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; otherwise, * returns an empty array with <tt>Object</tt> element type. * * @return the array of controls for the wrapped <tt>CaptureDevice</tt> if * it implements <tt>DataSource</tt>; otherwise, an empty array with * <tt>Object</tt> element type */ @Override public Object[] getControls() { if (captureDevice instanceof DataSource) return ((DataSource) captureDevice).getControls(); return ControlsAdapter.EMPTY_CONTROLS; }