| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * libjingle | 2  * libjingle | 
| 3  * Copyright 2014 Google Inc. | 3  * Copyright 2014 Google Inc. | 
| 4  * | 4  * | 
| 5  * Redistribution and use in source and binary forms, with or without | 5  * Redistribution and use in source and binary forms, with or without | 
| 6  * modification, are permitted provided that the following conditions are met: | 6  * modification, are permitted provided that the following conditions are met: | 
| 7  * | 7  * | 
| 8  *  1. Redistributions of source code must retain the above copyright notice, | 8  *  1. Redistributions of source code must retain the above copyright notice, | 
| 9  *     this list of conditions and the following disclaimer. | 9  *     this list of conditions and the following disclaimer. | 
| 10  *  2. Redistributions in binary form must reproduce the above copyright notice, | 10  *  2. Redistributions in binary form must reproduce the above copyright notice, | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67 | 67 | 
| 68 // TODO(pthatcher): Write unit tests just for these functions, | 68 // TODO(pthatcher): Write unit tests just for these functions, | 
| 69 // independent of WebrtcVideoEngine. | 69 // independent of WebrtcVideoEngine. | 
| 70 | 70 | 
| 71 // Get the simulcast bitrate mode to use based on | 71 // Get the simulcast bitrate mode to use based on | 
| 72 // options.video_highest_bitrate. | 72 // options.video_highest_bitrate. | 
| 73 SimulcastBitrateMode GetSimulcastBitrateMode( | 73 SimulcastBitrateMode GetSimulcastBitrateMode( | 
| 74     const VideoOptions& options); | 74     const VideoOptions& options); | 
| 75 | 75 | 
| 76 // Get the ssrcs of the SIM group from the stream params. | 76 // Get the ssrcs of the SIM group from the stream params. | 
| 77 void GetSimulcastSsrcs(const StreamParams& sp, std::vector<uint32>* ssrcs); | 77 void GetSimulcastSsrcs(const StreamParams& sp, std::vector<uint32_t>* ssrcs); | 
| 78 | 78 | 
| 79 // Get simulcast settings. | 79 // Get simulcast settings. | 
| 80 std::vector<webrtc::VideoStream> GetSimulcastConfig( | 80 std::vector<webrtc::VideoStream> GetSimulcastConfig( | 
| 81     size_t max_streams, | 81     size_t max_streams, | 
| 82     SimulcastBitrateMode bitrate_mode, | 82     SimulcastBitrateMode bitrate_mode, | 
| 83     int width, | 83     int width, | 
| 84     int height, | 84     int height, | 
| 85     int max_bitrate_bps, | 85     int max_bitrate_bps, | 
| 86     int max_qp, | 86     int max_qp, | 
| 87     int max_framerate); | 87     int max_framerate); | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
| 116 void LogSimulcastSubstreams(const webrtc::VideoCodec& codec); | 116 void LogSimulcastSubstreams(const webrtc::VideoCodec& codec); | 
| 117 | 117 | 
| 118 // Configure the codec's bitrate and temporal layers so that it's good | 118 // Configure the codec's bitrate and temporal layers so that it's good | 
| 119 // for a screencast in conference mode. Technically, this shouldn't | 119 // for a screencast in conference mode. Technically, this shouldn't | 
| 120 // go in simulcast.cc. But it's closely related. | 120 // go in simulcast.cc. But it's closely related. | 
| 121 void ConfigureConferenceModeScreencastCodec(webrtc::VideoCodec* codec); | 121 void ConfigureConferenceModeScreencastCodec(webrtc::VideoCodec* codec); | 
| 122 | 122 | 
| 123 }  // namespace cricket | 123 }  // namespace cricket | 
| 124 | 124 | 
| 125 #endif  // TALK_MEDIA_WEBRTC_SIMULCAST_H_ | 125 #endif  // TALK_MEDIA_WEBRTC_SIMULCAST_H_ | 
| OLD | NEW | 
|---|