Revert of Add correct support for videos with YUVJ420P color format, in the software...
[chromium-blink-merge.git] / media / base / simd / yuv_to_rgb_table.h
blobaebf1b20d19b532ed3bcd9f4d6e5f35928afa637
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
3 // found in the LICENSE file.
5 // Defines convertion table from YUV to RGB.
7 #ifndef MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
8 #define MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
10 #include "base/basictypes.h"
11 #include "build/build_config.h"
13 extern "C" {
15 #if defined(COMPILER_MSVC)
16 #define SIMD_ALIGNED(var) __declspec(align(16)) var
17 #else
18 #define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
19 #endif
21 // Align the table to 16-bytes to allow faster reading.
22 extern SIMD_ALIGNED(const int16 kCoefficientsRgbY[256 * 4][4]);
24 } // extern "C"
26 #endif // MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_