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

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

Issue 2133903002: RELAND: Merge VideoSenderConfig and AudioSenderConfig. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabled two unittests. Created 4 years, 5 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 | « media/cast/cast_config.cc ('k') | media/cast/cast_sender_impl.h » ('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 // This is the main interface for the cast sender. 5 // This is the main interface for the cast sender.
6 // 6 //
7 // The AudioFrameInput, VideoFrameInput and PacketReciever interfaces should 7 // The AudioFrameInput, VideoFrameInput and PacketReciever interfaces should
8 // be accessed from the main thread. 8 // be accessed from the main thread.
9 9
10 #ifndef MEDIA_CAST_CAST_SENDER_H_ 10 #ifndef MEDIA_CAST_CAST_SENDER_H_
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // All video frames for the session should be inserted to this object. 98 // All video frames for the session should be inserted to this object.
99 virtual scoped_refptr<VideoFrameInput> video_frame_input() = 0; 99 virtual scoped_refptr<VideoFrameInput> video_frame_input() = 0;
100 100
101 // All audio frames for the session should be inserted to this object. 101 // All audio frames for the session should be inserted to this object.
102 virtual scoped_refptr<AudioFrameInput> audio_frame_input() = 0; 102 virtual scoped_refptr<AudioFrameInput> audio_frame_input() = 0;
103 103
104 // Initialize the audio stack. Must be called in order to send audio frames. 104 // Initialize the audio stack. Must be called in order to send audio frames.
105 // |status_change_cb| will be run as operational status changes. 105 // |status_change_cb| will be run as operational status changes.
106 virtual void InitializeAudio( 106 virtual void InitializeAudio(
107 const AudioSenderConfig& audio_config, 107 const FrameSenderConfig& audio_config,
108 const StatusChangeCallback& status_change_cb) = 0; 108 const StatusChangeCallback& status_change_cb) = 0;
109 109
110 // Initialize the video stack. Must be called in order to send video frames. 110 // Initialize the video stack. Must be called in order to send video frames.
111 // |status_change_cb| will be run as operational status changes. 111 // |status_change_cb| will be run as operational status changes.
112 // 112 //
113 // TODO(miu): Remove the VEA-specific callbacks. http://crbug.com/454029 113 // TODO(miu): Remove the VEA-specific callbacks. http://crbug.com/454029
114 virtual void InitializeVideo( 114 virtual void InitializeVideo(
115 const VideoSenderConfig& video_config, 115 const FrameSenderConfig& video_config,
116 const StatusChangeCallback& status_change_cb, 116 const StatusChangeCallback& status_change_cb,
117 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, 117 const CreateVideoEncodeAcceleratorCallback& create_vea_cb,
118 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) = 0; 118 const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) = 0;
119 119
120 // Change the target delay. This is only valid if the receiver 120 // Change the target delay. This is only valid if the receiver
121 // supports the "adaptive_target_delay" rtp extension. 121 // supports the "adaptive_target_delay" rtp extension.
122 virtual void SetTargetPlayoutDelay( 122 virtual void SetTargetPlayoutDelay(
123 base::TimeDelta new_target_playout_delay) = 0; 123 base::TimeDelta new_target_playout_delay) = 0;
124 }; 124 };
125 125
126 } // namespace cast 126 } // namespace cast
127 } // namespace media 127 } // namespace media
128 128
129 #endif // MEDIA_CAST_CAST_SENDER_H_ 129 #endif // MEDIA_CAST_CAST_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/cast_config.cc ('k') | media/cast/cast_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698