Chromium Code Reviews| Index: media/base/yuv_convert.h |
| diff --git a/media/base/yuv_convert.h b/media/base/yuv_convert.h |
| index 95b1780e59123d88713801b2b9db06b6da2de474..720fe36b9f8561d12d92851211f01887f5252131 100644 |
| --- a/media/base/yuv_convert.h |
| +++ b/media/base/yuv_convert.h |
| @@ -67,6 +67,25 @@ void ScaleYUVToRGB32(const uint8* yplane, |
| Rotate view_rotate, |
| ScaleFilter filter); |
| +// Biliner Scale a frame of YV12 to 32 bits ARGB on a specified rectangle. |
| +// |yplane|, etc and |rgbframe| should point to the top-left pixels of the |
| +// source and destination buffers. |
| +void ScaleYUVToRGB32WithRect(const uint8* yplane, |
|
scherkus (not reviewing)
2011/12/15 21:52:35
thinking out loud... I wonder if it makes sense to
Wez
2012/01/12 02:29:48
That would be awesome, but:
a) are those stable en
scherkus (not reviewing)
2012/01/12 02:40:32
we have a bit of gfx::Size/Rect usage but no skia
|
| + const uint8* uplane, |
| + const uint8* vplane, |
| + uint8* rgbframe, |
| + int source_width, |
| + int source_height, |
| + int dest_width, |
| + int dest_height, |
| + int dest_rect_left, |
| + int dest_rect_top, |
| + int dest_rect_right, |
| + int dest_rect_bottom, |
| + int ystride, |
| + int uvstride, |
| + int rgbstride); |
| + |
| void ConvertRGB32ToYUV(const uint8* rgbframe, |
| uint8* yplane, |
| uint8* uplane, |