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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Basic video engine implementation. | 112 // Basic video engine implementation. |
113 void Init(); | 113 void Init(); |
114 | 114 |
115 bool SetDefaultEncoderConfig(const VideoEncoderConfig& config); | 115 bool SetDefaultEncoderConfig(const VideoEncoderConfig& config); |
116 | 116 |
117 WebRtcVideoChannel2* CreateChannel(webrtc::Call* call, | 117 WebRtcVideoChannel2* CreateChannel(webrtc::Call* call, |
118 const VideoOptions& options); | 118 const VideoOptions& options); |
119 | 119 |
120 const std::vector<VideoCodec>& codecs() const; | 120 const std::vector<VideoCodec>& codecs() const; |
121 const std::vector<RtpHeaderExtension>& rtp_header_extensions() const; | 121 const std::vector<RtpHeaderExtension>& rtp_header_extensions() const; |
122 void SetLogging(int min_sev, const char* filter); | |
123 | 122 |
124 // Set a WebRtcVideoDecoderFactory for external decoding. Video engine does | 123 // Set a WebRtcVideoDecoderFactory for external decoding. Video engine does |
125 // not take the ownership of |decoder_factory|. The caller needs to make sure | 124 // not take the ownership of |decoder_factory|. The caller needs to make sure |
126 // that |decoder_factory| outlives the video engine. | 125 // that |decoder_factory| outlives the video engine. |
127 void SetExternalDecoderFactory(WebRtcVideoDecoderFactory* decoder_factory); | 126 void SetExternalDecoderFactory(WebRtcVideoDecoderFactory* decoder_factory); |
128 // Set a WebRtcVideoEncoderFactory for external encoding. Video engine does | 127 // Set a WebRtcVideoEncoderFactory for external encoding. Video engine does |
129 // not take the ownership of |encoder_factory|. The caller needs to make sure | 128 // not take the ownership of |encoder_factory|. The caller needs to make sure |
130 // that |encoder_factory| outlives the video engine. | 129 // that |encoder_factory| outlives the video engine. |
131 virtual void SetExternalEncoderFactory( | 130 virtual void SetExternalEncoderFactory( |
132 WebRtcVideoEncoderFactory* encoder_factory); | 131 WebRtcVideoEncoderFactory* encoder_factory); |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 WebRtcVideoDecoderFactory* const external_decoder_factory_; | 518 WebRtcVideoDecoderFactory* const external_decoder_factory_; |
520 std::vector<VideoCodecSettings> recv_codecs_; | 519 std::vector<VideoCodecSettings> recv_codecs_; |
521 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 520 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
522 webrtc::Call::Config::BitrateConfig bitrate_config_; | 521 webrtc::Call::Config::BitrateConfig bitrate_config_; |
523 VideoOptions options_; | 522 VideoOptions options_; |
524 }; | 523 }; |
525 | 524 |
526 } // namespace cricket | 525 } // namespace cricket |
527 | 526 |
528 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ | 527 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ |
OLD | NEW |