OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 EXPECT_TRUE(dec_state.in_initial_state()); | 25 EXPECT_TRUE(dec_state.in_initial_state()); |
26 EXPECT_TRUE(dec_state.full_sync()); | 26 EXPECT_TRUE(dec_state.full_sync()); |
27 } | 27 } |
28 | 28 |
29 TEST(TestDecodingState, FrameContinuity) { | 29 TEST(TestDecodingState, FrameContinuity) { |
30 VCMDecodingState dec_state; | 30 VCMDecodingState dec_state; |
31 // Check that makes decision based on correct method. | 31 // Check that makes decision based on correct method. |
32 VCMFrameBuffer frame; | 32 VCMFrameBuffer frame; |
33 VCMFrameBuffer frame_key; | 33 VCMFrameBuffer frame_key; |
34 VCMPacket packet; | 34 VCMPacket packet; |
35 packet.isFirstPacket = true; | 35 packet.is_first_packet_in_frame = true; |
36 packet.timestamp = 1; | 36 packet.timestamp = 1; |
37 packet.seqNum = 0xffff; | 37 packet.seqNum = 0xffff; |
38 packet.frameType = kVideoFrameDelta; | 38 packet.frameType = kVideoFrameDelta; |
39 packet.video_header.codec = kRtpVideoVp8; | 39 packet.video_header.codec = kRtpVideoVp8; |
40 packet.video_header.codecHeader.VP8.pictureId = 0x007F; | 40 packet.video_header.codecHeader.VP8.pictureId = 0x007F; |
41 FrameData frame_data; | 41 FrameData frame_data; |
42 frame_data.rtt_ms = 0; | 42 frame_data.rtt_ms = 0; |
43 frame_data.rolling_average_packets_per_frame = -1; | 43 frame_data.rolling_average_packets_per_frame = -1; |
44 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 44 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
45 // Always start with a key frame. | 45 // Always start with a key frame. |
46 dec_state.Reset(); | 46 dec_state.Reset(); |
47 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); | 47 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); |
48 packet.frameType = kVideoFrameKey; | 48 packet.frameType = kVideoFrameKey; |
49 EXPECT_LE(0, frame_key.InsertPacket(packet, 0, kNoErrors, frame_data)); | 49 EXPECT_LE(0, frame_key.InsertPacket(packet, 0, kNoErrors, frame_data)); |
50 EXPECT_TRUE(dec_state.ContinuousFrame(&frame_key)); | 50 EXPECT_TRUE(dec_state.ContinuousFrame(&frame_key)); |
51 dec_state.SetState(&frame); | 51 dec_state.SetState(&frame); |
52 frame.Reset(); | 52 frame.Reset(); |
53 packet.frameType = kVideoFrameDelta; | 53 packet.frameType = kVideoFrameDelta; |
54 // Use pictureId | 54 // Use pictureId |
55 packet.isFirstPacket = false; | 55 packet.is_first_packet_in_frame = false; |
56 packet.video_header.codecHeader.VP8.pictureId = 0x0002; | 56 packet.video_header.codecHeader.VP8.pictureId = 0x0002; |
57 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 57 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
58 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); | 58 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); |
59 frame.Reset(); | 59 frame.Reset(); |
60 packet.video_header.codecHeader.VP8.pictureId = 0; | 60 packet.video_header.codecHeader.VP8.pictureId = 0; |
61 packet.seqNum = 10; | 61 packet.seqNum = 10; |
62 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 62 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
63 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); | 63 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); |
64 | 64 |
65 // Use sequence numbers. | 65 // Use sequence numbers. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 packet.video_header.codecHeader.VP8.temporalIdx = 0; | 253 packet.video_header.codecHeader.VP8.temporalIdx = 0; |
254 packet.video_header.codecHeader.VP8.pictureId = 4; | 254 packet.video_header.codecHeader.VP8.pictureId = 4; |
255 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 255 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
256 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); | 256 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); |
257 dec_state.SetState(&frame); | 257 dec_state.SetState(&frame); |
258 EXPECT_FALSE(dec_state.full_sync()); | 258 EXPECT_FALSE(dec_state.full_sync()); |
259 // Insert key frame - should update sync value. | 259 // Insert key frame - should update sync value. |
260 // A key frame is always a base layer. | 260 // A key frame is always a base layer. |
261 frame.Reset(); | 261 frame.Reset(); |
262 packet.frameType = kVideoFrameKey; | 262 packet.frameType = kVideoFrameKey; |
263 packet.isFirstPacket = 1; | 263 packet.is_first_packet_in_frame = 1; |
264 packet.timestamp = 5; | 264 packet.timestamp = 5; |
265 packet.seqNum = 5; | 265 packet.seqNum = 5; |
266 packet.video_header.codecHeader.VP8.tl0PicIdx = 2; | 266 packet.video_header.codecHeader.VP8.tl0PicIdx = 2; |
267 packet.video_header.codecHeader.VP8.temporalIdx = 0; | 267 packet.video_header.codecHeader.VP8.temporalIdx = 0; |
268 packet.video_header.codecHeader.VP8.pictureId = 5; | 268 packet.video_header.codecHeader.VP8.pictureId = 5; |
269 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 269 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
270 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); | 270 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); |
271 dec_state.SetState(&frame); | 271 dec_state.SetState(&frame); |
272 EXPECT_TRUE(dec_state.full_sync()); | 272 EXPECT_TRUE(dec_state.full_sync()); |
273 // After sync, a continuous PictureId is required | 273 // After sync, a continuous PictureId is required |
274 // (continuous base layer is not enough ) | 274 // (continuous base layer is not enough ) |
275 frame.Reset(); | 275 frame.Reset(); |
276 packet.frameType = kVideoFrameDelta; | 276 packet.frameType = kVideoFrameDelta; |
277 packet.timestamp = 6; | 277 packet.timestamp = 6; |
278 packet.seqNum = 6; | 278 packet.seqNum = 6; |
279 packet.video_header.codecHeader.VP8.tl0PicIdx = 3; | 279 packet.video_header.codecHeader.VP8.tl0PicIdx = 3; |
280 packet.video_header.codecHeader.VP8.temporalIdx = 0; | 280 packet.video_header.codecHeader.VP8.temporalIdx = 0; |
281 packet.video_header.codecHeader.VP8.pictureId = 6; | 281 packet.video_header.codecHeader.VP8.pictureId = 6; |
282 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 282 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
283 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); | 283 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); |
284 EXPECT_TRUE(dec_state.full_sync()); | 284 EXPECT_TRUE(dec_state.full_sync()); |
285 frame.Reset(); | 285 frame.Reset(); |
286 packet.frameType = kVideoFrameDelta; | 286 packet.frameType = kVideoFrameDelta; |
287 packet.isFirstPacket = 1; | 287 packet.is_first_packet_in_frame = 1; |
288 packet.timestamp = 8; | 288 packet.timestamp = 8; |
289 packet.seqNum = 8; | 289 packet.seqNum = 8; |
290 packet.video_header.codecHeader.VP8.tl0PicIdx = 4; | 290 packet.video_header.codecHeader.VP8.tl0PicIdx = 4; |
291 packet.video_header.codecHeader.VP8.temporalIdx = 0; | 291 packet.video_header.codecHeader.VP8.temporalIdx = 0; |
292 packet.video_header.codecHeader.VP8.pictureId = 8; | 292 packet.video_header.codecHeader.VP8.pictureId = 8; |
293 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 293 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
294 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); | 294 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); |
295 EXPECT_TRUE(dec_state.full_sync()); | 295 EXPECT_TRUE(dec_state.full_sync()); |
296 dec_state.SetState(&frame); | 296 dec_state.SetState(&frame); |
297 EXPECT_FALSE(dec_state.full_sync()); | 297 EXPECT_FALSE(dec_state.full_sync()); |
298 | 298 |
299 // Insert a non-ref frame - should update sync value. | 299 // Insert a non-ref frame - should update sync value. |
300 frame.Reset(); | 300 frame.Reset(); |
301 packet.frameType = kVideoFrameDelta; | 301 packet.frameType = kVideoFrameDelta; |
302 packet.isFirstPacket = 1; | 302 packet.is_first_packet_in_frame = 1; |
303 packet.timestamp = 9; | 303 packet.timestamp = 9; |
304 packet.seqNum = 9; | 304 packet.seqNum = 9; |
305 packet.video_header.codecHeader.VP8.tl0PicIdx = 4; | 305 packet.video_header.codecHeader.VP8.tl0PicIdx = 4; |
306 packet.video_header.codecHeader.VP8.temporalIdx = 2; | 306 packet.video_header.codecHeader.VP8.temporalIdx = 2; |
307 packet.video_header.codecHeader.VP8.pictureId = 9; | 307 packet.video_header.codecHeader.VP8.pictureId = 9; |
308 packet.video_header.codecHeader.VP8.layerSync = true; | 308 packet.video_header.codecHeader.VP8.layerSync = true; |
309 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 309 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
310 dec_state.SetState(&frame); | 310 dec_state.SetState(&frame); |
311 EXPECT_TRUE(dec_state.full_sync()); | 311 EXPECT_TRUE(dec_state.full_sync()); |
312 | 312 |
313 // The following test will verify the sync flag behavior after a loss. | 313 // The following test will verify the sync flag behavior after a loss. |
314 // Create the following pattern: | 314 // Create the following pattern: |
315 // Update base layer, lose packet 1 (sync flag on, layer 2), insert packet 3 | 315 // Update base layer, lose packet 1 (sync flag on, layer 2), insert packet 3 |
316 // (sync flag on, layer 2) check continuity and sync flag after inserting | 316 // (sync flag on, layer 2) check continuity and sync flag after inserting |
317 // packet 2 (sync flag on, layer 1). | 317 // packet 2 (sync flag on, layer 1). |
318 // Base layer. | 318 // Base layer. |
319 frame.Reset(); | 319 frame.Reset(); |
320 dec_state.Reset(); | 320 dec_state.Reset(); |
321 packet.frameType = kVideoFrameDelta; | 321 packet.frameType = kVideoFrameDelta; |
322 packet.isFirstPacket = 1; | 322 packet.is_first_packet_in_frame = 1; |
323 packet.markerBit = 1; | 323 packet.markerBit = 1; |
324 packet.timestamp = 0; | 324 packet.timestamp = 0; |
325 packet.seqNum = 0; | 325 packet.seqNum = 0; |
326 packet.video_header.codecHeader.VP8.tl0PicIdx = 0; | 326 packet.video_header.codecHeader.VP8.tl0PicIdx = 0; |
327 packet.video_header.codecHeader.VP8.temporalIdx = 0; | 327 packet.video_header.codecHeader.VP8.temporalIdx = 0; |
328 packet.video_header.codecHeader.VP8.pictureId = 0; | 328 packet.video_header.codecHeader.VP8.pictureId = 0; |
329 packet.video_header.codecHeader.VP8.layerSync = false; | 329 packet.video_header.codecHeader.VP8.layerSync = false; |
330 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 330 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
331 dec_state.SetState(&frame); | 331 dec_state.SetState(&frame); |
332 EXPECT_TRUE(dec_state.full_sync()); | 332 EXPECT_TRUE(dec_state.full_sync()); |
333 // Layer 2 - 2 packets (insert one, lose one). | 333 // Layer 2 - 2 packets (insert one, lose one). |
334 frame.Reset(); | 334 frame.Reset(); |
335 packet.frameType = kVideoFrameDelta; | 335 packet.frameType = kVideoFrameDelta; |
336 packet.isFirstPacket = 1; | 336 packet.is_first_packet_in_frame = 1; |
337 packet.markerBit = 0; | 337 packet.markerBit = 0; |
338 packet.timestamp = 1; | 338 packet.timestamp = 1; |
339 packet.seqNum = 1; | 339 packet.seqNum = 1; |
340 packet.video_header.codecHeader.VP8.tl0PicIdx = 0; | 340 packet.video_header.codecHeader.VP8.tl0PicIdx = 0; |
341 packet.video_header.codecHeader.VP8.temporalIdx = 2; | 341 packet.video_header.codecHeader.VP8.temporalIdx = 2; |
342 packet.video_header.codecHeader.VP8.pictureId = 1; | 342 packet.video_header.codecHeader.VP8.pictureId = 1; |
343 packet.video_header.codecHeader.VP8.layerSync = true; | 343 packet.video_header.codecHeader.VP8.layerSync = true; |
344 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 344 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
345 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); | 345 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); |
346 // Layer 1 | 346 // Layer 1 |
347 frame.Reset(); | 347 frame.Reset(); |
348 packet.frameType = kVideoFrameDelta; | 348 packet.frameType = kVideoFrameDelta; |
349 packet.isFirstPacket = 1; | 349 packet.is_first_packet_in_frame = 1; |
350 packet.markerBit = 1; | 350 packet.markerBit = 1; |
351 packet.timestamp = 2; | 351 packet.timestamp = 2; |
352 packet.seqNum = 3; | 352 packet.seqNum = 3; |
353 packet.video_header.codecHeader.VP8.tl0PicIdx = 0; | 353 packet.video_header.codecHeader.VP8.tl0PicIdx = 0; |
354 packet.video_header.codecHeader.VP8.temporalIdx = 1; | 354 packet.video_header.codecHeader.VP8.temporalIdx = 1; |
355 packet.video_header.codecHeader.VP8.pictureId = 2; | 355 packet.video_header.codecHeader.VP8.pictureId = 2; |
356 packet.video_header.codecHeader.VP8.layerSync = true; | 356 packet.video_header.codecHeader.VP8.layerSync = true; |
357 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 357 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
358 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); | 358 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); |
359 EXPECT_TRUE(dec_state.full_sync()); | 359 EXPECT_TRUE(dec_state.full_sync()); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 packet.video_header.codecHeader.VP8.temporalIdx++; | 443 packet.video_header.codecHeader.VP8.temporalIdx++; |
444 packet.video_header.codecHeader.VP8.tl0PicIdx = 1; | 444 packet.video_header.codecHeader.VP8.tl0PicIdx = 1; |
445 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 445 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
446 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); | 446 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); |
447 } | 447 } |
448 | 448 |
449 TEST(TestDecodingState, FrameContinuityFlexibleModeKeyFrame) { | 449 TEST(TestDecodingState, FrameContinuityFlexibleModeKeyFrame) { |
450 VCMDecodingState dec_state; | 450 VCMDecodingState dec_state; |
451 VCMFrameBuffer frame; | 451 VCMFrameBuffer frame; |
452 VCMPacket packet; | 452 VCMPacket packet; |
453 packet.isFirstPacket = true; | 453 packet.is_first_packet_in_frame = true; |
454 packet.timestamp = 1; | 454 packet.timestamp = 1; |
455 packet.seqNum = 0xffff; | 455 packet.seqNum = 0xffff; |
456 uint8_t data[] = "I need a data pointer for this test!"; | 456 uint8_t data[] = "I need a data pointer for this test!"; |
457 packet.sizeBytes = sizeof(data); | 457 packet.sizeBytes = sizeof(data); |
458 packet.dataPtr = data; | 458 packet.dataPtr = data; |
459 packet.video_header.codec = kRtpVideoVp9; | 459 packet.video_header.codec = kRtpVideoVp9; |
460 | 460 |
461 RTPVideoHeaderVP9& vp9_hdr = packet.video_header.codecHeader.VP9; | 461 RTPVideoHeaderVP9& vp9_hdr = packet.video_header.codecHeader.VP9; |
462 vp9_hdr.picture_id = 10; | 462 vp9_hdr.picture_id = 10; |
463 vp9_hdr.flexible_mode = true; | 463 vp9_hdr.flexible_mode = true; |
(...skipping 22 matching lines...) Expand all Loading... |
486 vp9_hdr.num_ref_pics = 1; | 486 vp9_hdr.num_ref_pics = 1; |
487 vp9_hdr.pid_diff[0] = 1; | 487 vp9_hdr.pid_diff[0] = 1; |
488 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 488 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
489 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); | 489 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); |
490 } | 490 } |
491 | 491 |
492 TEST(TestDecodingState, FrameContinuityFlexibleModeOutOfOrderFrames) { | 492 TEST(TestDecodingState, FrameContinuityFlexibleModeOutOfOrderFrames) { |
493 VCMDecodingState dec_state; | 493 VCMDecodingState dec_state; |
494 VCMFrameBuffer frame; | 494 VCMFrameBuffer frame; |
495 VCMPacket packet; | 495 VCMPacket packet; |
496 packet.isFirstPacket = true; | 496 packet.is_first_packet_in_frame = true; |
497 packet.timestamp = 1; | 497 packet.timestamp = 1; |
498 packet.seqNum = 0xffff; | 498 packet.seqNum = 0xffff; |
499 uint8_t data[] = "I need a data pointer for this test!"; | 499 uint8_t data[] = "I need a data pointer for this test!"; |
500 packet.sizeBytes = sizeof(data); | 500 packet.sizeBytes = sizeof(data); |
501 packet.dataPtr = data; | 501 packet.dataPtr = data; |
502 packet.video_header.codec = kRtpVideoVp9; | 502 packet.video_header.codec = kRtpVideoVp9; |
503 | 503 |
504 RTPVideoHeaderVP9& vp9_hdr = packet.video_header.codecHeader.VP9; | 504 RTPVideoHeaderVP9& vp9_hdr = packet.video_header.codecHeader.VP9; |
505 vp9_hdr.picture_id = 10; | 505 vp9_hdr.picture_id = 10; |
506 vp9_hdr.flexible_mode = true; | 506 vp9_hdr.flexible_mode = true; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 vp9_hdr.pid_diff[1] = 8; | 541 vp9_hdr.pid_diff[1] = 8; |
542 vp9_hdr.pid_diff[2] = 5; | 542 vp9_hdr.pid_diff[2] = 5; |
543 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 543 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
544 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); | 544 EXPECT_TRUE(dec_state.ContinuousFrame(&frame)); |
545 } | 545 } |
546 | 546 |
547 TEST(TestDecodingState, FrameContinuityFlexibleModeGeneral) { | 547 TEST(TestDecodingState, FrameContinuityFlexibleModeGeneral) { |
548 VCMDecodingState dec_state; | 548 VCMDecodingState dec_state; |
549 VCMFrameBuffer frame; | 549 VCMFrameBuffer frame; |
550 VCMPacket packet; | 550 VCMPacket packet; |
551 packet.isFirstPacket = true; | 551 packet.is_first_packet_in_frame = true; |
552 packet.timestamp = 1; | 552 packet.timestamp = 1; |
553 packet.seqNum = 0xffff; | 553 packet.seqNum = 0xffff; |
554 uint8_t data[] = "I need a data pointer for this test!"; | 554 uint8_t data[] = "I need a data pointer for this test!"; |
555 packet.sizeBytes = sizeof(data); | 555 packet.sizeBytes = sizeof(data); |
556 packet.dataPtr = data; | 556 packet.dataPtr = data; |
557 packet.video_header.codec = kRtpVideoVp9; | 557 packet.video_header.codec = kRtpVideoVp9; |
558 | 558 |
559 RTPVideoHeaderVP9& vp9_hdr = packet.video_header.codecHeader.VP9; | 559 RTPVideoHeaderVP9& vp9_hdr = packet.video_header.codecHeader.VP9; |
560 vp9_hdr.picture_id = 10; | 560 vp9_hdr.picture_id = 10; |
561 vp9_hdr.flexible_mode = true; | 561 vp9_hdr.flexible_mode = true; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 // Ref to frame previous to KF, not continuous | 690 // Ref to frame previous to KF, not continuous |
691 frame.Reset(); | 691 frame.Reset(); |
692 vp9_hdr.picture_id = 30; | 692 vp9_hdr.picture_id = 30; |
693 vp9_hdr.num_ref_pics = 1; | 693 vp9_hdr.num_ref_pics = 1; |
694 vp9_hdr.pid_diff[0] = 30; | 694 vp9_hdr.pid_diff[0] = 30; |
695 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 695 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
696 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); | 696 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); |
697 } | 697 } |
698 | 698 |
699 } // namespace webrtc | 699 } // namespace webrtc |
OLD | NEW |