DESY ACOP Beans Home

de.desy.acop.video.displayer
Enum ImageFormat

java.lang.Object
  extended by java.lang.Enum<ImageFormat>
      extended by de.desy.acop.video.displayer.ImageFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ImageFormat>

public enum ImageFormat
extends java.lang.Enum<ImageFormat>

Image format enumeration

Author:
mdavid

Enum Constant Summary
IMAGE_FORMAT_BAYER
          Bayer pattern
IMAGE_FORMAT_BMP
          Windows BMP file
IMAGE_FORMAT_GRAY
          Grayscale format
IMAGE_FORMAT_HUFFYUV
          HuffYUV (compressed grayscale)
IMAGE_FORMAT_JPEG
          JPEG file
IMAGE_FORMAT_RGB
          RGB (24bpp r-g-b) format
IMAGE_FORMAT_RGB15
          RGB (16bpp 0-5r-5g-5b) format
IMAGE_FORMAT_RGB16
          RGB (16bpp 5r-6g-5b)) format
IMAGE_FORMAT_RGBA
          RGB (32bpp a-r-g-b) format
IMAGE_FORMAT_TIFF
          TIFF file
IMAGE_FORMAT_YUV411
          YUV411 format
IMAGE_FORMAT_YUV422
          YUV422 format
IMAGE_FORMAT_YUV444
          YUV444 format
 
Method Summary
 boolean equals(int id)
           
 int getId()
          Returns integer representation of the TINE image format
 boolean isSupported()
          Returns true if format is supported.
static ImageFormat valueOf(int id)
           
static ImageFormat valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ImageFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IMAGE_FORMAT_GRAY

public static final ImageFormat IMAGE_FORMAT_GRAY
Grayscale format


IMAGE_FORMAT_RGB

public static final ImageFormat IMAGE_FORMAT_RGB
RGB (24bpp r-g-b) format


IMAGE_FORMAT_RGBA

public static final ImageFormat IMAGE_FORMAT_RGBA
RGB (32bpp a-r-g-b) format


IMAGE_FORMAT_RGB15

public static final ImageFormat IMAGE_FORMAT_RGB15
RGB (16bpp 0-5r-5g-5b) format


IMAGE_FORMAT_RGB16

public static final ImageFormat IMAGE_FORMAT_RGB16
RGB (16bpp 5r-6g-5b)) format


IMAGE_FORMAT_JPEG

public static final ImageFormat IMAGE_FORMAT_JPEG
JPEG file


IMAGE_FORMAT_TIFF

public static final ImageFormat IMAGE_FORMAT_TIFF
TIFF file


IMAGE_FORMAT_YUV411

public static final ImageFormat IMAGE_FORMAT_YUV411
YUV411 format


IMAGE_FORMAT_YUV422

public static final ImageFormat IMAGE_FORMAT_YUV422
YUV422 format


IMAGE_FORMAT_YUV444

public static final ImageFormat IMAGE_FORMAT_YUV444
YUV444 format


IMAGE_FORMAT_HUFFYUV

public static final ImageFormat IMAGE_FORMAT_HUFFYUV
HuffYUV (compressed grayscale)


IMAGE_FORMAT_BMP

public static final ImageFormat IMAGE_FORMAT_BMP
Windows BMP file


IMAGE_FORMAT_BAYER

public static final ImageFormat IMAGE_FORMAT_BAYER
Bayer pattern

Method Detail

values

public static ImageFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ImageFormat c : ImageFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ImageFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getId

public int getId()
Returns integer representation of the TINE image format

Returns:
integer representation of the TINE image format

isSupported

public boolean isSupported()
Returns true if format is supported.

Returns:
true if TINE image format is supported, otherwise false

equals

public boolean equals(int id)

valueOf

public static ImageFormat valueOf(int id)
                           throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException


Copyright © 2010. All Rights Reserved.