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

Unified Diff: media/base/video_frame_provider.h

Issue 2643733002: Allow to use {FFmpeg/Vpx}VideoDecoder from a UtilityProcess (Closed)
Patch Set: Rebase Created 3 years, 10 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 | « media/base/video_frame_pool.cc ('k') | media/base/video_frame_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame_provider.h
diff --git a/media/base/video_frame_provider.h b/media/base/video_frame_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ad747a971c82455ff924356b779a7f3deeab2dd
--- /dev/null
+++ b/media/base/video_frame_provider.h
@@ -0,0 +1,35 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_VIDEO_FRAME_PROVIDER_H_
+#define MEDIA_BASE_VIDEO_FRAME_PROVIDER_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "media/base/media_export.h"
+#include "media/base/video_frame.h"
+
+namespace media {
+
+class MEDIA_EXPORT VideoFrameProvider {
+ public:
+ VideoFrameProvider();
+ virtual ~VideoFrameProvider();
+ virtual scoped_refptr<VideoFrame> CreateZeroInitializedFrame(
+ VideoPixelFormat format,
+ const gfx::Size& coded_size,
+ const gfx::Rect& visible_rect,
+ const gfx::Size& natural_size,
+ base::TimeDelta timestamp) = 0;
+
+ virtual scoped_refptr<VideoFrame> WrapVideoFrame(
+ const scoped_refptr<VideoFrame>& frame) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(VideoFrameProvider);
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_VIDEO_FRAME_PROVIDER_H_
« no previous file with comments | « media/base/video_frame_pool.cc ('k') | media/base/video_frame_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698