public final class PlanarYUVLuminanceSource
extends LuminanceSource
It works for any pixel format where the Y channel is planar and appears first, including YCbCr_420_SP and YCbCr_422_SP.
| 构造器和说明 |
|---|
PlanarYUVLuminanceSource(byte[] yuvData,
int dataWidth,
int dataHeight,
int left,
int top,
int width,
int height) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getDataHeight() |
int |
getDataWidth() |
byte[] |
getMatrix() |
byte[] |
getRow(int y,
byte[] row) |
boolean |
isCropSupported() |
android.graphics.Bitmap |
renderCroppedGreyscaleBitmap() |
public PlanarYUVLuminanceSource(byte[] yuvData,
int dataWidth,
int dataHeight,
int left,
int top,
int width,
int height)
public byte[] getRow(int y,
byte[] row)
public byte[] getMatrix()
public boolean isCropSupported()
public int getDataWidth()
public int getDataHeight()
public android.graphics.Bitmap renderCroppedGreyscaleBitmap()