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

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

Issue 7003082: Implements RGB to YV12 conversion in YASM. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
« no previous file with comments | « no previous file | media/base/simd/convert_row.asm » ('j') | media/base/simd/convert_row.asm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/simd/convert_row.h
===================================================================
--- media/base/simd/convert_row.h (revision 0)
+++ media/base/simd/convert_row.h (revision 0)
@@ -0,0 +1,46 @@
+// 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.
+
+#ifndef MEDIA_BASE_SIMD_CONVERT_ROW_H_
+#define MEDIA_BASE_SIMD_CONVERT_ROW_H_
+
+namespace media {
+namespace simd {
+
+// The header file for ASM functions that convert a row of pixels with SIMD
+// instructions so we can call them from C++ code. These functions are
+// implemented in "convert_row.asm".
+
+// Convert a row of 24-bit RGB pixels to YV12 pixels.
+void ConvertRGBtoYUVRow(const uint8* rgba,
+ uint8* y,
+ uint8* u,
+ uint8* v,
+ int width);
+
+// Convert a row of 32-bit RGB pixels to YV12 pixels.
+void ConvertRGBAtoYUVRow(const uint8* rgba,
+ uint8* y,
+ uint8* u,
+ uint8* v,
+ int width);
+
+// Convert a row of YV12 pixels to 24-bit RGB pixels.
+void ConvertYUVtoRGBRow(const uint8* y,
+ const uint8* u,
+ const uint8* v,
+ uint8* rgba,
+ int width);
+
+// Convert a row of YV12 pixels to 32-bit RGB pixels.
+void ConvertYUVtoRGBARow(const uint8* y,
+ const uint8* u,
+ const uint8* v,
+ uint8* rgba,
+ int width);
+
+} // namespace simd
+} // namespace media
+
+#endif // MEDIA_BASE_SIMD_CONVERT_ROW_H_
Property changes on: media\base\simd\convert_row.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | media/base/simd/convert_row.asm » ('j') | media/base/simd/convert_row.asm » ('J')

Powered by Google App Engine
This is Rietveld 408576698