| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/yuv_row.h" | 5 #include "media/base/simd/yuv_to_rgb_table.h" |
| 6 | 6 |
| 7 extern "C" { | 7 extern "C" { |
| 8 | 8 |
| 9 #define RGBY(i) { \ | 9 #define RGBY(i) { \ |
| 10 static_cast<int16>(1.164 * 64 * (i - 16) + 0.5), \ | 10 static_cast<int16>(1.164 * 64 * (i - 16) + 0.5), \ |
| 11 static_cast<int16>(1.164 * 64 * (i - 16) + 0.5), \ | 11 static_cast<int16>(1.164 * 64 * (i - 16) + 0.5), \ |
| 12 static_cast<int16>(1.164 * 64 * (i - 16) + 0.5), \ | 12 static_cast<int16>(1.164 * 64 * (i - 16) + 0.5), \ |
| 13 0 \ | 13 0 \ |
| 14 } | 14 } |
| 15 | 15 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 RGBV(0xF4), RGBV(0xF5), RGBV(0xF6), RGBV(0xF7), | 224 RGBV(0xF4), RGBV(0xF5), RGBV(0xF6), RGBV(0xF7), |
| 225 RGBV(0xF8), RGBV(0xF9), RGBV(0xFA), RGBV(0xFB), | 225 RGBV(0xF8), RGBV(0xF9), RGBV(0xFA), RGBV(0xFB), |
| 226 RGBV(0xFC), RGBV(0xFD), RGBV(0xFE), RGBV(0xFF), | 226 RGBV(0xFC), RGBV(0xFD), RGBV(0xFE), RGBV(0xFF), |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 #undef RGBY | 229 #undef RGBY |
| 230 #undef RGBU | 230 #undef RGBU |
| 231 #undef RGBV | 231 #undef RGBV |
| 232 | 232 |
| 233 } // extern "C" | 233 } // extern "C" |
| OLD | NEW |