| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // An article on optimizing YUV conversion using tables instead of multiplies | 9 // An article on optimizing YUV conversion using tables instead of multiplies |
| 10 // http://lestourtereaux.free.fr/papers/data/yuvrgb.pdf | 10 // http://lestourtereaux.free.fr/papers/data/yuvrgb.pdf |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 convert_proc = &ConvertRGB32ToYUV_SSE2; | 367 convert_proc = &ConvertRGB32ToYUV_SSE2; |
| 368 else | 368 else |
| 369 convert_proc = &ConvertRGB32ToYUV_C; | 369 convert_proc = &ConvertRGB32ToYUV_C; |
| 370 #endif | 370 #endif |
| 371 } | 371 } |
| 372 | 372 |
| 373 convert_proc(rgbframe, yplane, uplane, vplane, width, height, | 373 convert_proc(rgbframe, yplane, uplane, vplane, width, height, |
| 374 rgbstride, ystride, uvstride); | 374 rgbstride, ystride, uvstride); |
| 375 } | 375 } |
| 376 | 376 |
| 377 void ConvertRGB24ToYUV(const uint8* rgbframe, |
| 378 uint8* yplane, |
| 379 uint8* uplane, |
| 380 uint8* vplane, |
| 381 int width, |
| 382 int height, |
| 383 int rgbstride, |
| 384 int ystride, |
| 385 int uvstride) { |
| 386 ConvertRGB24ToYUV_C(rgbframe, yplane, uplane, vplane, width, height, |
| 387 rgbstride, ystride, uvstride); |
| 388 } |
| 389 |
| 390 void ConvertYUY2ToYUV(const uint8* src, |
| 391 uint8* yplane, |
| 392 uint8* uplane, |
| 393 uint8* vplane, |
| 394 int width, |
| 395 int height) { |
| 396 ConvertYUY2ToYUV_C(src, yplane, uplane, vplane, width, height); |
| 397 } |
| 377 } // namespace media | 398 } // namespace media |
| OLD | NEW |