OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This webpage shows layout of YV12 and other YUV formats | 5 // This webpage shows layout of YV12 and other YUV formats |
6 // http://www.fourcc.org/yuv.php | 6 // http://www.fourcc.org/yuv.php |
7 // The actual conversion is best described here | 7 // The actual conversion is best described here |
8 // http://en.wikipedia.org/wiki/YUV | 8 // http://en.wikipedia.org/wiki/YUV |
9 // excerpt from wiki: | 9 // excerpt from wiki: |
10 // These formulae are based on the NTSC standard; | 10 // These formulae are based on the NTSC standard; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | (clip(C298b + Cg) << 8) | 179 | (clip(C298b + Cg) << 8) |
180 | (clip(C298b + Cr) << 16) | 180 | (clip(C298b + Cr) << 16) |
181 | 0xff000000; | 181 | 0xff000000; |
182 | 182 |
183 rgbrow += 8; // Advance 2 pixels. | 183 rgbrow += 8; // Advance 2 pixels. |
184 } | 184 } |
185 } | 185 } |
186 } | 186 } |
187 | 187 |
188 } // namespace media | 188 } // namespace media |
189 | |
OLD | NEW |