| Index: media/base/simd/yuv_to_rgb_table.h
|
| diff --git a/media/base/simd/yuv_to_rgb_table.h b/media/base/simd/yuv_to_rgb_table.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0c43a7a1ae8127f7bd902284186eaa100e7be869
|
| --- /dev/null
|
| +++ b/media/base/simd/yuv_to_rgb_table.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Defines convertion table from YUV to RGB.
|
| +
|
| +#ifndef MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
|
| +#define MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "build/build_config.h"
|
| +
|
| +extern "C" {
|
| +
|
| +#if defined(COMPILER_MSVC)
|
| +#define SIMD_ALIGNED(var) __declspec(align(16)) var
|
| +#else
|
| +#define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
|
| +#endif
|
| +
|
| +// Align the table to 16-bytes to allow faster reading.
|
| +extern SIMD_ALIGNED(int16 kCoefficientsRgbY[768][4]);
|
| +
|
| +} // extern "C"
|
| +
|
| +#endif // MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
|
|
|