OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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_CAST_SENDER_VIDEO_FRAME_FACTORY_POOL_IMPL_H_ | |
6 #define MEDIA_CAST_SENDER_VIDEO_FRAME_FACTORY_POOL_IMPL_H_ | |
7 | |
8 #include "media/base/video_frame_pool.h" | |
9 #include "media/cast/cast_config.h" | |
10 #include "media/cast/sender/video_frame_factory.h" | |
11 | |
12 namespace media { | |
13 | |
14 class VideoFrame; | |
15 | |
16 namespace cast { | |
17 | |
18 // Implementation of the VideoFrameFactory interface using |VideoFramePool|. | |
Alpha Left Google
2014/11/17 20:23:14
I see no user of this class other than unit test.
jfroy
2014/11/17 21:23:06
I wanted this code path to always be usable, so I
Alpha Left Google
2014/11/18 02:57:58
On OSX we have no plan to support H264. Even if ha
jfroy
2014/11/18 18:03:59
Using hardware encoding where available seems like
| |
19 class VideoFrameFactoryPoolImpl : public VideoFrameFactory { | |
20 public: | |
21 explicit VideoFrameFactoryPoolImpl(const VideoSenderConfig& video_config); | |
22 | |
23 // VideoFrameFactory | |
24 scoped_refptr<VideoFrame> CreateFrame(base::TimeDelta timestamp) override; | |
25 | |
26 protected: | |
27 ~VideoFrameFactoryPoolImpl() override {} | |
28 | |
29 private: | |
30 friend class base::RefCountedThreadSafe<VideoFrameFactoryPoolImpl>; | |
31 | |
32 VideoFramePool pool_; | |
Alpha Left Google
2014/11/17 20:23:14
There's really not need for a software based Video
jfroy
2014/11/17 21:23:06
I think I answer that in my comment above.
| |
33 int width_; | |
34 int height_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(VideoFrameFactoryPoolImpl); | |
37 }; | |
38 | |
39 } // namespace cast | |
40 } // namespace media | |
41 | |
42 #endif // MEDIA_CAST_SENDER_VIDEO_FRAME_FACTORY_POOL_IMPL_H_ | |
OLD | NEW |