最終更新:2017-06-05 (月) 15:45:52 (2516d)  

Image.getPlanes
Top / Image.getPlanes

Get the array of pixel planes for this Image.

Plane[] getPlanes ()

https://developer.android.com/reference/android/media/Image.html#getPlanes()

android.media.Image.Plane

  • abstract ByteBufferPlane.getBuffer?()Get a direct ByteBuffer containing the frame data.
    abstract intPlane.getPixelStride?()The distance between adjacent pixel samples, in bytes.
    abstract intPlane.getRowStride?()The row stride for this color plane, in bytes.

  • [0]:Y
    [1]:U(UV)
    [2]:V(VU)

メモ

  • PixelStride?が1であれば、Planar=I420
  • PixelStride?が2の場合、SemiPlanar?

SemiPlanar?の場合

  • UVとVUのBufferは同じ領域を参照しています。但し、それぞれUまたはVから始まるアドレスになります。
    フォーマットUVアドレスVUアドレス
    NV120x000010000x00001001
    NV210x000010010x00001000

参考

関連