Add PIXEL_FORMAT_MT21.
MT21 is a MediaTek proprietary format. MT21 is similar to NV21
except the memory layout and pixel layout (swizzles). YUV 4:2:0.
2x2 VU samples. 12 bits per pixel.
Each image contains two buffers, one for Y plane and one for
interleaved VU plane. Two planes can be non-contiguous in memory.
Suppose image dimension is (width, height)
Plane[0]: Y plane
Start address alignment = 4K bytes
Offset from Buffer[0] start address = 0
Row pitch = ((width+15)/16) * 16
Plane size = Row pitch * (((height+31)/32)*32)
Plane[1]: VU plane
Start address alignment = 4K bytes
Offset from Buffer[1] start address = 0
Row pitch = ((width+15)/16) * 16
Plane size = Row pitch * (((height+31)/32)*32)/2
BUG=chrome-os-partner:44784
TESTS=Play video and run apprtc loopback.
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/
1326153002
Cr-Commit-Position: refs/heads/master@{#348575}