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

Unified Diff: media/base/video_frame.h

Issue 1561703002: media/vpx: Add support for VP9 alpha channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index edd9dd5559b5c0bb0ceed9f414cd1a5b6ec6bc1c..c9052f9d2e219e33690d37fecce8cf0091bd710d 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -205,6 +205,23 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
const gfx::GpuMemoryBufferHandle& v_handle,
base::TimeDelta timestamp);
+ // Wraps external YUVA data of the given parameters with a VideoFrame.
+ // The returned VideoFrame does not own the data passed in.
+ static scoped_refptr<VideoFrame> WrapExternalYuvaData(
+ VideoPixelFormat format,
+ const gfx::Size& coded_size,
+ const gfx::Rect& visible_rect,
+ const gfx::Size& natural_size,
+ int32_t y_stride,
+ int32_t u_stride,
+ int32_t v_stride,
+ int32_t a_stride,
+ uint8_t* y_data,
+ uint8_t* u_data,
+ uint8_t* v_data,
+ uint8_t* a_data,
+ base::TimeDelta timestamp);
+
#if defined(OS_LINUX)
// Wraps provided dmabufs
// (https://www.kernel.org/doc/Documentation/dma-buf-sharing.txt) with a
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698