blob: 3ed7bd999ff467b6160c184e7c5ee6ba9a104b82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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[256 * 4][4]);
} // extern "C"
#endif // MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
|