|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiewald_PS3.PS3
public class PS3
PS3 is the main entry class of the library.
it creates a PS3eye instance, and provides access to different parameters for the video-stream.
Method Summary | |
---|---|
static PS3 |
create(int index)
method, to create a PS3-instance from a given index. |
void |
destroy()
completely destroys an ps3-context. |
static int |
getCameraCount()
returns number of available cameras. |
void |
getFrame(int[] pixels)
copy the pixels of the current ps3-frame to the given pixel-array. |
int |
getHeight()
get the height of the current instance. |
int |
getIndex()
get the index of the current instance. |
int |
getParameter(PS3_PARAM param)
get the current value of a parameter. |
int |
getWidth()
get the width of the current instance. |
PS3 |
init(VIDEO_MODE mode,
COLOR_MODE color_mode,
int frameRate)
define a mode, specified by the video-mode (QVGA, or VGA), color-mode and a framerate. |
static boolean |
libraryLoaded()
check if the library got loaded. |
static void |
loadLibrary(java.lang.String dll_path,
java.lang.String dll_name)
load the library with a custom path and name. |
void |
setLed(boolean on_off)
change the status of the red LED. |
void |
setParameter(PS3_PARAM param,
int value)
set custom camera-parameters. |
static void |
shutDown()
shutdown all running ps3-threads. |
void |
start()
start the ps3-device. |
void |
stop()
stop the ps3-device. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static final int getCameraCount()
public static final PS3 create(int index)
index
- the index of the ps3-device.
public final PS3 init(VIDEO_MODE mode, COLOR_MODE color_mode, int frameRate)
mode
- video-mode.color_mode
- color-mode.frameRate
- framerate.
public static final boolean libraryLoaded()
public static final void loadLibrary(java.lang.String dll_path, java.lang.String dll_name)
dll_path
- path of the dll.dll_name
- name of the dll.public final int getIndex()
public final int getWidth()
public final int getHeight()
public final void getFrame(int[] pixels)
pixels
- public final void start()
public final void stop()
public final void destroy()
public static void shutDown()
public final void setLed(boolean on_off)
on_off
- status of the led.public final void setParameter(PS3_PARAM param, int value)
param
- the parameter (enum).value
- the new value of the parameter.public final int getParameter(PS3_PARAM param)
param
- the parameter to get the value from.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |