Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: media/filters/skcanvas_video_renderer.h

Issue 864113002: Pepper: PPB_VideoDecoder software fallback should support all YUV formats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/filters/skcanvas_video_renderer.h
diff --git a/media/filters/skcanvas_video_renderer.h b/media/filters/skcanvas_video_renderer.h
index 8aa148af7205e8913d82870e9aa4ab853b1cdd71..bd1a729ea6b045cb48130b25e63e49ccc6506740 100644
--- a/media/filters/skcanvas_video_renderer.h
+++ b/media/filters/skcanvas_video_renderer.h
@@ -46,6 +46,14 @@ class MEDIA_EXPORT SkCanvasVideoRenderer {
// Copy |video_frame| on |canvas|.
void Copy(const scoped_refptr<VideoFrame>&, SkCanvas* canvas);
+ // Convert the contents of |video_frame| to raw RGB pixels. |rgb_pixels|
+ // should point into a buffer large enough to hold as many 32 bit RGBA pixels
+ // as are in the visible_rect() area of the frame.
+ static void ConvertVideoFrameToRGBPixels(
+ const scoped_refptr<media::VideoFrame>& video_frame,
+ void* rgb_pixels,
+ size_t row_bytes);
+
// Copy the contents of texture of |video_frame| to texture |texture|.
// |level|, |internal_format|, |type| specify target texture |texture|.
// The format of |video_frame| must be VideoFrame::NATIVE_TEXTURE.

Powered by Google App Engine
This is Rietveld 408576698