org.nees.buffalo.data
Class VSVToPNG

java.lang.Object
  extended by org.nees.buffalo.data.VSVToPNG

public class VSVToPNG
extends Object

Author:
Jason P. Hanley

Field Summary
static int[] BIT_MASK_RGB555
           
static int[] BIT_MASK_RGB565
           
static int[] BIT_MASK_RGB888
           
static int[] BIT_MASK_RGB8888
           
static int PIXEL_TYPE_GRAYSCALE16
           
static int PIXEL_TYPE_GRAYSCALE8
           
static int PIXEL_TYPE_RGB555
           
static int PIXEL_TYPE_RGB565
           
static int PIXEL_TYPE_RGB888
           
static int PIXEL_TYPE_RGB8888
           
static int PIXEL_TYPE_YUV
           
 
Constructor Summary
VSVToPNG(File streamFile, File outputDirectory)
           
 
Method Summary
static DataBuffer bytesToDataBuffer(byte[] b, int pixelSize, int numberOfPixels, int offset, int length)
           
 String getTestName()
           
static void main(String[] args)
           
static void saveImage(DataBuffer dbuf, int width, int height, int pixelSize, int pixelType, File imageFileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIXEL_TYPE_GRAYSCALE8

public static final int PIXEL_TYPE_GRAYSCALE8
See Also:
Constant Field Values

PIXEL_TYPE_GRAYSCALE16

public static final int PIXEL_TYPE_GRAYSCALE16
See Also:
Constant Field Values

PIXEL_TYPE_RGB888

public static final int PIXEL_TYPE_RGB888
See Also:
Constant Field Values

PIXEL_TYPE_RGB8888

public static final int PIXEL_TYPE_RGB8888
See Also:
Constant Field Values

PIXEL_TYPE_RGB555

public static final int PIXEL_TYPE_RGB555
See Also:
Constant Field Values

PIXEL_TYPE_RGB565

public static final int PIXEL_TYPE_RGB565
See Also:
Constant Field Values

PIXEL_TYPE_YUV

public static final int PIXEL_TYPE_YUV
See Also:
Constant Field Values

BIT_MASK_RGB555

public static final int[] BIT_MASK_RGB555

BIT_MASK_RGB565

public static final int[] BIT_MASK_RGB565

BIT_MASK_RGB888

public static final int[] BIT_MASK_RGB888

BIT_MASK_RGB8888

public static final int[] BIT_MASK_RGB8888
Constructor Detail

VSVToPNG

public VSVToPNG(File streamFile,
                File outputDirectory)
Method Detail

getTestName

public String getTestName()

saveImage

public static void saveImage(DataBuffer dbuf,
                             int width,
                             int height,
                             int pixelSize,
                             int pixelType,
                             File imageFileName)

bytesToDataBuffer

public static DataBuffer bytesToDataBuffer(byte[] b,
                                           int pixelSize,
                                           int numberOfPixels,
                                           int offset,
                                           int length)

main

public static void main(String[] args)