| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // http://v4l2spec.bytesex.org/spec/book1.htm | 42 // http://v4l2spec.bytesex.org/spec/book1.htm |
| 43 // http://developer.apple.com/quicktime/icefloe/dispatch020.html | 43 // http://developer.apple.com/quicktime/icefloe/dispatch020.html |
| 44 // http://msdn.microsoft.com/library/windows/desktop/dd206750.aspx#nv12 | 44 // http://msdn.microsoft.com/library/windows/desktop/dd206750.aspx#nv12 |
| 45 // http://people.xiph.org/~xiphmont/containers/nut/nut4cc.txt | 45 // http://people.xiph.org/~xiphmont/containers/nut/nut4cc.txt |
| 46 | 46 |
| 47 // FourCC codes grouped according to implementation efficiency. | 47 // FourCC codes grouped according to implementation efficiency. |
| 48 // Primary formats should convert in 1 efficient step. | 48 // Primary formats should convert in 1 efficient step. |
| 49 // Secondary formats are converted in 2 steps. | 49 // Secondary formats are converted in 2 steps. |
| 50 // Auxilliary formats call primary converters. | 50 // Auxilliary formats call primary converters. |
| 51 enum FourCC { | 51 enum FourCC { |
| 52 // 9 Primary YUV formats: 5 planar, 2 biplanar, 2 packed. | 52 // 8 Primary YUV formats: 5 planar, 2 biplanar, 2 packed. |
| 53 FOURCC_I420 = FOURCC('I', '4', '2', '0'), | 53 FOURCC_I420 = FOURCC('I', '4', '2', '0'), |
| 54 FOURCC_I422 = FOURCC('I', '4', '2', '2'), | 54 FOURCC_I422 = FOURCC('I', '4', '2', '2'), |
| 55 FOURCC_I444 = FOURCC('I', '4', '4', '4'), | 55 FOURCC_I444 = FOURCC('I', '4', '4', '4'), |
| 56 FOURCC_I411 = FOURCC('I', '4', '1', '1'), | 56 FOURCC_I411 = FOURCC('I', '4', '1', '1'), // deprecated. |
| 57 FOURCC_I400 = FOURCC('I', '4', '0', '0'), | 57 FOURCC_I400 = FOURCC('I', '4', '0', '0'), |
| 58 FOURCC_NV21 = FOURCC('N', 'V', '2', '1'), | 58 FOURCC_NV21 = FOURCC('N', 'V', '2', '1'), |
| 59 FOURCC_NV12 = FOURCC('N', 'V', '1', '2'), | 59 FOURCC_NV12 = FOURCC('N', 'V', '1', '2'), |
| 60 FOURCC_YUY2 = FOURCC('Y', 'U', 'Y', '2'), | 60 FOURCC_YUY2 = FOURCC('Y', 'U', 'Y', '2'), |
| 61 FOURCC_UYVY = FOURCC('U', 'Y', 'V', 'Y'), | 61 FOURCC_UYVY = FOURCC('U', 'Y', 'V', 'Y'), |
| 62 | 62 |
| 63 // 2 Secondary YUV formats: row biplanar. | 63 // 1 Secondary YUV format: row biplanar. |
| 64 FOURCC_M420 = FOURCC('M', '4', '2', '0'), | 64 FOURCC_M420 = FOURCC('M', '4', '2', '0'), |
| 65 FOURCC_Q420 = FOURCC('Q', '4', '2', '0'), // deprecated. | 65 FOURCC_Q420 = FOURCC('Q', '4', '2', '0'), // deprecated. |
| 66 | 66 |
| 67 // 9 Primary RGB formats: 4 32 bpp, 2 24 bpp, 3 16 bpp. | 67 // 9 Primary RGB formats: 4 32 bpp, 2 24 bpp, 3 16 bpp. |
| 68 FOURCC_ARGB = FOURCC('A', 'R', 'G', 'B'), | 68 FOURCC_ARGB = FOURCC('A', 'R', 'G', 'B'), |
| 69 FOURCC_BGRA = FOURCC('B', 'G', 'R', 'A'), | 69 FOURCC_BGRA = FOURCC('B', 'G', 'R', 'A'), |
| 70 FOURCC_ABGR = FOURCC('A', 'B', 'G', 'R'), | 70 FOURCC_ABGR = FOURCC('A', 'B', 'G', 'R'), |
| 71 FOURCC_24BG = FOURCC('2', '4', 'B', 'G'), | 71 FOURCC_24BG = FOURCC('2', '4', 'B', 'G'), |
| 72 FOURCC_RAW = FOURCC('r', 'a', 'w', ' '), | 72 FOURCC_RAW = FOURCC('r', 'a', 'w', ' '), |
| 73 FOURCC_RGBA = FOURCC('R', 'G', 'B', 'A'), | 73 FOURCC_RGBA = FOURCC('R', 'G', 'B', 'A'), |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 // Converts fourcc aliases into canonical ones. | 176 // Converts fourcc aliases into canonical ones. |
| 177 LIBYUV_API uint32 CanonicalFourCC(uint32 fourcc); | 177 LIBYUV_API uint32 CanonicalFourCC(uint32 fourcc); |
| 178 | 178 |
| 179 #ifdef __cplusplus | 179 #ifdef __cplusplus |
| 180 } // extern "C" | 180 } // extern "C" |
| 181 } // namespace libyuv | 181 } // namespace libyuv |
| 182 #endif | 182 #endif |
| 183 | 183 |
| 184 #endif // INCLUDE_LIBYUV_VIDEO_COMMON_H_ | 184 #endif // INCLUDE_LIBYUV_VIDEO_COMMON_H_ |
| OLD | NEW |