| OLD | NEW |
| (Empty) | |
| 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 |
| 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 { |
| 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* rgba, |
| 17 uint8* y, |
| 18 uint8* u, |
| 19 uint8* v, |
| 20 int width); |
| 21 |
| 22 // Convert a row of 32-bit RGB pixels to YV12 pixels. |
| 23 void ConvertRGBAtoYUVRow(const uint8* rgba, |
| 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, |
| 31 const uint8* u, |
| 32 const uint8* v, |
| 33 uint8* rgba, |
| 34 int width); |
| 35 |
| 36 // Convert a row of YV12 pixels to 32-bit RGB pixels. |
| 37 void ConvertYUVtoRGBARow(const uint8* y, |
| 38 const uint8* u, |
| 39 const uint8* v, |
| 40 uint8* rgba, |
| 41 int width); |
| 42 |
| 43 } // namespace simd |
| 44 } // namespace media |
| 45 |
| 46 #endif // MEDIA_BASE_SIMD_CONVERT_ROW_H_ |
| OLD | NEW |