Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_BASE_SIMD_CONVERT_ROW_H_ | |
| 6 #define MEDIA_BASE_SIMD_CONVERT_ROW_H_ | |
| 7 | |
| 8 namespace media { | |
|
Alpha Left Google
2011/08/22 14:16:59
These function names are obscure enough that you d
| |
| 9 namespace simd { | |
| 10 | |
| 11 // The header file for ASM functions that convert a row of pixels with SIMD | |
| 12 // instructions so we can call them from C++ code. These functions are | |
| 13 // implemented in "convert_row.asm". | |
| 14 | |
| 15 // Convert a row of 24-bit RGB pixels to YV12 pixels. | |
| 16 void ConvertRGBtoYUVRow(const uint8* argb, | |
|
Alpha Left Google
2011/08/22 14:16:59
_SSE2 suffix.
| |
| 17 uint8* y, | |
| 18 uint8* u, | |
| 19 uint8* v, | |
| 20 int width); | |
| 21 | |
| 22 // Convert a row of 32-bit ARGB pixels to YV12 pixels. | |
| 23 void ConvertARGBtoYUVRow(const uint8* argb, | |
|
Alpha Left Google
2011/08/22 14:16:59
_SSE2 suffix.
| |
| 24 uint8* y, | |
| 25 uint8* u, | |
| 26 uint8* v, | |
| 27 int width); | |
| 28 | |
| 29 // Convert a row of YV12 pixels to 24-bit RGB pixels. | |
| 30 void ConvertYUVtoRGBRow(const uint8* y, | |
|
Alpha Left Google
2011/08/22 14:16:59
_SSE2 suffix.
| |
| 31 const uint8* u, | |
| 32 const uint8* v, | |
| 33 uint8* argb, | |
| 34 int width); | |
| 35 | |
| 36 // Convert a row of YV12 pixels to 32-bit ARGB pixels. (This function sets the | |
| 37 // alpha values to 255.) | |
| 38 void ConvertYUVtoARGBRow(const uint8* y, | |
|
Alpha Left Google
2011/08/22 14:16:59
_SSE2 suffix.
| |
| 39 const uint8* u, | |
| 40 const uint8* v, | |
| 41 uint8* argb, | |
| 42 int width); | |
| 43 | |
| 44 } // namespace simd | |
| 45 } // namespace media | |
| 46 | |
| 47 #endif // MEDIA_BASE_SIMD_CONVERT_ROW_H_ | |
| OLD | NEW |