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

Side by Side Diff: media/cast/video_sender/video_sender.h

Issue 286203004: Cast: Log target encode bitrate before a frame is encoded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | media/cast/video_sender/video_sender.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ 5 #ifndef MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_
6 #define MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ 6 #define MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void ScheduleNextSkippedFramesCheck(); 89 void ScheduleNextSkippedFramesCheck();
90 void SkippedFramesCheck(); 90 void SkippedFramesCheck();
91 91
92 void SendEncodedVideoFrame(const transport::EncodedVideoFrame* video_frame, 92 void SendEncodedVideoFrame(const transport::EncodedVideoFrame* video_frame,
93 const base::TimeTicks& capture_time); 93 const base::TimeTicks& capture_time);
94 void ResendFrame(uint32 resend_frame_id); 94 void ResendFrame(uint32 resend_frame_id);
95 void ReceivedAck(uint32 acked_frame_id); 95 void ReceivedAck(uint32 acked_frame_id);
96 void UpdateFramesInFlight(); 96 void UpdateFramesInFlight();
97 97
98 void SendEncodedVideoFrameMainThread( 98 void SendEncodedVideoFrameMainThread(
99 int requested_bitrate_before_encode,
99 scoped_ptr<transport::EncodedVideoFrame> encoded_frame, 100 scoped_ptr<transport::EncodedVideoFrame> encoded_frame,
100 const base::TimeTicks& capture_time); 101 const base::TimeTicks& capture_time);
101 102
102 void InitializeTimers(); 103 void InitializeTimers();
103 104
104 void UpdateBitrate(int32 new_bitrate); 105 void UpdateBitrate(int32 new_bitrate);
105 106
106 base::TimeDelta rtp_max_delay_; 107 base::TimeDelta rtp_max_delay_;
107 const int max_frame_rate_; 108 const int max_frame_rate_;
108 109
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // NOTE: Weak pointers must be invalidated before all other member variables. 144 // NOTE: Weak pointers must be invalidated before all other member variables.
144 base::WeakPtrFactory<VideoSender> weak_factory_; 145 base::WeakPtrFactory<VideoSender> weak_factory_;
145 146
146 DISALLOW_COPY_AND_ASSIGN(VideoSender); 147 DISALLOW_COPY_AND_ASSIGN(VideoSender);
147 }; 148 };
148 149
149 } // namespace cast 150 } // namespace cast
150 } // namespace media 151 } // namespace media
151 152
152 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ 153 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698