RawImage
public
final
class
RawImage
extends Object
| java.lang.Object | |
| ↳ | com.android.ddmlib.RawImage |
デバイスのフレームバッファから取得された画像を表すデータ。
概要
定数 | |
|---|---|
int |
COLOR_SPACE_DISPLAY_P3
|
int |
COLOR_SPACE_SRGB
|
int |
COLOR_SPACE_UNKNOWN
|
フィールド | |
|---|---|
public
int |
alpha_length
|
public
int |
alpha_offset
|
public
int |
blue_length
|
public
int |
blue_offset
|
public
int |
bpp
|
public
int |
colorSpace
|
public
byte[] |
data
|
public
int |
green_length
|
public
int |
green_offset
|
public
int |
height
|
public
int |
red_length
|
public
int |
red_offset
|
public
int |
size
|
public
int |
version
|
public
int |
width
|
パブリック コンストラクタ | |
|---|---|
RawImage()
|
|
パブリック メソッド | |
|---|---|
BufferedImage
|
asBufferedImage()
|
int
|
getARGB(int index)
|
int
|
getBlueMask()
青色のマスク値を返します。 |
int
|
getGreenMask()
緑色のマスク値を返します。 |
static
int
|
getHeaderSize(int version)
特定のバージョンのフレームバッファ adb プロトコルのヘッダーのサイズを返します。 |
String
|
getProfileName()
|
int
|
getRedMask()
赤色のマスク値を返します。 |
RawImage
|
getRotated()
画像を回転させたバージョンを返します。画像は反時計回りに回転します。 |
boolean
|
readHeader(int version, ByteBuffer buf)
|
定数
COLOR_SPACE_DISPLAY_P3
public static final int COLOR_SPACE_DISPLAY_P3
定数値: 2 (0x00000002)
COLOR_SPACE_SRGB
public static final int COLOR_SPACE_SRGB
定数値: 1 (0x00000001)
COLOR_SPACE_UNKNOWN
public static final int COLOR_SPACE_UNKNOWN
定数値: 0 (0x00000000)
フィールド
alpha_length
public int alpha_length
alpha_offset
public int alpha_offset
blue_length
public int blue_length
blue_offset
public int blue_offset
bpp
public int bpp
colorSpace
public int colorSpace
データ
public byte[] data
green_length
public int green_length
green_offset
public int green_offset
height
public int height
red_length
public int red_length
red_offset
public int red_offset
size
public int size
version
public int version
width
public int width
パブリック コンストラクタ
RawImage
public RawImage ()
パブリック メソッド
asBufferedImage
public BufferedImage asBufferedImage ()
| 戻り値 | |
|---|---|
BufferedImage |
|
getBlueMask
public int getBlueMask ()
青色のマスク値を返します。
この値は org.eclipse.swt.graphics.PaletteData と互換性があります。
| 戻り値 | |
|---|---|
int |
|
getGreenMask
public int getGreenMask ()
緑色のマスク値を返します。
この値は org.eclipse.swt.graphics.PaletteData と互換性があります。
| 戻り値 | |
|---|---|
int |
|
getHeaderSize
public static int getHeaderSize (int version)
特定のバージョンのフレームバッファ adb プロトコルのヘッダーのサイズを返します。
| パラメータ | |
|---|---|
version |
int: プロトコルのバージョン |
| 戻り値 | |
|---|---|
int |
ヘッダーを構成する int の数。 |
getProfileName
public String getProfileName ()
| 戻り値 | |
|---|---|
String |
|
getRedMask
public int getRedMask ()
赤色のマスク値を返します。
この値は org.eclipse.swt.graphics.PaletteData と互換性があります。
| 戻り値 | |
|---|---|
int |
|
readHeader
public boolean readHeader (int version,
ByteBuffer buf)ERROR(/ByteBuffer) から RawImage のヘッダーを読み取ります。
adb 経由でデータが送信される方法は、system/core/adb/framebuffer_service.c で定義されています。
| パラメータ | |
|---|---|
version |
int: プロトコルのバージョン。 |
buf |
ByteBuffer: 読み取り元のバッファ。 |
| 戻り値 | |
|---|---|
boolean |
成功した場合は true |