public abstract class LXBufferOutput extends LXOutput
Modifier and Type | Class and Description |
---|---|
static class |
LXBufferOutput.ByteOrder
Various orderings for RGB buffer data
|
LXOutput.GammaMode, LXOutput.InetOutput
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
protected LXBufferOutput.ByteOrder |
byteOrder |
protected LXBufferOutput.ByteOrder[] |
byteOrderBuffer
Wacky option to have a different byte-order per-pixel, which may be used
in rare cases by JSONFixture.
|
protected int[] |
indexBuffer |
brightness, enabled, framesPerSecond, gamma, gammaMode
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Modifier | Constructor and Description |
---|---|
protected |
LXBufferOutput(LX lx,
int[] indexBuffer) |
protected |
LXBufferOutput(LX lx,
int[] indexBuffer,
LXBufferOutput.ByteOrder byteOrder) |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
getDataBuffer()
Subclasses should provide a handle to a raw byte buffer
|
protected abstract int |
getDataBufferOffset()
Offset into raw byte buffer where color data is written
|
LXBufferOutput |
setByteOrder(LXBufferOutput.ByteOrder byteOrder)
Sets the byte ordering of data in this buffer
|
LXBufferOutput |
setByteOrder(LXBufferOutput.ByteOrder[] byteOrderBuffer)
Sets a dynamic byte ordering on this output, where every index position
may have a distinct byte ordering.
|
protected LXBufferOutput |
updateDataBuffer(int[] colors,
byte[] glut)
Helper for subclasses to copy a list of points into the data buffer at a
specified offset.
|
LXBufferOutput |
updateIndexBuffer(int[] indexBuffer)
Updates the values in the index buffer for this output.
|
error, error, getGammaLut, log, onParameterChanged, onSend, onSend, send, send, setGammaDelegate, setGroup
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, dispose, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, load, loadParameters, removeParameter, removeParameter, save, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
protected LXBufferOutput.ByteOrder byteOrder
protected final int[] indexBuffer
protected LXBufferOutput.ByteOrder[] byteOrderBuffer
protected LXBufferOutput(LX lx, int[] indexBuffer)
protected LXBufferOutput(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder)
public LXBufferOutput updateIndexBuffer(int[] indexBuffer)
indexBuffer
- New index buffer values, must have same length as existingprotected abstract byte[] getDataBuffer()
protected abstract int getDataBufferOffset()
public LXBufferOutput setByteOrder(LXBufferOutput.ByteOrder byteOrder)
byteOrder
- Byte orderingpublic LXBufferOutput setByteOrder(LXBufferOutput.ByteOrder[] byteOrderBuffer)
byteOrderBuffer
- Array of byte orderingsprotected LXBufferOutput updateDataBuffer(int[] colors, byte[] glut)
colors
- Array of color valuesglut
- Look-up table of gamma-corrected brightness valuesLX library by Mark C. Slee. © 2012-2020