JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.texture.spi.JPEGImage Class Reference
Collaboration diagram for com.jogamp.opengl.util.texture.spi.JPEGImage:

Public Member Functions

ColorSpace getColorSpace ()
 Returns the color space of the pixel data. More...
 
int getComponentCount ()
 Returns the number of components of the pixel data. More...
 
int getWidth ()
 Returns the width of the image. More...
 
int getHeight ()
 Returns the height of the image. More...
 
boolean getHasReversedChannels ()
 Returns true if data has the channels reversed to BGR or BGRA, otherwise RGB or RGBA is expected. More...
 
int getGLFormat ()
 Returns the OpenGL format for this texture; e.g. More...
 
int getGLType ()
 Returns the OpenGL data type: GL.GL_UNSIGNED_BYTE. More...
 
int getBytesPerPixel ()
 Returns the bytes per pixel. More...
 
ByteBuffer getData ()
 Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D. More...
 
String toString ()
 

Static Public Member Functions

static JPEGImage read (final InputStream in, final ColorSpace cs) throws IOException
 Reads a JPEG image from the specified InputStream, using the given color space for storage. More...
 
static JPEGImage read (final InputStream in) throws IOException
 Reads a JPEG image from the specified InputStream, using the ColorSpace#RGB. More...
 

Detailed Description

Definition at line 42 of file JPEGImage.java.

Member Function Documentation

◆ getBytesPerPixel()

int com.jogamp.opengl.util.texture.spi.JPEGImage.getBytesPerPixel ( )

Returns the bytes per pixel.

Definition at line 169 of file JPEGImage.java.

Here is the caller graph for this function:

◆ getColorSpace()

ColorSpace com.jogamp.opengl.util.texture.spi.JPEGImage.getColorSpace ( )

Returns the color space of the pixel data.

Definition at line 148 of file JPEGImage.java.

◆ getComponentCount()

int com.jogamp.opengl.util.texture.spi.JPEGImage.getComponentCount ( )

Returns the number of components of the pixel data.

Definition at line 151 of file JPEGImage.java.

◆ getData()

ByteBuffer com.jogamp.opengl.util.texture.spi.JPEGImage.getData ( )

Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D.

Definition at line 173 of file JPEGImage.java.

Here is the caller graph for this function:

◆ getGLFormat()

int com.jogamp.opengl.util.texture.spi.JPEGImage.getGLFormat ( )

Returns the OpenGL format for this texture; e.g.

GL.GL_LUMINANCE, GL.GL_RGB or GL.GL_RGBA.

Definition at line 163 of file JPEGImage.java.

Here is the caller graph for this function:

◆ getGLType()

int com.jogamp.opengl.util.texture.spi.JPEGImage.getGLType ( )

Returns the OpenGL data type: GL.GL_UNSIGNED_BYTE.

Definition at line 166 of file JPEGImage.java.

Here is the caller graph for this function:

◆ getHasReversedChannels()

boolean com.jogamp.opengl.util.texture.spi.JPEGImage.getHasReversedChannels ( )

Returns true if data has the channels reversed to BGR or BGRA, otherwise RGB or RGBA is expected.

Definition at line 160 of file JPEGImage.java.

◆ getHeight()

int com.jogamp.opengl.util.texture.spi.JPEGImage.getHeight ( )

Returns the height of the image.

Definition at line 157 of file JPEGImage.java.

Here is the caller graph for this function:

◆ getWidth()

int com.jogamp.opengl.util.texture.spi.JPEGImage.getWidth ( )

Returns the width of the image.

Definition at line 154 of file JPEGImage.java.

Here is the caller graph for this function:

◆ read() [1/2]

static JPEGImage com.jogamp.opengl.util.texture.spi.JPEGImage.read ( final InputStream  in) throws IOException
static

Reads a JPEG image from the specified InputStream, using the ColorSpace#RGB.

Definition at line 59 of file JPEGImage.java.

◆ read() [2/2]

static JPEGImage com.jogamp.opengl.util.texture.spi.JPEGImage.read ( final InputStream  in,
final ColorSpace  cs 
) throws IOException
static

Reads a JPEG image from the specified InputStream, using the given color space for storage.

Parameters
in
csStorage color space, either ColorSpace#RGB or ColorSpace#YCbCr. ColorSpace#YCCK and ColorSpace#CMYK will throw an exception!
Returns
Exceptions
IOException

Definition at line 54 of file JPEGImage.java.

Here is the caller graph for this function:

◆ toString()

String com.jogamp.opengl.util.texture.spi.JPEGImage.toString ( )

Definition at line 176 of file JPEGImage.java.


The documentation for this class was generated from the following file: