Fix VCM test build warnings on Mac with clang.
BUG= TEST= Review URL: http://webrtc-codereview.appspot.com/318008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1160 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
7889a9b49a
commit
1480f02faf
@ -235,7 +235,7 @@ NormalTest::Encode()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
NormalTest::Decode()
|
NormalTest::Decode(int lossValue)
|
||||||
{
|
{
|
||||||
_encodedVideoBuffer.SetWidth(_inst.width);
|
_encodedVideoBuffer.SetWidth(_inst.width);
|
||||||
_encodedVideoBuffer.SetHeight(_inst.height);
|
_encodedVideoBuffer.SetHeight(_inst.height);
|
||||||
|
@ -26,7 +26,7 @@ protected:
|
|||||||
virtual void Setup();
|
virtual void Setup();
|
||||||
virtual void Teardown();
|
virtual void Teardown();
|
||||||
virtual bool Encode();
|
virtual bool Encode();
|
||||||
virtual int Decode();
|
virtual int Decode(int lossValue = 0);
|
||||||
virtual void CodecSpecific_InitBitrate()=0;
|
virtual void CodecSpecific_InitBitrate()=0;
|
||||||
virtual int DoPacketLoss() {return 0;};
|
virtual int DoPacketLoss() {return 0;};
|
||||||
|
|
||||||
|
@ -26,6 +26,9 @@ Test consists of:
|
|||||||
4. Decoder control test / General API functionality
|
4. Decoder control test / General API functionality
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace webrtc {
|
||||||
|
|
||||||
int VCMGenericCodecTest(CmdArgs& args);
|
int VCMGenericCodecTest(CmdArgs& args);
|
||||||
|
|
||||||
class GenericCodecTest
|
class GenericCodecTest
|
||||||
@ -97,4 +100,6 @@ private:
|
|||||||
WebRtc_UWord32 _timeStamp;
|
WebRtc_UWord32 _timeStamp;
|
||||||
}; // end of VCMEncodeCompleteCallback
|
}; // end of VCMEncodeCompleteCallback
|
||||||
|
|
||||||
|
} // namespace webrtc
|
||||||
|
|
||||||
#endif // WEBRTC_MODULES_VIDEO_CODING_TEST_GENERIC_CODEC_TEST_H_
|
#endif // WEBRTC_MODULES_VIDEO_CODING_TEST_GENERIC_CODEC_TEST_H_
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
#include "video_coding.h"
|
#include "video_coding.h"
|
||||||
#include "video_source.h"
|
#include "video_source.h"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
// media optimization test
|
// media optimization test
|
||||||
// This test simulates a complete encode-decode cycle via the RTP module.
|
// This test simulates a complete encode-decode cycle via the RTP module.
|
||||||
// allows error resilience tests, packet loss tests, etc.
|
// allows error resilience tests, packet loss tests, etc.
|
||||||
@ -76,7 +74,7 @@ private:
|
|||||||
WebRtc_Word32 _frameCnt;
|
WebRtc_Word32 _frameCnt;
|
||||||
float _sumEncBytes;
|
float _sumEncBytes;
|
||||||
WebRtc_Word32 _numFramesDropped;
|
WebRtc_Word32 _numFramesDropped;
|
||||||
string _codecName;
|
std::string _codecName;
|
||||||
webrtc::VideoCodecType _sendCodecType;
|
webrtc::VideoCodecType _sendCodecType;
|
||||||
WebRtc_Word32 _numberOfCores;
|
WebRtc_Word32 _numberOfCores;
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "rtp_dump.h"
|
#include "rtp_dump.h"
|
||||||
|
|
||||||
|
namespace webrtc {
|
||||||
|
|
||||||
TransportCallback::TransportCallback(webrtc::RtpRtcp* rtp,
|
TransportCallback::TransportCallback(webrtc::RtpRtcp* rtp,
|
||||||
const char* filename):
|
const char* filename):
|
||||||
@ -130,3 +131,5 @@ bool TransportThread(void *obj)
|
|||||||
state->_transport.TransportPackets();
|
state->_transport.TransportPackets();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace webrtc
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "test_util.h"
|
#include "test_util.h"
|
||||||
#include "video_coding.h"
|
#include "video_coding.h"
|
||||||
|
|
||||||
using namespace webrtc;
|
namespace webrtc {
|
||||||
|
|
||||||
class SendSharedState
|
class SendSharedState
|
||||||
{
|
{
|
||||||
@ -83,5 +83,6 @@ bool VCMProcessingThread(void* obj);
|
|||||||
bool VCMDecodeThread(void* obj);
|
bool VCMDecodeThread(void* obj);
|
||||||
bool TransportThread(void *obj);
|
bool TransportThread(void *obj);
|
||||||
|
|
||||||
|
} // namespace webrtc
|
||||||
|
|
||||||
#endif // WEBRTC_MODULES_VIDEO_CODING_TEST_MT_TEST_COMMON_H_
|
#endif // WEBRTC_MODULES_VIDEO_CODING_TEST_MT_TEST_COMMON_H_
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
#include "rtp_dump.h"
|
#include "rtp_dump.h"
|
||||||
#include "test_macros.h"
|
#include "test_macros.h"
|
||||||
|
|
||||||
|
namespace webrtc {
|
||||||
|
|
||||||
/******************************
|
/******************************
|
||||||
* VCMEncodeCompleteCallback
|
* VCMEncodeCompleteCallback
|
||||||
*****************************/
|
*****************************/
|
||||||
@ -503,14 +505,13 @@ VideoProtectionCallback::FECKeyUepProtection()
|
|||||||
|
|
||||||
void
|
void
|
||||||
RTPFeedbackCallback::OnNetworkChanged(const WebRtc_Word32 id,
|
RTPFeedbackCallback::OnNetworkChanged(const WebRtc_Word32 id,
|
||||||
const WebRtc_UWord16 bitrateTargetKbit,
|
const WebRtc_UWord32 bitrateBps,
|
||||||
const WebRtc_UWord8 fractionLost,
|
const WebRtc_UWord8 fractionLost,
|
||||||
const WebRtc_UWord16 roundTripTimeMs,
|
const WebRtc_UWord16 roundTripTimeMs)
|
||||||
const WebRtc_UWord32 jitterMS,
|
|
||||||
const WebRtc_UWord16 bwEstimateKbitMin,
|
|
||||||
const WebRtc_UWord16 bwEstimateKbitMax)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
_vcm->SetChannelParameters(bitrateTargetKbit, fractionLost,
|
_vcm->SetChannelParameters(bitrateBps / 1000, fractionLost,
|
||||||
(WebRtc_UWord8)roundTripTimeMs);
|
(WebRtc_UWord8)roundTripTimeMs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace webrtc
|
||||||
|
@ -28,12 +28,9 @@
|
|||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
#include "video_coding.h"
|
#include "video_coding.h"
|
||||||
|
|
||||||
using namespace webrtc;
|
|
||||||
|
|
||||||
namespace webrtc
|
namespace webrtc
|
||||||
{
|
{
|
||||||
class RtpDump;
|
class RtpDump;
|
||||||
}
|
|
||||||
|
|
||||||
// Send Side - Packetization callback - send an encoded frame to the VCMReceiver
|
// Send Side - Packetization callback - send an encoded frame to the VCMReceiver
|
||||||
class VCMEncodeCompleteCallback: public VCMPacketizationCallback
|
class VCMEncodeCompleteCallback: public VCMPacketizationCallback
|
||||||
@ -238,7 +235,7 @@ class VideoProtectionCallback: public VCMProtectionCallback
|
|||||||
public:
|
public:
|
||||||
VideoProtectionCallback();
|
VideoProtectionCallback();
|
||||||
virtual ~VideoProtectionCallback();
|
virtual ~VideoProtectionCallback();
|
||||||
void RegisterRtpModule(RtpRtcp* rtp){_rtp = rtp;}
|
void RegisterRtpModule(RtpRtcp* rtp) {_rtp = rtp;}
|
||||||
WebRtc_Word32 ProtectionRequest(const WebRtc_UWord8 deltaFECRate,
|
WebRtc_Word32 ProtectionRequest(const WebRtc_UWord8 deltaFECRate,
|
||||||
const WebRtc_UWord8 keyFECRate,
|
const WebRtc_UWord8 keyFECRate,
|
||||||
const bool deltaUseUepProtection,
|
const bool deltaUseUepProtection,
|
||||||
@ -259,23 +256,22 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Feed back from the RTP Module callback
|
// Feed back from the RTP Module callback
|
||||||
class RTPFeedbackCallback: public RtpVideoFeedback
|
class RTPFeedbackCallback : public RtpVideoFeedback {
|
||||||
{
|
public:
|
||||||
public:
|
RTPFeedbackCallback(VideoCodingModule* vcm) {_vcm = vcm;};
|
||||||
RTPFeedbackCallback(VideoCodingModule* vcm) {_vcm = vcm;};
|
void OnReceivedIntraFrameRequest(const WebRtc_Word32 id,
|
||||||
void OnReceivedIntraFrameRequest(const WebRtc_Word32 id,
|
const FrameType type,
|
||||||
const WebRtc_UWord8 message = 0){};
|
const WebRtc_UWord8 streamIdx) {};
|
||||||
|
|
||||||
void OnNetworkChanged(const WebRtc_Word32 id,
|
void OnNetworkChanged(const WebRtc_Word32 id,
|
||||||
const WebRtc_UWord16 bitrateTargetKbit,
|
const WebRtc_UWord32 bitrateBps,
|
||||||
const WebRtc_UWord8 fractionLost,
|
const WebRtc_UWord8 fractionLost,
|
||||||
const WebRtc_UWord16 roundTripTimeMs,
|
const WebRtc_UWord16 roundTripTimeMs);
|
||||||
const WebRtc_UWord32 jitterMS,
|
|
||||||
const WebRtc_UWord16 bwEstimateKbitMin,
|
private:
|
||||||
const WebRtc_UWord16 bwEstimateKbitMax);
|
VideoCodingModule* _vcm;
|
||||||
private:
|
|
||||||
VideoCodingModule* _vcm;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace webrtc
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user