com.github.sarxos.webcam.ds.buildin
Class WebcamGrabberProcessor

java.lang.Object
  extended by com.github.sarxos.webcam.ds.buildin.WebcamGrabberProcessor

public final class WebcamGrabberProcessor
extends Object

This class is to ensure that all native calls will be executed by a single, well synchronized thread. The problem with grabber which is being used to perform native calls is the fact it is completely not ready to be used in well-written concurrent application (such as Swing for example).

Author:
Bartosz Firyn (SarXos)

Constructor Summary
protected WebcamGrabberProcessor()
          Protected access so user is not able to create it.
 
Method Summary
protected  void process(WebcamGrabberTask task)
          Process task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebcamGrabberProcessor

protected WebcamGrabberProcessor()
Protected access so user is not able to create it.

Method Detail

process

protected void process(WebcamGrabberTask task)
Process task.

Parameters:
task - the task to be processed


Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.