public class ImageFormatConvert
extends java.lang.Object
Constructor and Description |
---|
ImageFormatConvert() |
Modifier and Type | Method and Description |
---|---|
void |
convert(byte[] inputBuffer,
int inputSize,
Bitmap outputBuffer,
int outputSize,
EnumDefineSet.PixelFormatEntry pixelFormat,
int width,
int height,
boolean flip)
convert image to dest pixelformat
|
void |
convert(byte[] inputBuffer,
int inputSize,
byte[] outputBuffer,
int outputSize,
EnumDefineSet.PixelFormatEntry pixelFormat,
int width,
int height,
boolean flip)
convert image to dest pixelformat
|
void |
createImageFormatConvertHandle()
create image format convert handle
|
void |
destroyImageFormatConvertHandle()
destroy image format convert handle
|
int |
getAlphaValue()
get alpha value
|
int |
getBufferSizeForConversion(int width,
int height,
EnumDefineSet.PixelFormatEntry pixelFormat)
get buffer size for conversion
|
EnumDefineSet.PixelFormatEntry |
getDstFormat()
get dest format
|
EnumDefineSet.BayerConvertType |
getInterpolationType()
get Valid Bits value
|
EnumDefineSet.ValidBit |
getValidBits()
set Valid Bits value
|
void |
setAlphaValue(int alphaValue)
set alpha value
|
void |
setDstFormat(EnumDefineSet.PixelFormatEntry pixelFormat)
set dest format
|
void |
setInterpolationType(EnumDefineSet.BayerConvertType interpolationType)
set Valid Bits value
|
void |
setValidBits(EnumDefineSet.ValidBit validBits)
set Valid Bits value
|
public void createImageFormatConvertHandle() throws ExceptionSet
ExceptionSet
public void destroyImageFormatConvertHandle() throws ExceptionSet
ExceptionSet
public void setDstFormat(EnumDefineSet.PixelFormatEntry pixelFormat) throws ExceptionSet
pixelFormat
- EnumDefineSet.PixelFormatEntryExceptionSet
public EnumDefineSet.PixelFormatEntry getDstFormat() throws ExceptionSet
ExceptionSet
public void setAlphaValue(int alphaValue) throws ExceptionSet
Alpha
- channel value(range of 0~255)ExceptionSet
public int getAlphaValue()
public void setValidBits(EnumDefineSet.ValidBit validBits) throws ExceptionSet
validBits
- EnumDefineSet.ValidBit typeExceptionSet
public EnumDefineSet.ValidBit getValidBits()
public void setInterpolationType(EnumDefineSet.BayerConvertType interpolationType) throws ExceptionSet
interpolationType
- EnumDefineSet.BayerConvertType typeExceptionSet
public EnumDefineSet.BayerConvertType getInterpolationType()
public int getBufferSizeForConversion(int width, int height, EnumDefineSet.PixelFormatEntry pixelFormat) throws ExceptionSet
width
- input image's widthheight
- input image's heightpixelFormat
- image's pixelFormat .ExceptionSet
public void convert(byte[] inputBuffer, int inputSize, byte[] outputBuffer, int outputSize, EnumDefineSet.PixelFormatEntry pixelFormat, int width, int height, boolean flip) throws ExceptionSet
inputBuffer
- input image bufferinputSize
- input image buffer sizeoutputBuffer
- output image bufferoutputSize
- output image sizepixelFormat
- convert to dest pixelformatwidth
- input image's widthheight
- input image's heightflip
- image flip or not, true:flip false:not flipExceptionSet
public void convert(byte[] inputBuffer, int inputSize, Bitmap outputBuffer, int outputSize, EnumDefineSet.PixelFormatEntry pixelFormat, int width, int height, boolean flip) throws ExceptionSet
inputBuffer
- input image bufferinputSize
- input image buffer sizeoutputBuffer
- output image BitmapoutputSize
- output image sizepixelFormat
- convert to dest pixelformatwidth
- input image's widthheight
- input image's heightflip
- image flip or not, true:flip false:not flipExceptionSet