Chromium Code Reviews| Index: media/base/simd/yuv_row.h |
| =================================================================== |
| --- media/base/simd/yuv_row.h (revision 0) |
| +++ media/base/simd/yuv_row.h (revision 0) |
| @@ -0,0 +1,47 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
Alpha Left Google
2011/08/22 14:16:59
Rename this file to media/base/yuv_row_internal.h
|
| +// 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 { |
|
Alpha Left Google
2011/08/22 14:16:59
These function names are obscure enough that you d
|
| +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* argb, |
|
Alpha Left Google
2011/08/22 14:16:59
_SSE2 suffix.
|
| + uint8* y, |
| + uint8* u, |
| + uint8* v, |
| + int width); |
| + |
| +// Convert a row of 32-bit ARGB pixels to YV12 pixels. |
| +void ConvertARGBtoYUVRow(const uint8* argb, |
|
Alpha Left Google
2011/08/22 14:16:59
_SSE2 suffix.
|
| + uint8* y, |
| + uint8* u, |
| + uint8* v, |
| + int width); |
| + |
| +// Convert a row of YV12 pixels to 24-bit RGB pixels. |
| +void ConvertYUVtoRGBRow(const uint8* y, |
|
Alpha Left Google
2011/08/22 14:16:59
_SSE2 suffix.
|
| + const uint8* u, |
| + const uint8* v, |
| + uint8* argb, |
| + int width); |
| + |
| +// Convert a row of YV12 pixels to 32-bit ARGB pixels. (This function sets the |
| +// alpha values to 255.) |
| +void ConvertYUVtoARGBRow(const uint8* y, |
|
Alpha Left Google
2011/08/22 14:16:59
_SSE2 suffix.
|
| + const uint8* u, |
| + const uint8* v, |
| + uint8* argb, |
| + int width); |
| + |
| +} // namespace simd |
| +} // namespace media |
| + |
| +#endif // MEDIA_BASE_SIMD_CONVERT_ROW_H_ |
| Property changes on: media\base\simd\yuv_row.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |