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

Side by Side Diff: content/renderer/media/media_recorder_handler.h

Issue 1384483005: MediaStream Recorder: Support VP9 encoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sandersd@ comments Created 5 years, 2 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/media_recorder_handler.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_MEDIA_RECORDER_HANDLER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 base::TimeTicks timestamp, 63 base::TimeTicks timestamp,
64 bool is_key_frame); 64 bool is_key_frame);
65 void WriteData(base::StringPiece data); 65 void WriteData(base::StringPiece data);
66 66
67 void OnVideoFrameForTesting(const scoped_refptr<media::VideoFrame>& frame, 67 void OnVideoFrameForTesting(const scoped_refptr<media::VideoFrame>& frame,
68 const base::TimeTicks& timestamp); 68 const base::TimeTicks& timestamp);
69 69
70 // Bound to the main render thread. 70 // Bound to the main render thread.
71 base::ThreadChecker main_render_thread_checker_; 71 base::ThreadChecker main_render_thread_checker_;
72 72
73 // Force using VP9 for video encoding, otherwise VP8 will be used by default.
74 bool use_vp9_;
75
73 bool recording_; 76 bool recording_;
74 blink::WebMediaStream media_stream_; // The MediaStream being recorded. 77 blink::WebMediaStream media_stream_; // The MediaStream being recorded.
75 78
76 // |client_| is a weak pointer, and is valid for the lifetime of this object. 79 // |client_| is a weak pointer, and is valid for the lifetime of this object.
77 blink::WebMediaRecorderHandlerClient* client_; 80 blink::WebMediaRecorderHandlerClient* client_;
78 81
79 ScopedVector<VideoTrackRecorder> video_recorders_; 82 ScopedVector<VideoTrackRecorder> video_recorders_;
80 83
81 // Worker class doing the actual Webm Muxing work. 84 // Worker class doing the actual Webm Muxing work.
82 scoped_ptr<media::WebmMuxer> webm_muxer_; 85 scoped_ptr<media::WebmMuxer> webm_muxer_;
83 86
84 base::WeakPtrFactory<MediaRecorderHandler> weak_factory_; 87 base::WeakPtrFactory<MediaRecorderHandler> weak_factory_;
85 88
86 DISALLOW_COPY_AND_ASSIGN(MediaRecorderHandler); 89 DISALLOW_COPY_AND_ASSIGN(MediaRecorderHandler);
87 }; 90 };
88 91
89 } // namespace content 92 } // namespace content
90 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ 93 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_recorder_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698