Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: media/base/video_types.h

Issue 1326153002: Add PIXEL_FORMAT_MT21. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/video_frame.cc ('k') | media/base/video_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_types.h
diff --git a/media/base/video_types.h b/media/base/video_types.h
index cecd6f5218391b5d6428e6746051b7bef6eb4a97..b40dfb47a0a380e528e301f9dffc2487d0698fc0 100644
--- a/media/base/video_types.h
+++ b/media/base/video_types.h
@@ -37,9 +37,18 @@ enum VideoPixelFormat {
PIXEL_FORMAT_RGB24 = 12, // 24bpp BGR, 1 plane.
PIXEL_FORMAT_RGB32 = 13, // 32bpp BGRA, 1 plane.
PIXEL_FORMAT_MJPEG = 14, // MJPEG compressed.
+ // MediaTek proprietary format. MT21 is similar to NV21 except the memory
+ // layout and pixel layout (swizzles). 12bpp with Y plane followed by a 2x2
+ // interleaved VU plane. Each image contains two buffers -- Y plane and VU
+ // plane. Two planes can be non-contiguous in memory. The starting addresses
+ // of Y plane and VU plane are 4KB alignment.
+ // Suppose image dimension is (width, height). For both Y plane and VU plane:
+ // Row pitch = ((width+15)/16) * 16.
+ // Plane size = Row pitch * (((height+31)/32)*32)
+ PIXEL_FORMAT_MT21 = 15,
// Please update UMA histogram enumeration when adding new formats here.
PIXEL_FORMAT_MAX =
- PIXEL_FORMAT_MJPEG, // Must always be equal to largest entry logged.
+ PIXEL_FORMAT_MT21, // Must always be equal to largest entry logged.
};
// Color space or color range used for the pixels.
« no previous file with comments | « media/base/video_frame.cc ('k') | media/base/video_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698