| 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 // This file defines the YUV conversion functions for each specific | |
| 6 // optimization. | |
| 7 | |
| 8 #ifndef MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ | |
| 9 #define MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ | |
| 10 | |
| 11 #include "base/basictypes.h" | |
| 12 | |
| 13 namespace media { | |
| 14 | |
| 15 // SSE2 version of converting RGBA to YV12. | |
| 16 void ConvertRGB32ToYUV_SSE2(const uint8* rgbframe, | |
| 17 uint8* yplane, | |
| 18 uint8* uplane, | |
| 19 uint8* vplane, | |
| 20 int width, | |
| 21 int height, | |
| 22 int rgbstride, | |
| 23 int ystride, | |
| 24 int uvstride); | |
| 25 | |
| 26 // This is a C reference implementation of the above routine. | |
| 27 // This method should only be used in unit test. | |
| 28 void ConvertRGB32ToYUV_SSE2_Reference(const uint8* rgbframe, | |
| 29 uint8* yplane, | |
| 30 uint8* uplane, | |
| 31 uint8* vplane, | |
| 32 int width, | |
| 33 int height, | |
| 34 int rgbstride, | |
| 35 int ystride, | |
| 36 int uvstride); | |
| 37 | |
| 38 // C version of converting RGBA to YV12. | |
| 39 void ConvertRGB32ToYUV_C(const uint8* rgbframe, | |
| 40 uint8* yplane, | |
| 41 uint8* uplane, | |
| 42 uint8* vplane, | |
| 43 int width, | |
| 44 int height, | |
| 45 int rgbstride, | |
| 46 int ystride, | |
| 47 int uvstride); | |
| 48 | |
| 49 // C version of converting RGB24 to YV12. | |
| 50 void ConvertRGB24ToYUV_C(const uint8* rgbframe, | |
| 51 uint8* yplane, | |
| 52 uint8* uplane, | |
| 53 uint8* vplane, | |
| 54 int width, | |
| 55 int height, | |
| 56 int rgbstride, | |
| 57 int ystride, | |
| 58 int uvstride); | |
| 59 | |
| 60 // C version of converting YUY2 to YV12. | |
| 61 void ConvertYUY2ToYUV_C(const uint8* src, | |
| 62 uint8* yplane, | |
| 63 uint8* uplane, | |
| 64 uint8* vplane, | |
| 65 int width, | |
| 66 int height); | |
| 67 | |
| 68 } // namespace media | |
| 69 | |
| 70 #endif // MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ | |
| OLD | NEW |