|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.ddmlib.RawImage
public final class RawImage
Data representing an image taken from a device frame buffer.
Field Summary | |
---|---|
int |
alpha_length
|
int |
alpha_offset
|
int |
blue_length
|
int |
blue_offset
|
int |
bpp
|
byte[] |
data
|
int |
green_length
|
int |
green_offset
|
int |
height
|
int |
red_length
|
int |
red_offset
|
int |
size
|
int |
version
|
int |
width
|
Constructor Summary | |
---|---|
RawImage()
|
Method Summary | |
---|---|
int |
getARGB(int index)
Returns an ARGB integer value for the pixel at index in data . |
int |
getBlueMask()
Returns the mask value for the blue color. |
int |
getGreenMask()
Returns the mask value for the green color. |
static int |
getHeaderSize(int version)
Returns the size of the header for a specific version of the framebuffer adb protocol. |
int |
getRedMask()
Returns the mask value for the red color. |
RawImage |
getRotated()
Returns a rotated version of the image The image is rotated counter-clockwise. |
boolean |
readHeader(int version,
java.nio.ByteBuffer buf)
Reads the header of a RawImage from a ByteBuffer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int version
public int bpp
public int size
public int width
public int height
public int red_offset
public int red_length
public int blue_offset
public int blue_length
public int green_offset
public int green_length
public int alpha_offset
public int alpha_length
public byte[] data
Constructor Detail |
---|
public RawImage()
Method Detail |
---|
public boolean readHeader(int version, java.nio.ByteBuffer buf)
ByteBuffer
.
The way the data is sent over adb is defined in system/core/adb/framebuffer_service.c
version
- the version of the protocol.buf
- the buffer to read from.
public int getRedMask()
public int getGreenMask()
public int getBlueMask()
public static int getHeaderSize(int version)
version
- the version of the protocol
public RawImage getRotated()
public int getARGB(int index)
data
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |