OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_VIDEO_E NCODER_H_ | 5 #ifndef EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_VIDEO_E NCODER_H_ |
6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_VIDEO_E NCODER_H_ | 6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_VIDEO_E NCODER_H_ |
7 | 7 |
8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_media _encoder.h" | 9 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_media _encoder.h" |
10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 // as an |encoded_callback|'s argument which is set via 'SetCallbacks' | 58 // as an |encoded_callback|'s argument which is set via 'SetCallbacks' |
59 // method. | 59 // method. |
60 void InsertRawVideoFrame(const scoped_refptr<media::VideoFrame>& video_frame, | 60 void InsertRawVideoFrame(const scoped_refptr<media::VideoFrame>& video_frame, |
61 base::TimeTicks reference_time); | 61 base::TimeTicks reference_time); |
62 | 62 |
63 // Requests the next encoded frame to be an instantaneous decoding refresh | 63 // Requests the next encoded frame to be an instantaneous decoding refresh |
64 // (IDR) picture. | 64 // (IDR) picture. |
65 void RequestIDRPicture(); | 65 void RequestIDRPicture(); |
66 | 66 |
67 protected: | 67 protected: |
68 static void CreateVEA(const InitParameters& params, | |
asargent_no_longer_on_chrome
2016/04/26 19:12:08
nit: it might be helpful to have a comment here (o
e_hakkinen
2016/04/27 07:39:04
Done.
| |
69 const VideoEncoderCallback& encoder_callback); | |
70 | |
68 explicit WiFiDisplayVideoEncoder( | 71 explicit WiFiDisplayVideoEncoder( |
69 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner); | 72 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner); |
70 ~WiFiDisplayVideoEncoder() override; | 73 ~WiFiDisplayVideoEncoder() override; |
71 | 74 |
72 virtual void InsertFrameOnMediaThread( | 75 virtual void InsertFrameOnMediaThread( |
73 scoped_refptr<media::VideoFrame> video_frame, | 76 scoped_refptr<media::VideoFrame> video_frame, |
74 base::TimeTicks reference_time, | 77 base::TimeTicks reference_time, |
75 bool send_idr) = 0; | 78 bool send_idr) = 0; |
76 | 79 |
77 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; | 80 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; |
78 bool send_idr_; | 81 bool send_idr_; |
79 }; | 82 }; |
80 | 83 |
81 } // namespace extensions | 84 } // namespace extensions |
82 | 85 |
83 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_VIDE O_ENCODER_H_ | 86 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_VIDE O_ENCODER_H_ |
OLD | NEW |