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

Unified Diff: media/base/simd/yuv_to_rgb_table.h

Issue 7888012: Reorganize YUV scalers (Continued) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698