• Home
  • Raw
  • Download

Lines Matching full:pid

259   uint16_t pid = Rand();  in TEST_F()  local
263 InsertFrame(pid, 0, ts, false, true, kFrameSize); in TEST_F()
265 CheckFrame(0, pid, 0); in TEST_F()
269 uint16_t pid = Rand(); in TEST_F() local
272 InsertFrame(pid, 0, ts, false, false, kFrameSize); in TEST_F()
273 InsertFrame(pid, 1, ts, true, true, kFrameSize); in TEST_F()
276 CheckFrame(0, pid, 1); in TEST_F()
295 uint16_t pid = Rand(); in TEST_F() local
299 InsertFrame(pid, 1, ts, true, true, kFrameSize); in TEST_F()
300 InsertFrame(pid, 0, ts, false, false, kFrameSize); in TEST_F()
303 CheckFrame(0, pid, 0); in TEST_F()
304 CheckFrame(1, pid, 1); in TEST_F()
308 uint16_t pid = Rand(); in TEST_F() local
311 InsertFrame(pid, 0, ts, false, true, kFrameSize); in TEST_F()
313 CheckFrame(0, pid, 0); in TEST_F()
316 InsertFrame(pid + i + 1, 0, ts + (i + 1) * kFps10, false, true, kFrameSize, in TEST_F()
317 pid + i); in TEST_F()
319 InsertFrame(pid + i, 0, ts + i * kFps10, false, true, kFrameSize, in TEST_F()
320 pid + i - 1); in TEST_F()
323 CheckFrame(i, pid + i, 0); in TEST_F()
324 CheckFrame(i + 1, pid + i + 1, 0); in TEST_F()
334 uint16_t pid = Rand(); in TEST_F() local
337 InsertFrame(pid, 0, ts, false, true, kFrameSize); in TEST_F()
338 InsertFrame(pid + 2, 0, ts, false, true, kFrameSize, pid); in TEST_F()
339 InsertFrame(pid + 3, 0, ts, false, true, kFrameSize, pid + 1, pid + 2); in TEST_F()
344 CheckFrame(0, pid, 0); in TEST_F()
345 CheckFrame(1, pid + 2, 0); in TEST_F()
350 uint16_t pid = Rand(); in TEST_F() local
353 InsertFrame(pid, 0, ts, false, true, kFrameSize); in TEST_F()
355 CheckFrame(0, pid, 0); in TEST_F()
357 InsertFrame(pid + i, 0, ts + i * kFps10, false, true, kFrameSize, in TEST_F()
358 pid + i - 1); in TEST_F()
361 CheckFrame(i, pid + i, 0); in TEST_F()
366 uint16_t pid = Rand(); in TEST_F() local
369 InsertFrame(pid, 0, ts, false, true, kFrameSize); in TEST_F()
370 InsertFrame(pid + 1, 0, ts + kFps20, false, true, kFrameSize, pid); in TEST_F()
373 InsertFrame(pid + i, 0, ts_tl0, false, true, kFrameSize, pid + i - 2); in TEST_F()
374 InsertFrame(pid + i + 1, 0, ts_tl0 + kFps20, false, true, kFrameSize, in TEST_F()
375 pid + i, pid + i - 1); in TEST_F()
385 CheckFrame(0, pid, 0); in TEST_F()
386 CheckFrame(1, pid + 1, 0); in TEST_F()
387 CheckFrame(2, pid + 2, 0); in TEST_F()
388 CheckFrame(3, pid + 4, 0); in TEST_F()
389 CheckFrame(4, pid + 6, 0); in TEST_F()
390 CheckFrame(5, pid + 8, 0); in TEST_F()
398 uint16_t pid = Rand(); in TEST_F() local
401 InsertFrame(pid, 0, ts, false, true, kFrameSize); in TEST_F()
402 InsertFrame(pid + 1, 0, ts + 1 * kFps10, false, true, kFrameSize, pid); in TEST_F()
403 InsertFrame(pid + 2, 0, ts + 2 * kFps10, false, true, kFrameSize, pid + 1); in TEST_F()
404 InsertFrame(pid + 3, 0, ts + 3 * kFps10, false, true, kFrameSize); in TEST_F()
413 CheckFrame(0, pid + 0, 0); in TEST_F()
414 CheckFrame(1, pid + 3, 0); in TEST_F()
418 uint16_t pid = Rand(); in TEST_F() local
421 InsertFrame(pid, 0, ts, false, true, kFrameSize); in TEST_F()
423 InsertFrame(pid + i, 0, ts + i * kFps10, false, true, kFrameSize, in TEST_F()
424 pid + i - 1); in TEST_F()
433 uint16_t pid = Rand(); in TEST_F() local
436 InsertFrame(pid, 0, ts, false, true, kFrameSize); in TEST_F()
438 InsertFrame(pid + 2, 0, ts, false, true, kFrameSize); in TEST_F()
440 InsertFrame(pid + 1, 0, ts, false, true, kFrameSize, pid); in TEST_F()
443 CheckFrame(0, pid, 0); in TEST_F()
444 CheckFrame(1, pid + 2, 0); in TEST_F()
449 uint16_t pid = Rand(); in TEST_F() local
456 InsertNackedFrame(pid, ts); in TEST_F()
457 InsertNackedFrame(pid + 1, ts + 100); in TEST_F()
458 InsertNackedFrame(pid + 2, ts + 200); in TEST_F()
459 InsertFrame(pid + 3, 0, ts + 300, false, true, kFrameSize); in TEST_F()
469 uint16_t pid = Rand(); in TEST_F() local
477 InsertNackedFrame(pid, ts); in TEST_F()
478 InsertNackedFrame(pid + 1, ts + 100); in TEST_F()
479 InsertNackedFrame(pid + 2, ts + 200); in TEST_F()
480 InsertFrame(pid + 3, 0, ts + 300, false, true, kFrameSize); in TEST_F()
491 uint16_t pid = Rand(); in TEST_F() local
494 EXPECT_EQ(-1, InsertFrame(pid + 1, 0, ts, false, true, kFrameSize, pid)); in TEST_F()
498 uint16_t pid = Rand(); in TEST_F() local
501 EXPECT_EQ(pid, InsertFrame(pid, 0, ts, false, true, kFrameSize)); in TEST_F()
502 EXPECT_EQ(pid, InsertFrame(pid + 2, 0, ts, false, true, kFrameSize, pid + 1)); in TEST_F()
503 EXPECT_EQ(pid + 2, InsertFrame(pid + 1, 0, ts, false, true, kFrameSize, pid)); in TEST_F()
504 EXPECT_EQ(pid + 2, in TEST_F()
505 InsertFrame(pid + 4, 0, ts, false, true, kFrameSize, pid + 3)); in TEST_F()
506 EXPECT_EQ(pid + 5, InsertFrame(pid + 5, 0, ts, false, true, kFrameSize)); in TEST_F()
510 uint16_t pid = Rand(); in TEST_F() local
513 EXPECT_EQ(pid, InsertFrame(pid, 0, ts, false, false, kFrameSize)); in TEST_F()
514 EXPECT_EQ(pid, InsertFrame(pid, 1, ts, true, true, kFrameSize)); in TEST_F()
515 EXPECT_EQ(pid, InsertFrame(pid + 1, 1, ts, true, true, kFrameSize, pid)); in TEST_F()
516 EXPECT_EQ(pid, in TEST_F()
517 InsertFrame(pid + 2, 0, ts, false, false, kFrameSize, pid + 1)); in TEST_F()
518 EXPECT_EQ(pid, InsertFrame(pid + 2, 1, ts, true, true, kFrameSize, pid + 1)); in TEST_F()
519 EXPECT_EQ(pid, in TEST_F()
520 InsertFrame(pid + 3, 0, ts, false, false, kFrameSize, pid + 2)); in TEST_F()
521 EXPECT_EQ(pid + 3, in TEST_F()
522 InsertFrame(pid + 1, 0, ts, false, false, kFrameSize, pid)); in TEST_F()
523 EXPECT_EQ(pid + 3, in TEST_F()
524 InsertFrame(pid + 3, 1, ts, true, true, kFrameSize, pid + 2)); in TEST_F()
528 uint16_t pid = Rand(); in TEST_F() local
531 EXPECT_EQ(pid, InsertFrame(pid, 0, ts, false, true, kFrameSize)); in TEST_F()
532 EXPECT_EQ(pid + 1, in TEST_F()
533 InsertFrame(pid + 1, 0, ts + 1, false, true, kFrameSize, pid)); in TEST_F()
535 CheckFrame(0, pid, 0); in TEST_F()
537 // Jump back in pid but increase ts. in TEST_F()
538 EXPECT_EQ(pid - 1, InsertFrame(pid - 1, 0, ts + 2, false, true, kFrameSize)); in TEST_F()
541 CheckFrame(1, pid - 1, 0); in TEST_F()
546 uint16_t pid = Rand(); in TEST_F() local
557 frame->id.picture_id = pid; in TEST_F()
563 EXPECT_EQ(buffer_->InsertFrame(std::move(frame)), pid); in TEST_F()
567 CheckFrame(0, pid, 0); in TEST_F()
660 uint16_t pid = Rand(); in TEST_F() local
663 InsertFrame(pid, 0, ts, false, false, kFrameSize); in TEST_F()
664 InsertFrame(pid, 1, ts, true, true, 2 * kFrameSize); in TEST_F()
667 CheckFrame(0, pid, 1); in TEST_F()
678 uint16_t pid = Rand(); in TEST_F() local
681 InsertFrame(pid, 0, ts, false, false, kFrameSize); in TEST_F()
682 InsertFrame(pid, 1, ts, true, true, kFrameSize); in TEST_F()
685 CheckFrame(0, pid, 1); in TEST_F()
687 InsertFrame(pid + 1, 1, ts + kFps20, false, true, kFrameSize, pid); in TEST_F()
688 InsertFrame(pid + 2, 0, ts + kFps10, false, false, kFrameSize, pid); in TEST_F()
689 InsertFrame(pid + 2, 1, ts + kFps10, true, true, kFrameSize, pid + 1); in TEST_F()
692 // Frame pid+1 is decodable but too late. in TEST_F()
693 // In superframe pid+2 frame sid=0 is decodable, but frame sid=1 is not. in TEST_F()
694 // Incorrect implementation might skip pid+1 frame and output undecodable in TEST_F()
695 // pid+2 instead. in TEST_F()
698 CheckFrame(1, pid + 1, 1); in TEST_F()
699 CheckFrame(2, pid + 2, 1); in TEST_F()