Top Description Constructors Methods
org.lwjgl.opengl

public final Class NVVideoCaptureUtil

extends Object
Class Inheritance
Imports
org.lwjgl.BufferChecks, .LWJGLUtil, java.nio.ByteBuffer, .IntBuffer, .LongBuffer

This class exposes the platform specific functionality present in the NV_video_capture extension.
Author
Spasi
Since
20/5/2011

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
private static ByteBuffer
public static boolean

Returns:

true if the binding was successful
glBindVideoCaptureDeviceNV
(int
the video slot
video_slot
,
long
the video capture device
device
)

After successfully locking a video capture device, use this method to bind it to the capture slot specified in the current context.

public static int

Returns:

the number of available video capture devices
glEnumerateVideoCaptureDevicesNV
(LongBuffer
the buffer to store devices in
devices
)

Enumerate the available video capture devices.

public static boolean

Returns:

true if the lock was successful
glLockVideoCaptureDeviceNV
(long
the device to lock
device
)

To lock a video capture device to a display connection, use this method.

public static boolean

Returns:

true if the query was successful
glQueryVideoCaptureDeviceNV
(long
the device
device
,
int
the attribute to query
attribute
,
IntBuffer
the buffer to store the value in
value
)

Use this method to query the unique ID of the physical device backing a video capture device handle.

public static boolean

Returns:

true if the device was unlocked successfully
glReleaseVideoCaptureDeviceNV
(long
the device
device
)

Use this method when finished capturing data on a locked video capture device to unlock it.

private static native boolean
nglBindVideoCaptureDeviceNV(ByteBuffer peer_info, int video_slot, long device)

private static native int
nglEnumerateVideoCaptureDevicesNV(ByteBuffer peer_info, LongBuffer devices, int devices_position)

private static native boolean
nglLockVideoCaptureDeviceNV(ByteBuffer peer_info, long device)

private static native boolean
nglQueryVideoCaptureDeviceNV(ByteBuffer peer_info, long device, int attribute, IntBuffer value, int value_position)

private static native boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NVVideoCaptureUtilback to summary
private NVVideoCaptureUtil()

Method Detail

checkExtensionback to summary
private static void checkExtension()
getPeerInfoback to summary
private static ByteBuffer getPeerInfo()
glBindVideoCaptureDeviceNVback to summary
public static boolean glBindVideoCaptureDeviceNV(int video_slot, long device)

After successfully locking a video capture device, use this method to bind it to the capture slot specified in the current context. This method is the cross- platform equivalent of glXBindVideoCaptureDeviceNV and wglBindVideoCaptureDeviceNV.

Parameters
video_slot:int

the video slot

device:long

the video capture device

Returns:boolean

true if the binding was successful

glEnumerateVideoCaptureDevicesNVback to summary
public static int glEnumerateVideoCaptureDevicesNV(LongBuffer devices)

Enumerate the available video capture devices. This method is the cross-platform equivalent of glXEnumerateVideoCaptureDevicesNV and wglEnumerateVideoCaptureDevicesNV. Since they are not really compatible, this method works like the WGL version. That is, you first call it with a null devices buffer, get the number of devices, then call it again with an appropriately sized buffer.

Parameters
devices:LongBuffer

the buffer to store devices in

Returns:int

the number of available video capture devices

glLockVideoCaptureDeviceNVback to summary
public static boolean glLockVideoCaptureDeviceNV(long device)

To lock a video capture device to a display connection, use this method. Before using a video capture device, it must be locked. Once a video capture device is locked by a process, no other process can lock a video capture device with the same unique ID until the lock is released or the process ends.

Parameters
device:long

the device to lock

Returns:boolean

true if the lock was successful

glQueryVideoCaptureDeviceNVback to summary
public static boolean glQueryVideoCaptureDeviceNV(long device, int attribute, IntBuffer value)

Use this method to query the unique ID of the physical device backing a video capture device handle.

Parameters
device:long

the device

attribute:int

the attribute to query

value:IntBuffer

the buffer to store the value in

Returns:boolean

true if the query was successful

glReleaseVideoCaptureDeviceNVback to summary
public static boolean glReleaseVideoCaptureDeviceNV(long device)

Use this method when finished capturing data on a locked video capture device to unlock it.

Parameters
device:long

the device

Returns:boolean

true if the device was unlocked successfully

nglBindVideoCaptureDeviceNVback to summary
private static native boolean nglBindVideoCaptureDeviceNV(ByteBuffer peer_info, int video_slot, long device)
nglEnumerateVideoCaptureDevicesNVback to summary
private static native int nglEnumerateVideoCaptureDevicesNV(ByteBuffer peer_info, LongBuffer devices, int devices_position)
nglLockVideoCaptureDeviceNVback to summary
private static native boolean nglLockVideoCaptureDeviceNV(ByteBuffer peer_info, long device)
nglQueryVideoCaptureDeviceNVback to summary
private static native boolean nglQueryVideoCaptureDeviceNV(ByteBuffer peer_info, long device, int attribute, IntBuffer value, int value_position)
nglReleaseVideoCaptureDeviceNVback to summary
private static native boolean nglReleaseVideoCaptureDeviceNV(ByteBuffer peer_info, long device)