Chromium Code Reviews
DescriptionAdd 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
Committed: https://crrev.com/d9d4b9bb1bcb007db751a7473e00167ea9ffeb2f
Cr-Commit-Position: refs/heads/master@{#348575}
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : add MT21 to more files #Patch Set 4 : address piman's comment #Patch Set 5 : rebase #Messages
Total messages: 25 (9 generated)
|