Rename RTPVideoHeader.isFirstPacket to .is_first_packet_in_frame.
Name should represent the actual meaning. BUG=None Review-Url: https://codereview.webrtc.org/2574943003 Cr-Commit-Position: refs/heads/master@{#15684}
This commit is contained in:
@ -32,7 +32,7 @@ TEST(TestDecodingState, FrameContinuity) {
|
||||
VCMFrameBuffer frame;
|
||||
VCMFrameBuffer frame_key;
|
||||
VCMPacket packet;
|
||||
packet.isFirstPacket = true;
|
||||
packet.is_first_packet_in_frame = true;
|
||||
packet.timestamp = 1;
|
||||
packet.seqNum = 0xffff;
|
||||
packet.frameType = kVideoFrameDelta;
|
||||
@ -52,7 +52,7 @@ TEST(TestDecodingState, FrameContinuity) {
|
||||
frame.Reset();
|
||||
packet.frameType = kVideoFrameDelta;
|
||||
// Use pictureId
|
||||
packet.isFirstPacket = false;
|
||||
packet.is_first_packet_in_frame = false;
|
||||
packet.video_header.codecHeader.VP8.pictureId = 0x0002;
|
||||
EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data));
|
||||
EXPECT_FALSE(dec_state.ContinuousFrame(&frame));
|
||||
@ -260,7 +260,7 @@ TEST(TestDecodingState, MultiLayerBehavior) {
|
||||
// A key frame is always a base layer.
|
||||
frame.Reset();
|
||||
packet.frameType = kVideoFrameKey;
|
||||
packet.isFirstPacket = 1;
|
||||
packet.is_first_packet_in_frame = 1;
|
||||
packet.timestamp = 5;
|
||||
packet.seqNum = 5;
|
||||
packet.video_header.codecHeader.VP8.tl0PicIdx = 2;
|
||||
@ -284,7 +284,7 @@ TEST(TestDecodingState, MultiLayerBehavior) {
|
||||
EXPECT_TRUE(dec_state.full_sync());
|
||||
frame.Reset();
|
||||
packet.frameType = kVideoFrameDelta;
|
||||
packet.isFirstPacket = 1;
|
||||
packet.is_first_packet_in_frame = 1;
|
||||
packet.timestamp = 8;
|
||||
packet.seqNum = 8;
|
||||
packet.video_header.codecHeader.VP8.tl0PicIdx = 4;
|
||||
@ -299,7 +299,7 @@ TEST(TestDecodingState, MultiLayerBehavior) {
|
||||
// Insert a non-ref frame - should update sync value.
|
||||
frame.Reset();
|
||||
packet.frameType = kVideoFrameDelta;
|
||||
packet.isFirstPacket = 1;
|
||||
packet.is_first_packet_in_frame = 1;
|
||||
packet.timestamp = 9;
|
||||
packet.seqNum = 9;
|
||||
packet.video_header.codecHeader.VP8.tl0PicIdx = 4;
|
||||
@ -319,7 +319,7 @@ TEST(TestDecodingState, MultiLayerBehavior) {
|
||||
frame.Reset();
|
||||
dec_state.Reset();
|
||||
packet.frameType = kVideoFrameDelta;
|
||||
packet.isFirstPacket = 1;
|
||||
packet.is_first_packet_in_frame = 1;
|
||||
packet.markerBit = 1;
|
||||
packet.timestamp = 0;
|
||||
packet.seqNum = 0;
|
||||
@ -333,7 +333,7 @@ TEST(TestDecodingState, MultiLayerBehavior) {
|
||||
// Layer 2 - 2 packets (insert one, lose one).
|
||||
frame.Reset();
|
||||
packet.frameType = kVideoFrameDelta;
|
||||
packet.isFirstPacket = 1;
|
||||
packet.is_first_packet_in_frame = 1;
|
||||
packet.markerBit = 0;
|
||||
packet.timestamp = 1;
|
||||
packet.seqNum = 1;
|
||||
@ -346,7 +346,7 @@ TEST(TestDecodingState, MultiLayerBehavior) {
|
||||
// Layer 1
|
||||
frame.Reset();
|
||||
packet.frameType = kVideoFrameDelta;
|
||||
packet.isFirstPacket = 1;
|
||||
packet.is_first_packet_in_frame = 1;
|
||||
packet.markerBit = 1;
|
||||
packet.timestamp = 2;
|
||||
packet.seqNum = 3;
|
||||
@ -450,7 +450,7 @@ TEST(TestDecodingState, FrameContinuityFlexibleModeKeyFrame) {
|
||||
VCMDecodingState dec_state;
|
||||
VCMFrameBuffer frame;
|
||||
VCMPacket packet;
|
||||
packet.isFirstPacket = true;
|
||||
packet.is_first_packet_in_frame = true;
|
||||
packet.timestamp = 1;
|
||||
packet.seqNum = 0xffff;
|
||||
uint8_t data[] = "I need a data pointer for this test!";
|
||||
@ -493,7 +493,7 @@ TEST(TestDecodingState, FrameContinuityFlexibleModeOutOfOrderFrames) {
|
||||
VCMDecodingState dec_state;
|
||||
VCMFrameBuffer frame;
|
||||
VCMPacket packet;
|
||||
packet.isFirstPacket = true;
|
||||
packet.is_first_packet_in_frame = true;
|
||||
packet.timestamp = 1;
|
||||
packet.seqNum = 0xffff;
|
||||
uint8_t data[] = "I need a data pointer for this test!";
|
||||
@ -548,7 +548,7 @@ TEST(TestDecodingState, FrameContinuityFlexibleModeGeneral) {
|
||||
VCMDecodingState dec_state;
|
||||
VCMFrameBuffer frame;
|
||||
VCMPacket packet;
|
||||
packet.isFirstPacket = true;
|
||||
packet.is_first_packet_in_frame = true;
|
||||
packet.timestamp = 1;
|
||||
packet.seqNum = 0xffff;
|
||||
uint8_t data[] = "I need a data pointer for this test!";
|
||||
|
Reference in New Issue
Block a user