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

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

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: google::int32 Created 5 years, 2 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
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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 } 748 }
749 749
750 void ChannelManager::GetSupportedFormats_w( 750 void ChannelManager::GetSupportedFormats_w(
751 VideoCapturer* capturer, 751 VideoCapturer* capturer,
752 std::vector<cricket::VideoFormat>* out_formats) const { 752 std::vector<cricket::VideoFormat>* out_formats) const {
753 const std::vector<VideoFormat>* formats = capturer->GetSupportedFormats(); 753 const std::vector<VideoFormat>* formats = capturer->GetSupportedFormats();
754 if (formats != NULL) 754 if (formats != NULL)
755 *out_formats = *formats; 755 *out_formats = *formats;
756 } 756 }
757 757
758 bool ChannelManager::RegisterVoiceProcessor( 758 bool ChannelManager::RegisterVoiceProcessor(uint32_t ssrc,
759 uint32 ssrc, 759 VoiceProcessor* processor,
760 VoiceProcessor* processor, 760 MediaProcessorDirection direction) {
761 MediaProcessorDirection direction) {
762 return initialized_ && worker_thread_->Invoke<bool>( 761 return initialized_ && worker_thread_->Invoke<bool>(
763 Bind(&MediaEngineInterface::RegisterVoiceProcessor, media_engine_.get(), 762 Bind(&MediaEngineInterface::RegisterVoiceProcessor, media_engine_.get(),
764 ssrc, processor, direction)); 763 ssrc, processor, direction));
765 } 764 }
766 765
767 bool ChannelManager::UnregisterVoiceProcessor( 766 bool ChannelManager::UnregisterVoiceProcessor(
768 uint32 ssrc, 767 uint32_t ssrc,
769 VoiceProcessor* processor, 768 VoiceProcessor* processor,
770 MediaProcessorDirection direction) { 769 MediaProcessorDirection direction) {
771 return initialized_ && worker_thread_->Invoke<bool>( 770 return initialized_ && worker_thread_->Invoke<bool>(
772 Bind(&MediaEngineInterface::UnregisterVoiceProcessor, 771 Bind(&MediaEngineInterface::UnregisterVoiceProcessor,
773 media_engine_.get(), ssrc, processor, direction)); 772 media_engine_.get(), ssrc, processor, direction));
774 } 773 }
775 774
776 // The following are done in the new "CaptureManager" style that 775 // The following are done in the new "CaptureManager" style that
777 // all local video capturers, processors, and managers should move 776 // all local video capturers, processors, and managers should move
778 // to. 777 // to.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 const VideoFormat& max_format) { 904 const VideoFormat& max_format) {
906 device_manager_->SetVideoCaptureDeviceMaxFormat(usb_id, max_format); 905 device_manager_->SetVideoCaptureDeviceMaxFormat(usb_id, max_format);
907 } 906 }
908 907
909 bool ChannelManager::StartAecDump(rtc::PlatformFile file) { 908 bool ChannelManager::StartAecDump(rtc::PlatformFile file) {
910 return worker_thread_->Invoke<bool>( 909 return worker_thread_->Invoke<bool>(
911 Bind(&MediaEngineInterface::StartAecDump, media_engine_.get(), file)); 910 Bind(&MediaEngineInterface::StartAecDump, media_engine_.get(), file));
912 } 911 }
913 912
914 } // namespace cricket 913 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698