public class DataStream
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
flushQueue()
Empty the cache image in the image output queue.
|
int |
getAcquisitionBufferNumber()
Getting the number of acquisition buffer
|
Bitmap |
getBitmap(GxIJNI.ProcessParam processParam,
GxIJNI.FrameInfo frameInfo,
int timeout)
Get one Bitmap (Android only)
|
void |
getImageBySurface(Surface surface,
GxIJNI.ProcessParam processParam,
GxIJNI.FrameInfo frameInfo,
java.lang.String path,
int timeout)
Get image and show image to SurfaceView Directly (Android only)
|
RawImage |
getRawImage(int timeout)
Get one RawImage
|
void |
setAcquisitionBufferNumber(int bufferNumber)
Setting the number of acquisition buffer
|
public FeatureSet.IntFeature StreamAnnouncedBufferCount
public FeatureSet.IntFeature StreamDeliveredFrameCount
public FeatureSet.IntFeature StreamLostFrameCount
public FeatureSet.IntFeature StreamIncompleteFrameCount
public FeatureSet.IntFeature StreamDeliveredPacketCount
public FeatureSet.IntFeature StreamTransferSize
public FeatureSet.IntFeature StreamTransferNumberUrb
public FeatureSet.IntFeature StreamResendPacketCount
public FeatureSet.IntFeature StreamRescuedPacketCount
public FeatureSet.IntFeature StreamResendCommandCount
public FeatureSet.IntFeature StreamUnexpectedPacketCount
public FeatureSet.IntFeature MaxPacketCountInOneBlock
public FeatureSet.IntFeature MaxPacketCountInOneCommand
public FeatureSet.IntFeature ResendTimeout
public FeatureSet.IntFeature MaxWaitPacketCount
public FeatureSet.IntFeature ResendMode
public FeatureSet.IntFeature StreamMissingBlockIDCount
public FeatureSet.IntFeature BlockTimeout
public FeatureSet.IntFeature MaxNumQueueBuffer
public FeatureSet.IntFeature PacketTimeout
public void setAcquisitionBufferNumber(int bufferNumber) throws ExceptionSet
bufferNumber
- The number of acquisition buffer, minimum=1ExceptionSet
public int getAcquisitionBufferNumber() throws ExceptionSet
ExceptionSet
public void flushQueue() throws ExceptionSet
ExceptionSet
public RawImage getRawImage(int timeout) throws ExceptionSet
timeout
- Timeout for getting one imageExceptionSet
public Bitmap getBitmap(GxIJNI.ProcessParam processParam, GxIJNI.FrameInfo frameInfo, int timeout) throws ExceptionSet
processParam
- ImageProcess paramsframeInfo
- FrameInfo (status, width, height, frameID, etc.)timeout
- Timeout for getting one imageExceptionSet
public void getImageBySurface(Surface surface, GxIJNI.ProcessParam processParam, GxIJNI.FrameInfo frameInfo, java.lang.String path, int timeout) throws ExceptionSet
surface
- surface object from SurfaceHolderprocessParam
- ImageProcess paramsframeInfo
- FrameInfo (status, width, height, frameID, etc.)path
- null Will not save
String Path to save raw imagetimeout
- Timeout for getting one imageExceptionSet