| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final ByteBuffer | |
| private static final boolean | |
| private final int | |
| private final int | |
| private final JPEGImage. | |
| private final int | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public TextureData. | |
| public int | |
| public ByteBuffer | getData()
Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D. |
| public int | getGLFormat()
Returns the OpenGL format for this texture; e.g. GL.GL_LUMINANCE, GL.GL_RGB or GL.GL_RGBA. |
| public int | |
| public boolean | getHasReversedChannels()
Returns true if data has the channels reversed to BGR or BGRA, otherwise RGB or RGBA is expected. |
| public int | |
| public int | |
| public static JPEGImage | read(final InputStream in, final TextureData.
Storage color space, either csColorSpace#RGB or ColorSpace#YCbCr. ColorSpace#YCCK and ColorSpace#CMYK will throw an exception!Reads a JPEG image from the specified InputStream, using the given color space for storage. |
| public static JPEGImage | read(final InputStream in)
Reads a JPEG image from the specified InputStream, using the |
| public String |
| bytesPerPixel | back to summary |
|---|---|
| private final int bytesPerPixel | |
| data | back to summary |
|---|---|
| private final ByteBuffer data | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| glFormat | back to summary |
|---|---|
| private final int glFormat | |
| pixelHeight | back to summary |
|---|---|
| private final int pixelHeight | |
| pixelStorage | back to summary |
|---|---|
| private final JPEGImage. | |
| pixelWidth | back to summary |
|---|---|
| private final int pixelWidth | |
| reversedChannels | back to summary |
|---|---|
| private final boolean reversedChannels | |
| JPEGImage | back to summary |
|---|---|
| private JPEGImage(final InputStream in, final TextureData. | |
| getBytesPerPixel | back to summary |
|---|---|
| public int getBytesPerPixel() Returns the bytes per pixel | |
| getColorSpace | back to summary |
|---|---|
| public TextureData. Returns the color space of the pixel data | |
| getComponentCount | back to summary |
|---|---|
| public int getComponentCount() Returns the number of components of the pixel data | |
| getData | back to summary |
|---|---|
| public ByteBuffer getData() Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D. | |
| getGLFormat | back to summary |
|---|---|
| public int getGLFormat() Returns the OpenGL format for this texture; e.g. GL.GL_LUMINANCE, GL.GL_RGB or GL.GL_RGBA. | |
| getGLType | back to summary |
|---|---|
| public int getGLType() Returns the OpenGL data type: GL.GL_UNSIGNED_BYTE. | |
| getHasReversedChannels | back to summary |
|---|---|
| public boolean getHasReversedChannels() Returns true if data has the channels reversed to BGR or BGRA, otherwise RGB or RGBA is expected. | |
| getHeight | back to summary |
|---|---|
| public int getHeight() Returns the height of the image. | |
| getWidth | back to summary |
|---|---|
| public int getWidth() Returns the width of the image. | |
| read | back to summary |
|---|---|
| public static JPEGImage read(final InputStream in, final TextureData. Reads a JPEG image from the specified InputStream, using the given color space for storage.
| |
| read | back to summary |
|---|---|
| public static JPEGImage read(final InputStream in) throws IOException Reads a JPEG image from the specified InputStream, using the | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteBuffer | |
| pack-priv int | |
| pack-priv int | |
| pack-priv TextureData. | |
| pack-priv int | |
| pack-priv final TextureData. | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final TextureData. | allocate(final int width, final int height, final TextureData.
the color-space of the decoded JPEG sourceCM,number of components used for the given source color-space sourceComponents)Implements jogamp. |
| public final void | store2(final int x, final int y, final byte c1, final byte c2)
Implements jogamp. |
| public final void | storeRGB(final int x, final int y, final byte r, final byte g, final byte b)
Implements jogamp. |
| public final void | storeYCbCr(final int x, final int y, final byte Y, final byte Cb, final byte Cr)
Implements jogamp. |
| public String |
| data | back to summary |
|---|---|
| pack-priv ByteBuffer data | |
| height | back to summary |
|---|---|
| pack-priv int height | |
| sourceComponents | back to summary |
|---|---|
| pack-priv int sourceComponents | |
| sourceCS | back to summary |
|---|---|
| pack-priv TextureData. | |
| storageComponents | back to summary |
|---|---|
| pack-priv int storageComponents | |
| storageCS | back to summary |
|---|---|
| pack-priv final TextureData. | |
| width | back to summary |
|---|---|
| pack-priv int width | |
| JPEGColorSink | back to summary |
|---|---|
| pack-priv JPEGColorSink(final TextureData. | |
| allocate | back to summary |
|---|---|
| public final TextureData. Implements jogamp.
| |
| store2 | back to summary |
|---|---|
| public final void store2(final int x, final int y, final byte c1, final byte c2) Implements jogamp.
| |
| storeRGB | back to summary |
|---|---|
| public final void storeRGB(final int x, final int y, final byte r, final byte g, final byte b) Implements jogamp.
| |
| storeYCbCr | back to summary |
|---|---|
| public final void storeYCbCr(final int x, final int y, final byte Y, final byte Cb, final byte Cr) Implements jogamp.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |