Removed default cases causing clang errors, -Wcovered-switch-default.
BUG= TEST=Bulid with clang version 3.1 (trunk 148911) Review URL: https://webrtc-codereview.appspot.com/379008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1604 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
5eeaa38573
commit
c80d9d9361
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -229,9 +229,6 @@ libyuv::RotationMode ConvertRotationMode(VideoRotationMode rotation) {
|
|||||||
return libyuv::kRotate180;
|
return libyuv::kRotate180;
|
||||||
case kRotate270:
|
case kRotate270:
|
||||||
return libyuv::kRotate270;
|
return libyuv::kRotate270;
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
return libyuv::kRotate0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,9 +265,6 @@ int ConvertVideoType(VideoType video_type) {
|
|||||||
return libyuv::FOURCC_ARGB;
|
return libyuv::FOURCC_ARGB;
|
||||||
case kBGRA:
|
case kBGRA:
|
||||||
return libyuv::FOURCC_BGRA;
|
return libyuv::FOURCC_BGRA;
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
return libyuv::FOURCC_ANY;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -58,8 +58,6 @@ WebRtc_Word32 WebRtcIsac_InitBandwidthEstimator(
|
|||||||
bwest_str->send_bw_avg = INIT_BN_EST_SWB;
|
bwest_str->send_bw_avg = INIT_BN_EST_SWB;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(decoderSampRate)
|
switch(decoderSampRate)
|
||||||
@ -86,8 +84,6 @@ WebRtc_Word32 WebRtcIsac_InitBandwidthEstimator(
|
|||||||
bwest_str->rec_header_rate = INIT_HDR_RATE_SWB;
|
bwest_str->rec_header_rate = INIT_HDR_RATE_SWB;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bwest_str->prev_rec_rtp_number = 0;
|
bwest_str->prev_rec_rtp_number = 0;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -676,8 +676,6 @@ WebRtc_Word16 WebRtcIsac_Encode(
|
|||||||
streamLenUB = 0;
|
streamLenUB = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if((streamLenUB < 0) &&
|
if((streamLenUB < 0) &&
|
||||||
@ -1666,8 +1664,6 @@ WebRtc_Word16 WebRtcIsac_DecodePlc(
|
|||||||
numSamples = 960 * noOfLostFrames;
|
numSamples = 960 * noOfLostFrames;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set output samples to zero */
|
/* Set output samples to zero */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -417,10 +417,6 @@ ACMNetEQ::SetPlayoutMode(
|
|||||||
case streaming:
|
case streaming:
|
||||||
playoutMode = kPlayoutStreaming;
|
playoutMode = kPlayoutStreaming;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, _id,
|
|
||||||
"SetPlayoutMode: NetEq Error playout mode not recognized");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
if(WebRtcNetEQ_SetPlayoutMode(_inst[idx], playoutMode) < 0)
|
if(WebRtcNetEQ_SetPlayoutMode(_inst[idx], playoutMode) < 0)
|
||||||
{
|
{
|
||||||
@ -1243,10 +1239,6 @@ ACMNetEQ::AddSlave(
|
|||||||
case streaming:
|
case streaming:
|
||||||
playoutMode = kPlayoutStreaming;
|
playoutMode = kPlayoutStreaming;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, _id,
|
|
||||||
"AddSlave: NetEq Error, playout mode not recognized");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
if(WebRtcNetEQ_SetPlayoutMode(_inst[slaveIdx], playoutMode) < 0)
|
if(WebRtcNetEQ_SetPlayoutMode(_inst[slaveIdx], playoutMode) < 0)
|
||||||
{
|
{
|
||||||
|
@ -396,13 +396,6 @@ AudioCodingModuleImpl::Process()
|
|||||||
_isFirstRED = true;
|
_isFirstRED = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
|
||||||
{
|
|
||||||
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, _id,
|
|
||||||
"Process(): Wrong Encoding-Type");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
hasDataToSend = true;
|
hasDataToSend = true;
|
||||||
_previousPayloadType = currentPayloadType;
|
_previousPayloadType = currentPayloadType;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -1979,7 +1979,6 @@ void AudioDeviceLinuxPulse::PaContextStateCallbackHandler(pa_context *c)
|
|||||||
case PA_CONTEXT_CONNECTING:
|
case PA_CONTEXT_CONNECTING:
|
||||||
case PA_CONTEXT_AUTHORIZING:
|
case PA_CONTEXT_AUTHORIZING:
|
||||||
case PA_CONTEXT_SETTING_NAME:
|
case PA_CONTEXT_SETTING_NAME:
|
||||||
default:
|
|
||||||
WEBRTC_TRACE(kTraceDebug, kTraceAudioDevice, _id,
|
WEBRTC_TRACE(kTraceDebug, kTraceAudioDevice, _id,
|
||||||
" no state");
|
" no state");
|
||||||
break;
|
break;
|
||||||
@ -2127,10 +2126,6 @@ void AudioDeviceLinuxPulse::PaStreamStateCallbackHandler(pa_stream *p)
|
|||||||
WEBRTC_TRACE(kTraceDebug, kTraceAudioDevice, _id,
|
WEBRTC_TRACE(kTraceDebug, kTraceAudioDevice, _id,
|
||||||
" creating");
|
" creating");
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
WEBRTC_TRACE(kTraceDebug, kTraceAudioDevice, _id,
|
|
||||||
" no state");
|
|
||||||
break;
|
|
||||||
case PA_STREAM_FAILED:
|
case PA_STREAM_FAILED:
|
||||||
case PA_STREAM_TERMINATED:
|
case PA_STREAM_TERMINATED:
|
||||||
WEBRTC_TRACE(kTraceDebug, kTraceAudioDevice, _id,
|
WEBRTC_TRACE(kTraceDebug, kTraceAudioDevice, _id,
|
||||||
|
@ -32,8 +32,6 @@ WebRtc_Word16 MapSetting(EchoCancellation::SuppressionLevel level) {
|
|||||||
return kAecNlpModerate;
|
return kAecNlpModerate;
|
||||||
case EchoCancellation::kHighSuppression:
|
case EchoCancellation::kHighSuppression:
|
||||||
return kAecNlpAggressive;
|
return kAecNlpAggressive;
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,8 +36,6 @@ WebRtc_Word16 MapSetting(EchoControlMobile::RoutingMode mode) {
|
|||||||
return 3;
|
return 3;
|
||||||
case EchoControlMobile::kLoudSpeakerphone:
|
case EchoControlMobile::kLoudSpeakerphone:
|
||||||
return 4;
|
return 4;
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,8 +47,6 @@ WebRtc_Word16 MapSetting(GainControl::Mode mode) {
|
|||||||
case GainControl::kFixedDigital:
|
case GainControl::kFixedDigital:
|
||||||
return kAgcModeFixedDigital;
|
return kAgcModeFixedDigital;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -41,8 +41,6 @@ int MapSetting(NoiseSuppression::Level level) {
|
|||||||
return 2;
|
return 2;
|
||||||
case NoiseSuppression::kVeryHigh:
|
case NoiseSuppression::kVeryHigh:
|
||||||
return 3;
|
return 3;
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -37,8 +37,6 @@ int MapSetting(VoiceDetection::Likelihood likelihood) {
|
|||||||
case VoiceDetection::kHighLikelihood:
|
case VoiceDetection::kHighLikelihood:
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -202,9 +202,9 @@ WebRtc_Word32 MediaFileImpl::PlayoutData(WebRtc_Word8* buffer,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
|
||||||
case kFileFormatAviFile:
|
case kFileFormatAviFile:
|
||||||
{
|
{
|
||||||
|
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
||||||
if(video)
|
if(video)
|
||||||
{
|
{
|
||||||
bytesRead = _ptrFileUtilityObj->ReadAviVideoData(
|
bytesRead = _ptrFileUtilityObj->ReadAviVideoData(
|
||||||
@ -218,13 +218,13 @@ WebRtc_Word32 MediaFileImpl::PlayoutData(WebRtc_Word8* buffer,
|
|||||||
bufferLengthInBytes);
|
bufferLengthInBytes);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
#else
|
||||||
#endif
|
|
||||||
default:
|
|
||||||
WEBRTC_TRACE(kTraceError, kTraceFile, _id,
|
WEBRTC_TRACE(kTraceError, kTraceFile, _id,
|
||||||
"Playing file, but file format invalid!");
|
"Invalid file format: %d", kFileFormatAviFile);
|
||||||
assert(false);
|
assert(false);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( bytesRead > 0)
|
if( bytesRead > 0)
|
||||||
@ -630,9 +630,9 @@ WebRtc_Word32 MediaFileImpl::StartPlayingStream(
|
|||||||
_fileFormat = kFileFormatPreencodedFile;
|
_fileFormat = kFileFormatPreencodedFile;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
|
||||||
case kFileFormatAviFile:
|
case kFileFormatAviFile:
|
||||||
{
|
{
|
||||||
|
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
||||||
if(_ptrFileUtilityObj->InitAviReading( filename, videoOnly, loop))
|
if(_ptrFileUtilityObj->InitAviReading( filename, videoOnly, loop))
|
||||||
{
|
{
|
||||||
WEBRTC_TRACE(kTraceError, kTraceFile, _id,
|
WEBRTC_TRACE(kTraceError, kTraceFile, _id,
|
||||||
@ -646,14 +646,12 @@ WebRtc_Word32 MediaFileImpl::StartPlayingStream(
|
|||||||
|
|
||||||
_fileFormat = kFileFormatAviFile;
|
_fileFormat = kFileFormatAviFile;
|
||||||
break;
|
break;
|
||||||
}
|
#else
|
||||||
#endif
|
|
||||||
default:
|
|
||||||
{
|
|
||||||
WEBRTC_TRACE(kTraceError, kTraceFile, _id,
|
WEBRTC_TRACE(kTraceError, kTraceFile, _id,
|
||||||
"Invalid file format specified!");
|
"Invalid file format: %d", kFileFormatAviFile);
|
||||||
StopPlaying();
|
assert(false);
|
||||||
return -1;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(_ptrFileUtilityObj->codec_info(codec_info_) == -1)
|
if(_ptrFileUtilityObj->codec_info(codec_info_) == -1)
|
||||||
@ -813,8 +811,8 @@ WebRtc_Word32 MediaFileImpl::IncomingAudioVideoData(
|
|||||||
bytesWritten = _ptrFileUtilityObj->WritePreEncodedData(
|
bytesWritten = _ptrFileUtilityObj->WritePreEncodedData(
|
||||||
*_ptrOutStream, buffer, bufferLengthInBytes);
|
*_ptrOutStream, buffer, bufferLengthInBytes);
|
||||||
break;
|
break;
|
||||||
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
|
||||||
case kFileFormatAviFile:
|
case kFileFormatAviFile:
|
||||||
|
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
||||||
if(video)
|
if(video)
|
||||||
{
|
{
|
||||||
bytesWritten = _ptrFileUtilityObj->WriteAviVideoData(
|
bytesWritten = _ptrFileUtilityObj->WriteAviVideoData(
|
||||||
@ -825,11 +823,12 @@ WebRtc_Word32 MediaFileImpl::IncomingAudioVideoData(
|
|||||||
buffer, bufferLengthInBytes);
|
buffer, bufferLengthInBytes);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#else
|
||||||
default:
|
|
||||||
WEBRTC_TRACE(kTraceError, kTraceFile, _id,
|
WEBRTC_TRACE(kTraceError, kTraceFile, _id,
|
||||||
"recording active, but file format invalid!");
|
"Invalid file format: %d", kFileFormatAviFile);
|
||||||
|
assert(false);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO (hellner): quick look at the code makes me think that this
|
// TODO (hellner): quick look at the code makes me think that this
|
||||||
|
@ -2033,8 +2033,6 @@ ModuleRtpRtcpImpl::SendNACK(const WebRtc_UWord16* nackList,
|
|||||||
return _rtcpSender.SendRTCP(kRtcpNack, size, nackList);
|
return _rtcpSender.SendRTCP(kRtcpNack, size, nackList);
|
||||||
case kNackOff:
|
case kNackOff:
|
||||||
return -1;
|
return -1;
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
};
|
};
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -2259,9 +2257,6 @@ WebRtc_Word32 ModuleRtpRtcpImpl::RequestKeyFrame(const FrameType frameType) {
|
|||||||
_rtcpReceiver.RTT(_rtpReceiver.SSRC(), &RTT, NULL, NULL, NULL);
|
_rtcpReceiver.RTT(_rtpReceiver.SSRC(), &RTT, NULL, NULL, NULL);
|
||||||
return _rtcpSender.SendRTCP(kRtcpFir, 0, NULL, RTT);
|
return _rtcpSender.SendRTCP(kRtcpFir, 0, NULL, RTT);
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,12 +39,15 @@ FilePlayer* FilePlayer::CreateFilePlayer(WebRtc_UWord32 instanceID,
|
|||||||
case kFileFormatPcm32kHzFile:
|
case kFileFormatPcm32kHzFile:
|
||||||
// audio formats
|
// audio formats
|
||||||
return new FilePlayerImpl(instanceID, fileFormat);
|
return new FilePlayerImpl(instanceID, fileFormat);
|
||||||
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
|
||||||
case kFileFormatAviFile:
|
case kFileFormatAviFile:
|
||||||
|
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
||||||
return new VideoFilePlayerImpl(instanceID, fileFormat);
|
return new VideoFilePlayerImpl(instanceID, fileFormat);
|
||||||
#endif
|
#else
|
||||||
default:
|
WEBRTC_TRACE(kTraceError, kTraceFile, -1,
|
||||||
|
"Invalid file format: %d", kFileFormatAviFile);
|
||||||
|
assert(false);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,12 +41,15 @@ FileRecorder* FileRecorder::CreateFileRecorder(WebRtc_UWord32 instanceID,
|
|||||||
case kFileFormatPcm8kHzFile:
|
case kFileFormatPcm8kHzFile:
|
||||||
case kFileFormatPcm32kHzFile:
|
case kFileFormatPcm32kHzFile:
|
||||||
return new FileRecorderImpl(instanceID, fileFormat);
|
return new FileRecorderImpl(instanceID, fileFormat);
|
||||||
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
|
||||||
case kFileFormatAviFile:
|
case kFileFormatAviFile:
|
||||||
|
#ifdef WEBRTC_MODULE_UTILITY_VIDEO
|
||||||
return new AviRecorder(instanceID, fileFormat);
|
return new AviRecorder(instanceID, fileFormat);
|
||||||
#endif
|
#else
|
||||||
default:
|
WEBRTC_TRACE(kTraceError, kTraceFile, -1,
|
||||||
|
"Invalid file format: %d", kFileFormatAviFile);
|
||||||
|
assert(false);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -327,11 +327,6 @@ VCMFrameBuffer::SetState(VCMFrameBufferStateEnum state)
|
|||||||
assert(_state == kStateEmpty ||
|
assert(_state == kStateEmpty ||
|
||||||
_state == kStateIncomplete);
|
_state == kStateIncomplete);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
// Should never happen
|
|
||||||
assert(!"FrameBuffer::SetState Incorrect frame buffer state as input");
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
_state = state;
|
_state = state;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -756,9 +756,6 @@ VideoCodingModuleImpl::SetVideoProtection(VCMVideoProtection videoProtection,
|
|||||||
return _codecDataBase.SetPeriodicKeyFrames(enable);
|
return _codecDataBase.SetPeriodicKeyFrames(enable);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
|
||||||
return VCM_PARAMETER_ERROR;
|
|
||||||
}
|
}
|
||||||
return VCM_OK;
|
return VCM_OK;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -412,8 +412,6 @@ namespace webrtc
|
|||||||
case TYPE_Float64:
|
case TYPE_Float64:
|
||||||
StdSort<double>(data, numOfElements);
|
StdSort<double>(data, numOfElements);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
@ -543,8 +541,6 @@ namespace webrtc
|
|||||||
return StdKeySort<float>(data, key, numOfElements, sizeOfElement);
|
return StdKeySort<float>(data, key, numOfElements, sizeOfElement);
|
||||||
case TYPE_Float64:
|
case TYPE_Float64:
|
||||||
return StdKeySort<double>(data, key, numOfElements, sizeOfElement);
|
return StdKeySort<double>(data, key, numOfElements, sizeOfElement);
|
||||||
default:
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -182,8 +182,6 @@ bool ThreadPosix::Start(unsigned int& /*threadID*/)
|
|||||||
case kRealtimePriority:
|
case kRealtimePriority:
|
||||||
param.sched_priority = maxPrio - 1;
|
param.sched_priority = maxPrio - 1;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
result = pthread_setschedparam(_thread, policy, ¶m);
|
result = pthread_setschedparam(_thread, policy, ¶m);
|
||||||
if (result == EINVAL)
|
if (result == EINVAL)
|
||||||
|
@ -283,9 +283,6 @@ WebRtc_Word32 TraceImpl::AddModuleAndId(char* traceMessage,
|
|||||||
sprintf(traceMessage, " VIDEO PROC:%5ld %5ld;", idEngine,
|
sprintf(traceMessage, " VIDEO PROC:%5ld %5ld;", idEngine,
|
||||||
idChannel);
|
idChannel);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (module)
|
switch (module)
|
||||||
@ -341,9 +338,6 @@ WebRtc_Word32 TraceImpl::AddModuleAndId(char* traceMessage,
|
|||||||
case kTraceVideoPreocessing:
|
case kTraceVideoPreocessing:
|
||||||
sprintf (traceMessage, " VIDEO PROC:%11ld;", idl);
|
sprintf (traceMessage, " VIDEO PROC:%11ld;", idl);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// All messages are 25 characters.
|
// All messages are 25 characters.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -119,9 +119,6 @@ void ViEAutoTest::PrintVideoCodec(const webrtc::VideoCodec videoCodec)
|
|||||||
case webrtc::kVideoCodecUnknown:
|
case webrtc::kVideoCodecUnknown:
|
||||||
ViETest::Log("\tcodecType: ????");
|
ViETest::Log("\tcodecType: ????");
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
ViETest::Log("\tcodecType: ????");
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ViETest::Log("\theight: %u", videoCodec.height);
|
ViETest::Log("\theight: %u", videoCodec.height);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -54,8 +54,6 @@ public:
|
|||||||
case webrtc::Dark:
|
case webrtc::Dark:
|
||||||
ViETest::Log(" BrightnessAlarm Dark");
|
ViETest::Log(" BrightnessAlarm Dark");
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
assert(!"Unknown brightness alarm");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -1894,9 +1894,6 @@ void PrintRTCCPStatistics(webrtc::ViERTP_RTCP* ptrViERtpRtcp,
|
|||||||
"ERROR: %s at line %d",
|
"ERROR: %s at line %d",
|
||||||
__FUNCTION__, __LINE__);
|
__FUNCTION__, __LINE__);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
std::cout << "Invalid RTCP Statistics selected" << std::endl;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
std::cout << "\tRTCP fraction of lost packets: "
|
std::cout << "\tRTCP fraction of lost packets: "
|
||||||
<< fractionLost << std::endl;
|
<< fractionLost << std::endl;
|
||||||
@ -2002,9 +1999,6 @@ void PrintCodecStatistics(webrtc::ViECodec* ptrViECodec, int videoChannel,
|
|||||||
"ERROR: %s at line %d",
|
"ERROR: %s at line %d",
|
||||||
__FUNCTION__, __LINE__);
|
__FUNCTION__, __LINE__);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
std::cout << "Invalid Codec Statistics selected" << std::endl;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
std::cout << "\tNumber of encoded key frames: "
|
std::cout << "\tNumber of encoded key frames: "
|
||||||
<< keyFrames << std::endl;
|
<< keyFrames << std::endl;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -293,8 +293,6 @@ WebRtc_Word32 ViECapturer::SetRotateCapturedFrames(
|
|||||||
case RotateCapturedFrame_270:
|
case RotateCapturedFrame_270:
|
||||||
converted_rotation = kCameraRotate270;
|
converted_rotation = kCameraRotate270;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return capture_module_->SetCaptureRotation(converted_rotation);
|
return capture_module_->SetCaptureRotation(converted_rotation);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -146,8 +146,6 @@ int ViEInputManager::GetOrientation(const WebRtc_UWord8* device_unique_idUTF8,
|
|||||||
case kCameraRotate270:
|
case kCameraRotate270:
|
||||||
orientation = RotateCapturedFrame_270;
|
orientation = RotateCapturedFrame_270;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
assert(!"Unknown enum");
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,6 @@ static RTCPMethod ViERTCPModeToRTCPMethod(ViERTCPMode api_mode) {
|
|||||||
|
|
||||||
case kRtcpNonCompound_RFC5506:
|
case kRtcpNonCompound_RFC5506:
|
||||||
return kRtcpNonCompound;
|
return kRtcpNonCompound;
|
||||||
|
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
return kRtcpOff;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,10 +48,6 @@ static ViERTCPMode RTCPMethodToViERTCPMode(RTCPMethod module_method) {
|
|||||||
|
|
||||||
case kRtcpNonCompound:
|
case kRtcpNonCompound:
|
||||||
return kRtcpNonCompound_RFC5506;
|
return kRtcpNonCompound_RFC5506;
|
||||||
|
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
return kRtcpNone;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,10 +65,6 @@ static KeyFrameRequestMethod APIRequestToModuleRequest(
|
|||||||
|
|
||||||
case kViEKeyFrameRequestFirRtcp:
|
case kViEKeyFrameRequestFirRtcp:
|
||||||
return kKeyFrameReqFirRtcp;
|
return kKeyFrameReqFirRtcp;
|
||||||
|
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
return kKeyFrameReqFirRtp;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2143,11 +2143,6 @@ Channel::SetNetEQPlayoutMode(NetEqModes mode)
|
|||||||
case kNetEqFax:
|
case kNetEqFax:
|
||||||
playoutMode = fax;
|
playoutMode = fax;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatisticsPtr->SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"SetNetEQPlayoutMode() invalid mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
if (_audioCodingModule.SetPlayoutMode(playoutMode) != 0)
|
if (_audioCodingModule.SetPlayoutMode(playoutMode) != 0)
|
||||||
{
|
{
|
||||||
@ -2174,11 +2169,6 @@ Channel::GetNetEQPlayoutMode(NetEqModes& mode)
|
|||||||
case fax:
|
case fax:
|
||||||
mode = kNetEqFax;
|
mode = kNetEqFax;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatisticsPtr->SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"GetNetEQPlayoutMode() invalid mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice,
|
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice,
|
||||||
VoEId(_instanceId,_channelId),
|
VoEId(_instanceId,_channelId),
|
||||||
@ -2203,11 +2193,6 @@ Channel::SetNetEQBGNMode(NetEqBgnModes mode)
|
|||||||
case kBgnOff:
|
case kBgnOff:
|
||||||
noiseMode = Off;
|
noiseMode = Off;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatisticsPtr->SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"SetNetEQBGNMode() invalid mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
if (_audioCodingModule.SetBackgroundNoiseMode(noiseMode) != 0)
|
if (_audioCodingModule.SetBackgroundNoiseMode(noiseMode) != 0)
|
||||||
{
|
{
|
||||||
@ -2316,12 +2301,6 @@ Channel::GetNetEQBGNMode(NetEqBgnModes& mode)
|
|||||||
case Off:
|
case Off:
|
||||||
mode = kBgnOff;
|
mode = kBgnOff;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatisticsPtr->SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT,
|
|
||||||
kTraceError,
|
|
||||||
"GetNetEQBGNMode() invalid mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId,_channelId),
|
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId,_channelId),
|
||||||
"Channel::GetNetEQBGNMode() => mode=%u", mode);
|
"Channel::GetNetEQBGNMode() => mode=%u", mode);
|
||||||
@ -4944,11 +4923,6 @@ Channel::SetRxNsStatus(const bool enable, const NsModes mode)
|
|||||||
case kNsVeryHighSuppression:
|
case kNsVeryHighSuppression:
|
||||||
nsLevel = NoiseSuppression::kVeryHigh;
|
nsLevel = NoiseSuppression::kVeryHigh;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatisticsPtr->SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"SetRxNsStatus() invalid Ns mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_rxAudioProcessingModulePtr->noise_suppression()->set_level(nsLevel)
|
if (_rxAudioProcessingModulePtr->noise_suppression()->set_level(nsLevel)
|
||||||
@ -5000,11 +4974,6 @@ Channel::GetRxNsStatus(bool& enabled, NsModes& mode)
|
|||||||
case NoiseSuppression::kVeryHigh:
|
case NoiseSuppression::kVeryHigh:
|
||||||
mode = kNsVeryHighSuppression;
|
mode = kNsVeryHighSuppression;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatisticsPtr->SetLastError(
|
|
||||||
VE_APM_ERROR, kTraceError,
|
|
||||||
"GetRxNsStatus() invalid Ns mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice,
|
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -105,11 +105,6 @@ int VoEAudioProcessingImpl::SetNsStatus(bool enable, NsModes mode)
|
|||||||
case kNsVeryHighSuppression:
|
case kNsVeryHighSuppression:
|
||||||
nsLevel = NoiseSuppression::kVeryHigh;
|
nsLevel = NoiseSuppression::kVeryHigh;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"SetNsStatus() invalid Ns mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_audioProcessingModulePtr->noise_suppression()->set_level(nsLevel) != 0)
|
if (_audioProcessingModulePtr->noise_suppression()->set_level(nsLevel) != 0)
|
||||||
@ -169,11 +164,6 @@ int VoEAudioProcessingImpl::GetNsStatus(bool& enabled, NsModes& mode)
|
|||||||
case NoiseSuppression::kVeryHigh:
|
case NoiseSuppression::kVeryHigh:
|
||||||
mode = kNsVeryHighSuppression;
|
mode = kNsVeryHighSuppression;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(
|
|
||||||
VE_APM_ERROR, kTraceError,
|
|
||||||
"GetNsStatus() invalid Ns mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId,-1),
|
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId,-1),
|
||||||
@ -227,10 +217,6 @@ int VoEAudioProcessingImpl::SetAgcStatus(bool enable, AgcModes mode)
|
|||||||
case kAgcAdaptiveDigital:
|
case kAgcAdaptiveDigital:
|
||||||
agcMode = GainControl::kAdaptiveDigital;
|
agcMode = GainControl::kAdaptiveDigital;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"SetAgcStatus() invalid Agc mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_audioProcessingModulePtr->gain_control()->set_mode(agcMode) != 0)
|
if (_audioProcessingModulePtr->gain_control()->set_mode(agcMode) != 0)
|
||||||
@ -302,10 +288,6 @@ int VoEAudioProcessingImpl::GetAgcStatus(bool& enabled, AgcModes& mode)
|
|||||||
case GainControl::kAdaptiveDigital:
|
case GainControl::kAdaptiveDigital:
|
||||||
mode = kAgcAdaptiveDigital;
|
mode = kAgcAdaptiveDigital;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(VE_APM_ERROR, kTraceError,
|
|
||||||
"GetAgcStatus() invalid Agc mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId,-1),
|
WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId,-1),
|
||||||
@ -786,10 +768,6 @@ int VoEAudioProcessingImpl::SetAecmMode(AecmModes mode, bool enableCNG)
|
|||||||
case kAecmLoudSpeakerphone:
|
case kAecmLoudSpeakerphone:
|
||||||
aecmMode = EchoControlMobile::kLoudSpeakerphone;
|
aecmMode = EchoControlMobile::kLoudSpeakerphone;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(VE_APM_ERROR, kTraceError,
|
|
||||||
"GetEcStatus() invalid EC mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -854,11 +832,6 @@ int VoEAudioProcessingImpl::GetAecmMode(AecmModes& mode, bool& enabledCNG)
|
|||||||
case EchoControlMobile::kLoudSpeakerphone:
|
case EchoControlMobile::kLoudSpeakerphone:
|
||||||
mode = kAecmLoudSpeakerphone;
|
mode = kAecmLoudSpeakerphone;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(
|
|
||||||
VE_APM_ERROR, kTraceError,
|
|
||||||
"GetAECMMode() invalid EC mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -613,10 +613,6 @@ int VoECodecImpl::SetVADStatus(int channel, bool enable, VadModes mode,
|
|||||||
case kVadAggressiveHigh:
|
case kVadAggressiveHigh:
|
||||||
vadMode = VADVeryAggr;
|
vadMode = VADVeryAggr;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"SetVADStatus() invalid VAD mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
return channelPtr->SetVADStatus(enable, vadMode, disableDTX);
|
return channelPtr->SetVADStatus(enable, vadMode, disableDTX);
|
||||||
}
|
}
|
||||||
@ -664,11 +660,6 @@ int VoECodecImpl::GetVADStatus(int channel, bool& enabled, VadModes& mode,
|
|||||||
case VADVeryAggr:
|
case VADVeryAggr:
|
||||||
mode = kVadAggressiveHigh;
|
mode = kVadAggressiveHigh;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(VE_AUDIO_CODING_MODULE_ERROR,
|
|
||||||
kTraceError,
|
|
||||||
"GetVADStatus() invalid VAD mode");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -112,15 +112,8 @@ int VoEExternalMediaImpl::RegisterExternalMediaProcessing(
|
|||||||
return _transmitMixerPtr->RegisterExternalMediaProcessing(
|
return _transmitMixerPtr->RegisterExternalMediaProcessing(
|
||||||
processObject);
|
processObject);
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
{
|
|
||||||
_engineStatistics.SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"RegisterExternalMediaProcessing() invalid process type");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int VoEExternalMediaImpl::DeRegisterExternalMediaProcessing(
|
int VoEExternalMediaImpl::DeRegisterExternalMediaProcessing(
|
||||||
@ -161,14 +154,8 @@ int VoEExternalMediaImpl::DeRegisterExternalMediaProcessing(
|
|||||||
{
|
{
|
||||||
return _transmitMixerPtr->DeRegisterExternalMediaProcessing();
|
return _transmitMixerPtr->DeRegisterExternalMediaProcessing();
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
{
|
|
||||||
_engineStatistics.SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"RegisterExternalMediaProcessing() invalid process type");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int VoEExternalMediaImpl::SetExternalRecordingStatus(bool enable)
|
int VoEExternalMediaImpl::SetExternalRecordingStatus(bool enable)
|
||||||
|
@ -115,10 +115,6 @@ int VoEHardwareImpl::SetAudioDeviceLayer(AudioLayers audioLayer)
|
|||||||
case kAudioLinuxPulse:
|
case kAudioLinuxPulse:
|
||||||
wantedLayer = AudioDeviceModule::kLinuxPulseAudio;
|
wantedLayer = AudioDeviceModule::kLinuxPulseAudio;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
" invalid audio layer");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save the audio device layer for Init()
|
// Save the audio device layer for Init()
|
||||||
@ -390,11 +386,6 @@ int VoEHardwareImpl::SetRecordingDevice(int index,
|
|||||||
case kStereoBoth:
|
case kStereoBoth:
|
||||||
// default setting kChannelBoth (<=> mono)
|
// default setting kChannelBoth (<=> mono)
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
_engineStatistics.SetLastError(
|
|
||||||
VE_INVALID_ARGUMENT, kTraceError,
|
|
||||||
"SetRecordingDevice() unknown recording channel");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_audioDevicePtr->SetRecordingChannel(recCh) != 0) {
|
if (_audioDevicePtr->SetRecordingChannel(recCh) != 0) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Use of this source code is governed by a BSD-style license
|
* Use of this source code is governed by a BSD-style license
|
||||||
* that can be found in the LICENSE file in the root of the source
|
* that can be found in the LICENSE file in the root of the source
|
||||||
@ -127,8 +127,6 @@ int CalculateMetrics(VideoMetricsType video_metrics_type,
|
|||||||
CalculateFrame(kSSIM, ref, test, width, height, frame_number,
|
CalculateFrame(kSSIM, ref, test, width, height, frame_number,
|
||||||
ssim_result);
|
ssim_result);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
}
|
}
|
||||||
frame_number++;
|
frame_number++;
|
||||||
ref_bytes = fread(ref, 1, frame_length, ref_fp);
|
ref_bytes = fread(ref, 1, frame_length, ref_fp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user