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

Side by Side Diff: talk/session/media/channelmanager.cc

Issue 1361633002: Remove the [Un]RegisterVoiceProcessor() API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 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 | « talk/session/media/channelmanager.h ('k') | talk/session/media/channelmanager_unittest.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 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 } 737 }
738 738
739 void ChannelManager::GetSupportedFormats_w( 739 void ChannelManager::GetSupportedFormats_w(
740 VideoCapturer* capturer, 740 VideoCapturer* capturer,
741 std::vector<cricket::VideoFormat>* out_formats) const { 741 std::vector<cricket::VideoFormat>* out_formats) const {
742 const std::vector<VideoFormat>* formats = capturer->GetSupportedFormats(); 742 const std::vector<VideoFormat>* formats = capturer->GetSupportedFormats();
743 if (formats != NULL) 743 if (formats != NULL)
744 *out_formats = *formats; 744 *out_formats = *formats;
745 } 745 }
746 746
747 bool ChannelManager::RegisterVoiceProcessor(
748 uint32 ssrc,
749 VoiceProcessor* processor,
750 MediaProcessorDirection direction) {
751 return initialized_ && worker_thread_->Invoke<bool>(
752 Bind(&MediaEngineInterface::RegisterVoiceProcessor, media_engine_.get(),
753 ssrc, processor, direction));
754 }
755
756 bool ChannelManager::UnregisterVoiceProcessor(
757 uint32 ssrc,
758 VoiceProcessor* processor,
759 MediaProcessorDirection direction) {
760 return initialized_ && worker_thread_->Invoke<bool>(
761 Bind(&MediaEngineInterface::UnregisterVoiceProcessor,
762 media_engine_.get(), ssrc, processor, direction));
763 }
764
765 // The following are done in the new "CaptureManager" style that 747 // The following are done in the new "CaptureManager" style that
766 // all local video capturers, processors, and managers should move 748 // all local video capturers, processors, and managers should move
767 // to. 749 // to.
768 // TODO(pthatcher): Add more of the CaptureManager interface. 750 // TODO(pthatcher): Add more of the CaptureManager interface.
769 bool ChannelManager::StartVideoCapture( 751 bool ChannelManager::StartVideoCapture(
770 VideoCapturer* capturer, const VideoFormat& video_format) { 752 VideoCapturer* capturer, const VideoFormat& video_format) {
771 return initialized_ && worker_thread_->Invoke<bool>( 753 return initialized_ && worker_thread_->Invoke<bool>(
772 Bind(&CaptureManager::StartVideoCapture, 754 Bind(&CaptureManager::StartVideoCapture,
773 capture_manager_.get(), capturer, video_format)); 755 capture_manager_.get(), capturer, video_format));
774 } 756 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 const VideoFormat& max_format) { 876 const VideoFormat& max_format) {
895 device_manager_->SetVideoCaptureDeviceMaxFormat(usb_id, max_format); 877 device_manager_->SetVideoCaptureDeviceMaxFormat(usb_id, max_format);
896 } 878 }
897 879
898 bool ChannelManager::StartAecDump(rtc::PlatformFile file) { 880 bool ChannelManager::StartAecDump(rtc::PlatformFile file) {
899 return worker_thread_->Invoke<bool>( 881 return worker_thread_->Invoke<bool>(
900 Bind(&MediaEngineInterface::StartAecDump, media_engine_.get(), file)); 882 Bind(&MediaEngineInterface::StartAecDump, media_engine_.get(), file));
901 } 883 }
902 884
903 } // namespace cricket 885 } // namespace cricket
OLDNEW
« no previous file with comments | « talk/session/media/channelmanager.h ('k') | talk/session/media/channelmanager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698