OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_RENDERER_MEDIA_RECORDER_VIDEO_TRACK_RECORDER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RECORDER_VIDEO_TRACK_RECORDER_H_ |
6 #define CONTENT_RENDERER_MEDIA_RECORDER_VIDEO_TRACK_RECORDER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RECORDER_VIDEO_TRACK_RECORDER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 namespace cc { | 25 namespace cc { |
26 class PaintCanvas; | 26 class PaintCanvas; |
27 } // namespace cc | 27 } // namespace cc |
28 | 28 |
29 namespace media { | 29 namespace media { |
30 class SkCanvasVideoRenderer; | 30 class SkCanvasVideoRenderer; |
31 class VideoFrame; | 31 class VideoFrame; |
32 } // namespace media | 32 } // namespace media |
33 | 33 |
34 namespace video_track_recorder { | 34 namespace video_track_recorder { |
| 35 #if defined(OS_ANDROID) |
| 36 const int kVEAEncoderMinResolutionWidth = 176; |
| 37 const int kVEAEncoderMinResolutionHeight = 144; |
| 38 #else |
35 const int kVEAEncoderMinResolutionWidth = 640; | 39 const int kVEAEncoderMinResolutionWidth = 640; |
36 const int kVEAEncoderMinResolutionHeight = 480; | 40 const int kVEAEncoderMinResolutionHeight = 480; |
| 41 #endif |
37 } // namespace video_track_recorder | 42 } // namespace video_track_recorder |
38 | 43 |
39 namespace content { | 44 namespace content { |
40 | 45 |
41 // VideoTrackRecorder is a MediaStreamVideoSink that encodes the video frames | 46 // VideoTrackRecorder is a MediaStreamVideoSink that encodes the video frames |
42 // received from a Stream Video Track. This class is constructed and used on a | 47 // received from a Stream Video Track. This class is constructed and used on a |
43 // single thread, namely the main Render thread. This mirrors the other | 48 // single thread, namely the main Render thread. This mirrors the other |
44 // MediaStreamVideo* classes that are constructed/configured on Main Render | 49 // MediaStreamVideo* classes that are constructed/configured on Main Render |
45 // thread but that pass frames on Render IO thread. It has an internal Encoder | 50 // thread but that pass frames on Render IO thread. It has an internal Encoder |
46 // with its own threading subtleties, see the implementation file. | 51 // with its own threading subtleties, see the implementation file. |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Used to track the paused state during the initialization process. | 194 // Used to track the paused state during the initialization process. |
190 bool paused_before_init_; | 195 bool paused_before_init_; |
191 | 196 |
192 base::WeakPtrFactory<VideoTrackRecorder> weak_ptr_factory_; | 197 base::WeakPtrFactory<VideoTrackRecorder> weak_ptr_factory_; |
193 | 198 |
194 DISALLOW_COPY_AND_ASSIGN(VideoTrackRecorder); | 199 DISALLOW_COPY_AND_ASSIGN(VideoTrackRecorder); |
195 }; | 200 }; |
196 | 201 |
197 } // namespace content | 202 } // namespace content |
198 #endif // CONTENT_RENDERER_MEDIA_RECORDER_VIDEO_TRACK_RECORDER_H_ | 203 #endif // CONTENT_RENDERER_MEDIA_RECORDER_VIDEO_TRACK_RECORDER_H_ |
OLD | NEW |