| OLD | NEW |
| (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_ |
| OLD | NEW |