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

Side by Side Diff: content/renderer/media_recorder/video_track_recorder.h

Issue 2846403002: Revert of MediaRecorder: enable encode acceleration for VP8 in Android (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | content/renderer/media_recorder/video_track_recorder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
39 const int kVEAEncoderMinResolutionWidth = 640; 35 const int kVEAEncoderMinResolutionWidth = 640;
40 const int kVEAEncoderMinResolutionHeight = 480; 36 const int kVEAEncoderMinResolutionHeight = 480;
41 #endif
42 } // namespace video_track_recorder 37 } // namespace video_track_recorder
43 38
44 namespace content { 39 namespace content {
45 40
46 // VideoTrackRecorder is a MediaStreamVideoSink that encodes the video frames 41 // VideoTrackRecorder is a MediaStreamVideoSink that encodes the video frames
47 // received from a Stream Video Track. This class is constructed and used on a 42 // received from a Stream Video Track. This class is constructed and used on a
48 // single thread, namely the main Render thread. This mirrors the other 43 // single thread, namely the main Render thread. This mirrors the other
49 // MediaStreamVideo* classes that are constructed/configured on Main Render 44 // MediaStreamVideo* classes that are constructed/configured on Main Render
50 // thread but that pass frames on Render IO thread. It has an internal Encoder 45 // thread but that pass frames on Render IO thread. It has an internal Encoder
51 // with its own threading subtleties, see the implementation file. 46 // with its own threading subtleties, see the implementation file.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Used to track the paused state during the initialization process. 189 // Used to track the paused state during the initialization process.
195 bool paused_before_init_; 190 bool paused_before_init_;
196 191
197 base::WeakPtrFactory<VideoTrackRecorder> weak_ptr_factory_; 192 base::WeakPtrFactory<VideoTrackRecorder> weak_ptr_factory_;
198 193
199 DISALLOW_COPY_AND_ASSIGN(VideoTrackRecorder); 194 DISALLOW_COPY_AND_ASSIGN(VideoTrackRecorder);
200 }; 195 };
201 196
202 } // namespace content 197 } // namespace content
203 #endif // CONTENT_RENDERER_MEDIA_RECORDER_VIDEO_TRACK_RECORDER_H_ 198 #endif // CONTENT_RENDERER_MEDIA_RECORDER_VIDEO_TRACK_RECORDER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media_recorder/video_track_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698