| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 g_filter_yuv_rows_proc_ = FilterYUVRows_C; | 237 g_filter_yuv_rows_proc_ = FilterYUVRows_C; |
| 238 g_convert_yuv_to_rgb32_row_proc_ = ConvertYUVToRGB32Row_C; | 238 g_convert_yuv_to_rgb32_row_proc_ = ConvertYUVToRGB32Row_C; |
| 239 g_scale_yuv_to_rgb32_row_proc_ = ScaleYUVToRGB32Row_C; | 239 g_scale_yuv_to_rgb32_row_proc_ = ScaleYUVToRGB32Row_C; |
| 240 g_linear_scale_yuv_to_rgb32_row_proc_ = LinearScaleYUVToRGB32Row_C; | 240 g_linear_scale_yuv_to_rgb32_row_proc_ = LinearScaleYUVToRGB32Row_C; |
| 241 g_convert_rgb32_to_yuv_proc_ = ConvertRGB32ToYUV_C; | 241 g_convert_rgb32_to_yuv_proc_ = ConvertRGB32ToYUV_C; |
| 242 g_convert_rgb24_to_yuv_proc_ = ConvertRGB24ToYUV_C; | 242 g_convert_rgb24_to_yuv_proc_ = ConvertRGB24ToYUV_C; |
| 243 g_convert_yuv_to_rgb32_proc_ = ConvertYUVToRGB32_C; | 243 g_convert_yuv_to_rgb32_proc_ = ConvertYUVToRGB32_C; |
| 244 g_convert_yuva_to_argb_proc_ = ConvertYUVAToARGB_C; | 244 g_convert_yuva_to_argb_proc_ = ConvertYUVAToARGB_C; |
| 245 g_empty_register_state_proc_ = EmptyRegisterStateStub; | 245 g_empty_register_state_proc_ = EmptyRegisterStateStub; |
| 246 | 246 |
| 247 // Assembly code confuses MemorySanitizer. | 247 // Assembly code confuses MemorySanitizer. Also not available in iOS builds. |
| 248 #if defined(ARCH_CPU_X86_FAMILY) && !defined(MEMORY_SANITIZER) | 248 #if defined(ARCH_CPU_X86_FAMILY) && !defined(MEMORY_SANITIZER) && \ |
| 249 !defined(OS_IOS) |
| 249 g_convert_yuva_to_argb_proc_ = ConvertYUVAToARGB_MMX; | 250 g_convert_yuva_to_argb_proc_ = ConvertYUVAToARGB_MMX; |
| 250 | 251 |
| 251 #if defined(MEDIA_MMX_INTRINSICS_AVAILABLE) | 252 #if defined(MEDIA_MMX_INTRINSICS_AVAILABLE) |
| 252 g_empty_register_state_proc_ = EmptyRegisterStateIntrinsic; | 253 g_empty_register_state_proc_ = EmptyRegisterStateIntrinsic; |
| 253 #else | 254 #else |
| 254 g_empty_register_state_proc_ = EmptyRegisterState_MMX; | 255 g_empty_register_state_proc_ = EmptyRegisterState_MMX; |
| 255 #endif | 256 #endif |
| 256 | 257 |
| 257 g_convert_yuv_to_rgb32_row_proc_ = ConvertYUVToRGB32Row_SSE; | 258 g_convert_yuv_to_rgb32_row_proc_ = ConvertYUVToRGB32Row_SSE; |
| 258 g_convert_yuv_to_rgb32_proc_ = ConvertYUVToRGB32_SSE; | 259 g_convert_yuv_to_rgb32_proc_ = ConvertYUVToRGB32_SSE; |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 width, | 778 width, |
| 778 height, | 779 height, |
| 779 ystride, | 780 ystride, |
| 780 uvstride, | 781 uvstride, |
| 781 astride, | 782 astride, |
| 782 rgbstride, | 783 rgbstride, |
| 783 yuv_type); | 784 yuv_type); |
| 784 } | 785 } |
| 785 | 786 |
| 786 } // namespace media | 787 } // namespace media |
| OLD | NEW |