Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: media/base/simd/yuv_to_rgb_table.h

Issue 15151002: Streamline SIMD targets in media.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Win64 hack. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/simd/scale_yuv_to_rgb_sse2_x64.asm ('k') | media/base/simd/yuv_to_rgb_table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Defines convertion table from YUV to RGB. 5 // Defines convertion table from YUV to RGB.
6 6
7 #ifndef MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_ 7 #ifndef MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
8 #define MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_ 8 #define MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 12
13 extern "C" { 13 extern "C" {
14 14
15 #if defined(COMPILER_MSVC) 15 #if defined(COMPILER_MSVC)
16 #define SIMD_ALIGNED(var) __declspec(align(16)) var 16 #define SIMD_ALIGNED(var) __declspec(align(16)) var
17 #else 17 #else
18 #define SIMD_ALIGNED(var) var __attribute__((aligned(16))) 18 #define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
19 #endif 19 #endif
20 20
21 // Align the table to 16-bytes to allow faster reading. 21 // Align the table to 16-bytes to allow faster reading.
22 extern SIMD_ALIGNED(int16 kCoefficientsRgbY[256 * 4][4]); 22 extern SIMD_ALIGNED(const int16 kCoefficientsRgbY[256 * 4][4]);
23 23
24 } // extern "C" 24 } // extern "C"
25 25
26 #endif // MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_ 26 #endif // MEDIA_BASE_SIMD_YUV_TO_RGB_TABLE_H_
OLDNEW
« no previous file with comments | « media/base/simd/scale_yuv_to_rgb_sse2_x64.asm ('k') | media/base/simd/yuv_to_rgb_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698