Update talk to 50918584.
Together with Stefan's http://review.webrtc.org/1960004/. R=mallinath@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2048004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4556 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -36,7 +36,7 @@ TEST(TestDecodingState, FrameContinuity) {
|
||||
packet->timestamp = 1;
|
||||
packet->seqNum = 0xffff;
|
||||
packet->frameType = kVideoFrameDelta;
|
||||
packet->codecSpecificHeader.codec = kRTPVideoVP8;
|
||||
packet->codecSpecificHeader.codec = kRtpVideoVp8;
|
||||
packet->codecSpecificHeader.codecHeader.VP8.pictureId = 0x007F;
|
||||
FrameData frame_data;
|
||||
frame_data.rtt_ms = 0;
|
||||
@ -213,7 +213,7 @@ TEST(TestDecodingState, MultiLayerBehavior) {
|
||||
VCMFrameBuffer frame;
|
||||
VCMPacket* packet = new VCMPacket();
|
||||
packet->frameType = kVideoFrameDelta;
|
||||
packet->codecSpecificHeader.codec = kRTPVideoVP8;
|
||||
packet->codecSpecificHeader.codec = kRtpVideoVp8;
|
||||
packet->timestamp = 0;
|
||||
packet->seqNum = 0;
|
||||
packet->codecSpecificHeader.codecHeader.VP8.tl0PicIdx = 0;
|
||||
@ -369,7 +369,7 @@ TEST(TestDecodingState, DiscontinuousPicIdContinuousSeqNum) {
|
||||
VCMPacket packet;
|
||||
frame.Reset();
|
||||
packet.frameType = kVideoFrameKey;
|
||||
packet.codecSpecificHeader.codec = kRTPVideoVP8;
|
||||
packet.codecSpecificHeader.codec = kRtpVideoVp8;
|
||||
packet.timestamp = 0;
|
||||
packet.seqNum = 0;
|
||||
packet.codecSpecificHeader.codecHeader.VP8.tl0PicIdx = 0;
|
||||
|
||||
@ -104,7 +104,7 @@ void VCMEncodedFrame::CopyCodecSpecific(const RTPVideoHeader* header)
|
||||
{
|
||||
switch (header->codec)
|
||||
{
|
||||
case kRTPVideoVP8:
|
||||
case kRtpVideoVp8:
|
||||
{
|
||||
if (_codecSpecificInfo.codecType != kVideoCodecVP8)
|
||||
{
|
||||
|
||||
@ -94,7 +94,7 @@ void VCMPacket::CopyCodecSpecifics(const RTPVideoHeader& videoHeader)
|
||||
{
|
||||
switch(videoHeader.codec)
|
||||
{
|
||||
case kRTPVideoVP8:
|
||||
case kRtpVideoVp8:
|
||||
{
|
||||
// Handle all packets within a frame as depending on the previous packet
|
||||
// TODO(holmer): This should be changed to make fragments independent
|
||||
@ -111,7 +111,7 @@ void VCMPacket::CopyCodecSpecifics(const RTPVideoHeader& videoHeader)
|
||||
codec = kVideoCodecVP8;
|
||||
break;
|
||||
}
|
||||
case kRTPVideoI420:
|
||||
case kRtpVideoI420:
|
||||
{
|
||||
codec = kVideoCodecI420;
|
||||
break;
|
||||
|
||||
@ -58,35 +58,35 @@ int VCMSessionInfo::HighSequenceNumber() const {
|
||||
|
||||
int VCMSessionInfo::PictureId() const {
|
||||
if (packets_.empty() ||
|
||||
packets_.front().codecSpecificHeader.codec != kRTPVideoVP8)
|
||||
packets_.front().codecSpecificHeader.codec != kRtpVideoVp8)
|
||||
return kNoPictureId;
|
||||
return packets_.front().codecSpecificHeader.codecHeader.VP8.pictureId;
|
||||
}
|
||||
|
||||
int VCMSessionInfo::TemporalId() const {
|
||||
if (packets_.empty() ||
|
||||
packets_.front().codecSpecificHeader.codec != kRTPVideoVP8)
|
||||
packets_.front().codecSpecificHeader.codec != kRtpVideoVp8)
|
||||
return kNoTemporalIdx;
|
||||
return packets_.front().codecSpecificHeader.codecHeader.VP8.temporalIdx;
|
||||
}
|
||||
|
||||
bool VCMSessionInfo::LayerSync() const {
|
||||
if (packets_.empty() ||
|
||||
packets_.front().codecSpecificHeader.codec != kRTPVideoVP8)
|
||||
packets_.front().codecSpecificHeader.codec != kRtpVideoVp8)
|
||||
return false;
|
||||
return packets_.front().codecSpecificHeader.codecHeader.VP8.layerSync;
|
||||
}
|
||||
|
||||
int VCMSessionInfo::Tl0PicId() const {
|
||||
if (packets_.empty() ||
|
||||
packets_.front().codecSpecificHeader.codec != kRTPVideoVP8)
|
||||
packets_.front().codecSpecificHeader.codec != kRtpVideoVp8)
|
||||
return kNoTl0PicIdx;
|
||||
return packets_.front().codecSpecificHeader.codecHeader.VP8.tl0PicIdx;
|
||||
}
|
||||
|
||||
bool VCMSessionInfo::NonReference() const {
|
||||
if (packets_.empty() ||
|
||||
packets_.front().codecSpecificHeader.codec != kRTPVideoVP8)
|
||||
packets_.front().codecSpecificHeader.codec != kRtpVideoVp8)
|
||||
return false;
|
||||
return packets_.front().codecSpecificHeader.codecHeader.VP8.nonReference;
|
||||
}
|
||||
|
||||
@ -69,7 +69,7 @@ class TestVP8Partitions : public TestSessionInfo {
|
||||
TestSessionInfo::SetUp();
|
||||
vp8_header_ = &packet_header_.type.Video.codecHeader.VP8;
|
||||
packet_header_.frameType = kVideoFrameDelta;
|
||||
packet_header_.type.Video.codec = kRTPVideoVP8;
|
||||
packet_header_.type.Video.codec = kRtpVideoVp8;
|
||||
vp8_header_->InitRTPVideoHeaderVP8();
|
||||
fragmentation_.VerifyAndAllocateFragmentationHeader(kMaxVP8Partitions);
|
||||
}
|
||||
|
||||
@ -143,7 +143,8 @@ VideoCodingModuleImpl::Process() {
|
||||
uint32_t bitRate;
|
||||
uint32_t frameRate;
|
||||
_receiver.ReceiveStatistics(&bitRate, &frameRate);
|
||||
_receiveStatsCallback->ReceiveStatistics(bitRate, frameRate);
|
||||
_receiveStatsCallback->OnReceiveStatisticsUpdate(bitRate,
|
||||
frameRate);
|
||||
}
|
||||
|
||||
// Size of render buffer.
|
||||
|
||||
@ -192,7 +192,7 @@ TEST_F(TestVideoCodingModule, PaddingOnlyFrames) {
|
||||
header.header.payloadType = kUnusedPayloadType;
|
||||
header.header.ssrc = 1;
|
||||
header.header.headerLength = 12;
|
||||
header.type.Video.codec = kRTPVideoVP8;
|
||||
header.type.Video.codec = kRtpVideoVp8;
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
EXPECT_CALL(packet_request_callback_, ResendPackets(_, _))
|
||||
.Times(0);
|
||||
@ -216,7 +216,7 @@ TEST_F(TestVideoCodingModule, PaddingOnlyFramesWithLosses) {
|
||||
header.header.payloadType = kUnusedPayloadType;
|
||||
header.header.ssrc = 1;
|
||||
header.header.headerLength = 12;
|
||||
header.type.Video.codec = kRTPVideoVP8;
|
||||
header.type.Video.codec = kRtpVideoVp8;
|
||||
// Insert one video frame to get one frame decoded.
|
||||
header.frameType = kVideoFrameKey;
|
||||
header.type.Video.isFirstPacket = true;
|
||||
@ -270,7 +270,7 @@ TEST_F(TestVideoCodingModule, PaddingOnlyAndVideo) {
|
||||
header.header.payloadType = kUnusedPayloadType;
|
||||
header.header.ssrc = 1;
|
||||
header.header.headerLength = 12;
|
||||
header.type.Video.codec = kRTPVideoVP8;
|
||||
header.type.Video.codec = kRtpVideoVp8;
|
||||
header.type.Video.codecHeader.VP8.pictureId = -1;
|
||||
header.type.Video.codecHeader.VP8.tl0PicIdx = -1;
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
|
||||
@ -67,7 +67,7 @@ class VCMRobustnessTest : public ::testing::Test {
|
||||
rtp_info.header.sequenceNumber = seq_no;
|
||||
rtp_info.header.markerBit = marker_bit;
|
||||
rtp_info.header.payloadType = video_codec_.plType;
|
||||
rtp_info.type.Video.codec = kRTPVideoVP8;
|
||||
rtp_info.type.Video.codec = kRtpVideoVp8;
|
||||
rtp_info.type.Video.codecHeader.VP8.InitRTPVideoHeaderVP8();
|
||||
rtp_info.type.Video.isFirstPacket = first;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user