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

Unified Diff: media/base/video_frame.h

Issue 2096813002: media/vpx: Add support for VP9 alpha channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test files for real Created 4 years, 6 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 fd5728ca6266062c4f1c1f6fcd4ea0a68faee2e4..09d1ca51b9d0991a985cc8fdd1efa655cabc4dc8 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -194,6 +194,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