Home | History | Annotate | Download | only in phone

Lines Matching defs:FourCC

26 // Common definition for video, including fourcc and VideoFormat
38 // Definition of fourcc.
40 // Convert four characters to a fourcc code.
43 #define FOURCC(a, b, c, d) (\
47 // Get the name, that is, string with four characters, of a fourcc code.
48 inline std::string GetFourccName(uint32 fourcc) {
50 name.push_back(static_cast<char>(fourcc & 0xFF));
51 name.push_back(static_cast<char>((fourcc >> 8) & 0xFF));
52 name.push_back(static_cast<char>((fourcc >> 16) & 0xFF));
53 name.push_back(static_cast<char>((fourcc >> 24) & 0xFF));
57 // FourCC codes used in Google Talk.
58 // Some good pages discussing FourCC codes:
60 // http://www.fourcc.org/yuv.php
61 enum FourCC {
62 // Canonical fourcc codes used in our code.
63 FOURCC_I420 = FOURCC('I', '4', '2', '0'),
64 FOURCC_YUY2 = FOURCC('Y', 'U', 'Y', '2'),
65 FOURCC_UYVY = FOURCC('U', 'Y', 'V', 'Y'),
66 FOURCC_M420 = FOURCC('M', '4', '2', '0'),
67 FOURCC_24BG = FOURCC('2', '4', 'B', 'G'),
68 FOURCC_ABGR = FOURCC('A', 'B', 'G', 'R'),
69 FOURCC_BGRA = FOURCC('B', 'G', 'R', 'A'),
70 FOURCC_ARGB = FOURCC('A', 'R', 'G', 'B'),
71 FOURCC_MJPG = FOURCC('M', 'J', 'P', 'G'),
72 FOURCC_RAW = FOURCC('r', 'a', 'w', ' '),
73 FOURCC_NV21 = FOURCC('N', 'V', '2', '1'),
74 FOURCC_NV12 = FOURCC('N', 'V', '1', '2'),
77 FOURCC_RGGB = FOURCC('R', 'G', 'G', 'B'),
78 FOURCC_BGGR = FOURCC('B', 'G', 'G', 'R'),
79 FOURCC_GRBG = FOURCC('G', 'R', 'B', 'G'),
80 FOURCC_GBRG = FOURCC('G', 'B', 'R', 'G'),
82 // Aliases for canonical fourcc codes, replaced with their canonical
84 FOURCC_IYUV = FOURCC('I', 'Y', 'U', 'V'), // Alias for I420
85 FOURCC_YU12 = FOURCC('Y', 'U', '1', '2'), // Alias for I420
86 FOURCC_YUYV = FOURCC('Y', 'U', 'Y', 'V'), // Alias for YUY2
87 FOURCC_YUVS = FOURCC('y', 'u', 'v', 's'), // Alias for YUY2 on Mac
88 FOURCC_HDYC = FOURCC('H', 'D', 'Y', 'C'), // Alias for UYVY
89 FOURCC_2VUY = FOURCC('2', 'v', 'u', 'y'), // Alias for UYVY
90 FOURCC_JPEG = FOURCC('J', 'P', 'E', 'G'), // Alias for MJPG
91 FOURCC_BA81 = FOURCC('B', 'A', '8', '1'), // Alias for BGGR
93 // Match any fourcc.
97 // Converts fourcc aliases into canonical ones.
98 uint32 CanonicalFourCC(uint32 fourcc);
109 VideoFormat() : width(0), height(0), interval(0), fourcc(0) {}
115 fourcc(cc) {
122 fourcc(format.fourcc) {
137 interval == format.interval && fourcc == format.fourcc;
145 return (fourcc < format.fourcc) ||
146 (fourcc == format.fourcc && width < format.width) ||
147 (fourcc == format.fourcc && width == format.width &&
149 (fourcc == format.fourcc && width == format.width &&
158 uint32 fourcc; // color space. FOURCC_ANY means that any color space is OK.