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

Unified Diff: media/video/default_video_frame_provider.cc

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/video/default_video_frame_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/default_video_frame_provider.cc
diff --git a/media/video/default_video_frame_provider.cc b/media/video/default_video_frame_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5abc492612d6e9cc7a793bf811918f786985beee
--- /dev/null
+++ b/media/video/default_video_frame_provider.cc
@@ -0,0 +1,29 @@
+// 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.
+
+#include "media/video/default_video_frame_provider.h"
+
+namespace media {
+
+DefaultVideoFrameProvider::DefaultVideoFrameProvider() {}
+
+DefaultVideoFrameProvider::~DefaultVideoFrameProvider() {}
+
+scoped_refptr<VideoFrame> DefaultVideoFrameProvider::CreateZeroInitializedFrame(
+ VideoPixelFormat format,
+ const gfx::Size& coded_size,
+ const gfx::Rect& visible_rect,
+ const gfx::Size& natural_size,
+ base::TimeDelta timestamp) {
+ return VideoFrame::CreateZeroInitializedFrame(
+ format, coded_size, visible_rect, natural_size, timestamp);
+}
+
+scoped_refptr<VideoFrame> DefaultVideoFrameProvider::WrapVideoFrame(
+ const scoped_refptr<VideoFrame>& frame) {
+ return VideoFrame::WrapVideoFrame(
+ frame, frame->format(), frame->visible_rect(), frame->natural_size());
+}
+
+} // namespace media
« no previous file with comments | « media/video/default_video_frame_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698