| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_BASE_YUV_CONVERT_H_ | 5 #ifndef MEDIA_BASE_YUV_CONVERT_H_ |
| 6 #define MEDIA_BASE_YUV_CONVERT_H_ | 6 #define MEDIA_BASE_YUV_CONVERT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 int source_height, | 60 int source_height, |
| 61 int width, | 61 int width, |
| 62 int height, | 62 int height, |
| 63 int ystride, | 63 int ystride, |
| 64 int uvstride, | 64 int uvstride, |
| 65 int rgbstride, | 65 int rgbstride, |
| 66 YUVType yuv_type, | 66 YUVType yuv_type, |
| 67 Rotate view_rotate, | 67 Rotate view_rotate, |
| 68 ScaleFilter filter); | 68 ScaleFilter filter); |
| 69 | 69 |
| 70 // Biliner Scale a frame of YV12 to 32 bits ARGB on a specified rectangle. |
| 71 // |yplane|, etc and |rgbframe| should point to the top-left pixels of the |
| 72 // source and destination buffers. |
| 73 void ScaleYUVToRGB32WithRect(const uint8* yplane, |
| 74 const uint8* uplane, |
| 75 const uint8* vplane, |
| 76 uint8* rgbframe, |
| 77 int source_width, |
| 78 int source_height, |
| 79 int dest_width, |
| 80 int dest_height, |
| 81 int dest_rect_left, |
| 82 int dest_rect_top, |
| 83 int dest_rect_right, |
| 84 int dest_rect_bottom, |
| 85 int ystride, |
| 86 int uvstride, |
| 87 int rgbstride); |
| 88 |
| 70 void ConvertRGB32ToYUV(const uint8* rgbframe, | 89 void ConvertRGB32ToYUV(const uint8* rgbframe, |
| 71 uint8* yplane, | 90 uint8* yplane, |
| 72 uint8* uplane, | 91 uint8* uplane, |
| 73 uint8* vplane, | 92 uint8* vplane, |
| 74 int width, | 93 int width, |
| 75 int height, | 94 int height, |
| 76 int rgbstride, | 95 int rgbstride, |
| 77 int ystride, | 96 int ystride, |
| 78 int uvstride); | 97 int uvstride); |
| 79 | 98 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 94 int width, | 113 int width, |
| 95 int height); | 114 int height); |
| 96 | 115 |
| 97 // Empty SIMD register state after calling optimized scaler functions. | 116 // Empty SIMD register state after calling optimized scaler functions. |
| 98 // This method is only used in unit test after calling SIMD functions. | 117 // This method is only used in unit test after calling SIMD functions. |
| 99 void EmptyRegisterState(); | 118 void EmptyRegisterState(); |
| 100 | 119 |
| 101 } // namespace media | 120 } // namespace media |
| 102 | 121 |
| 103 #endif // MEDIA_BASE_YUV_CONVERT_H_ | 122 #endif // MEDIA_BASE_YUV_CONVERT_H_ |
| OLD | NEW |