Bartosz Firyn (SarXos)

com.github.sarxos.webcam.ds.vlcj
Class VlcjDevice

java.lang.Object
  extended by com.github.sarxos.webcam.ds.vlcj.VlcjDevice
All Implemented Interfaces:
com.github.sarxos.webcam.WebcamDevice

public class VlcjDevice
extends Object
implements com.github.sarxos.webcam.WebcamDevice

Capture driver which use vlcj project API to fetch images from camera. It should not be used when you need performance since vlcj saves snapshot image to disk prior it is returned - this affects performance and drop FPS rate down. In my case (HP Elitebook 8460p, 4 cores, 4 GB RAM, fast SSD disk) it was about ~12 FPS, which is very low when you compare it to the other capture drivers.

Author:
Bartosz Firyn (SarXos)

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.sarxos.webcam.WebcamDevice
com.github.sarxos.webcam.WebcamDevice.BufferAccess, com.github.sarxos.webcam.WebcamDevice.FPSSource
 
Method Summary
 void close()
           
 void dispose()
           
 String getCaptureDevice()
           
 uk.co.caprica.vlcj.player.MediaPlayerFactory getFactory()
           
 BufferedImage getImage()
           
 uk.co.caprica.vlcj.medialist.MediaListItem getMediaListItem()
           
 uk.co.caprica.vlcj.medialist.MediaListItem getMediaListItemSub()
           
 String getMRL()
           
 String getName()
           
 uk.co.caprica.vlcj.player.MediaPlayer getPlayer()
           
 Dimension getResolution()
           
 Dimension[] getResolutions()
           
 String getVDevice()
           
 boolean isOpen()
           
 void open()
           
 void setResolution(Dimension size)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCaptureDevice

public String getCaptureDevice()

getMediaListItem

public uk.co.caprica.vlcj.medialist.MediaListItem getMediaListItem()

getMediaListItemSub

public uk.co.caprica.vlcj.medialist.MediaListItem getMediaListItemSub()

getName

public String getName()
Specified by:
getName in interface com.github.sarxos.webcam.WebcamDevice

getMRL

public String getMRL()

getVDevice

public String getVDevice()

toString

public String toString()
Overrides:
toString in class Object

getResolutions

public Dimension[] getResolutions()
Specified by:
getResolutions in interface com.github.sarxos.webcam.WebcamDevice

getResolution

public Dimension getResolution()
Specified by:
getResolution in interface com.github.sarxos.webcam.WebcamDevice

setResolution

public void setResolution(Dimension size)
Specified by:
setResolution in interface com.github.sarxos.webcam.WebcamDevice

getImage

public BufferedImage getImage()
Specified by:
getImage in interface com.github.sarxos.webcam.WebcamDevice

open

public void open()
Specified by:
open in interface com.github.sarxos.webcam.WebcamDevice

close

public void close()
Specified by:
close in interface com.github.sarxos.webcam.WebcamDevice

dispose

public void dispose()
Specified by:
dispose in interface com.github.sarxos.webcam.WebcamDevice

isOpen

public boolean isOpen()
Specified by:
isOpen in interface com.github.sarxos.webcam.WebcamDevice

getPlayer

public uk.co.caprica.vlcj.player.MediaPlayer getPlayer()

getFactory

public uk.co.caprica.vlcj.player.MediaPlayerFactory getFactory()

Bartosz Firyn (SarXos)

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