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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_VIDEO_FRAME_PROVIDER_H_
6 #define MEDIA_BASE_VIDEO_FRAME_PROVIDER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "media/base/media_export.h"
11 #include "media/base/video_frame.h"
12
13 namespace media {
14
15 class MEDIA_EXPORT VideoFrameProvider {
16 public:
17 VideoFrameProvider();
18 virtual ~VideoFrameProvider();
19 virtual scoped_refptr<VideoFrame> CreateZeroInitializedFrame(
20 VideoPixelFormat format,
21 const gfx::Size& coded_size,
22 const gfx::Rect& visible_rect,
23 const gfx::Size& natural_size,
24 base::TimeDelta timestamp) = 0;
25
26 virtual scoped_refptr<VideoFrame> WrapVideoFrame(
27 const scoped_refptr<VideoFrame>& frame) = 0;
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(VideoFrameProvider);
31 };
32
33 } // namespace media
34
35 #endif // MEDIA_BASE_VIDEO_FRAME_PROVIDER_H_
OLDNEW
« 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