java.lang.Object | |
↳ | com.vidinoti.android.vdarsdk.VDARFrame |
Describe a frame to be processed by the vision system.
The supported frame format are (examples are given for an image of size width x height):
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VDARFrame.VDARFrameFormat | Describe the supported frame format |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new frame object with the specified format
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get and return the buffer to which the frame data should be stored.
| |||||||||||
Return the current frame format
| |||||||||||
Return the frame width in height.
| |||||||||||
Return the frame width in pixels.
| |||||||||||
Set the frame format.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new frame object with the specified format
format | the format of the frame |
---|
Get and return the buffer to which the frame data should be stored.
Warning: The frame buffer contains only width*height+width*height/2 bytes. If you try to write more bytes to the buffer, it is likely that your app will crash. Moreover, before writing to the buffer, you should rewind the buffer to the index 0 by calling the position(0) method on the buffer:
myFrame.getFrameBuffer().position(0); //Rewind the buffer before writing to it.
Return the frame width in height.
Return the frame width in pixels.
Set the frame format.
frameFormat | the frameFormat to set |
---|