| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Set a WebRtcVideoDecoderFactory for external decoding. Video engine does | 122 // Set a WebRtcVideoDecoderFactory for external decoding. Video engine does |
| 123 // not take the ownership of |decoder_factory|. The caller needs to make sure | 123 // not take the ownership of |decoder_factory|. The caller needs to make sure |
| 124 // that |decoder_factory| outlives the video engine. | 124 // that |decoder_factory| outlives the video engine. |
| 125 void SetExternalDecoderFactory(WebRtcVideoDecoderFactory* decoder_factory); | 125 void SetExternalDecoderFactory(WebRtcVideoDecoderFactory* decoder_factory); |
| 126 // Set a WebRtcVideoEncoderFactory for external encoding. Video engine does | 126 // Set a WebRtcVideoEncoderFactory for external encoding. Video engine does |
| 127 // not take the ownership of |encoder_factory|. The caller needs to make sure | 127 // not take the ownership of |encoder_factory|. The caller needs to make sure |
| 128 // that |encoder_factory| outlives the video engine. | 128 // that |encoder_factory| outlives the video engine. |
| 129 virtual void SetExternalEncoderFactory( | 129 virtual void SetExternalEncoderFactory( |
| 130 WebRtcVideoEncoderFactory* encoder_factory); | 130 WebRtcVideoEncoderFactory* encoder_factory); |
| 131 | 131 |
| 132 bool FindCodec(const VideoCodec& in); | |
| 133 // Check whether the supplied trace should be ignored. | |
| 134 bool ShouldIgnoreTrace(const std::string& trace); | |
| 135 | |
| 136 private: | 132 private: |
| 137 std::vector<VideoCodec> GetSupportedCodecs() const; | 133 std::vector<VideoCodec> GetSupportedCodecs() const; |
| 138 | 134 |
| 139 std::vector<VideoCodec> video_codecs_; | 135 std::vector<VideoCodec> video_codecs_; |
| 140 | 136 |
| 141 bool initialized_; | 137 bool initialized_; |
| 142 | 138 |
| 143 WebRtcVideoDecoderFactory* external_decoder_factory_; | 139 WebRtcVideoDecoderFactory* external_decoder_factory_; |
| 144 WebRtcVideoEncoderFactory* external_encoder_factory_; | 140 WebRtcVideoEncoderFactory* external_encoder_factory_; |
| 145 rtc::scoped_ptr<WebRtcVideoEncoderFactory> simulcast_encoder_factory_; | 141 rtc::scoped_ptr<WebRtcVideoEncoderFactory> simulcast_encoder_factory_; |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 VideoOptions options_; | 520 VideoOptions options_; |
| 525 // TODO(deadbeef): Don't duplicate information between | 521 // TODO(deadbeef): Don't duplicate information between |
| 526 // send_params/recv_params, rtp_extensions, options, etc. | 522 // send_params/recv_params, rtp_extensions, options, etc. |
| 527 VideoSendParameters send_params_; | 523 VideoSendParameters send_params_; |
| 528 VideoRecvParameters recv_params_; | 524 VideoRecvParameters recv_params_; |
| 529 }; | 525 }; |
| 530 | 526 |
| 531 } // namespace cricket | 527 } // namespace cricket |
| 532 | 528 |
| 533 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ | 529 #endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEOENGINE2_H_ |
| OLD | NEW |