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 #include "media/base/simd/convert_rgb_to_yuv.h" | 5 #include "media/base/simd/convert_rgb_to_yuv.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "media/base/cpu_features.h" | |
9 #include "media/base/simd/convert_rgb_to_yuv_ssse3.h" | 8 #include "media/base/simd/convert_rgb_to_yuv_ssse3.h" |
10 | 9 |
11 namespace media { | 10 namespace media { |
12 | 11 |
13 void ConvertRGB32ToYUV_SSSE3(const uint8* rgbframe, | 12 void ConvertRGB32ToYUV_SSSE3(const uint8* rgbframe, |
14 uint8* yplane, | 13 uint8* yplane, |
15 uint8* uplane, | 14 uint8* uplane, |
16 uint8* vplane, | 15 uint8* vplane, |
17 int width, | 16 int width, |
18 int height, | 17 int height, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 uplane += uvstride; | 91 uplane += uvstride; |
93 vplane += uvstride; | 92 vplane += uvstride; |
94 } | 93 } |
95 | 94 |
96 if (height) | 95 if (height) |
97 ConvertRGBToYUVRow_SSSE3(rgbframe, yplane, uplane, vplane, width); | 96 ConvertRGBToYUVRow_SSSE3(rgbframe, yplane, uplane, vplane, width); |
98 #endif | 97 #endif |
99 } | 98 } |
100 | 99 |
101 } // namespace media | 100 } // namespace media |
OLD | NEW |