Lines Matching refs:kKeyFrame
111 enum IsKeyFrame { kKeyFrame, kDeltaFrame }; enumerator
125 packet->video_header.frame_type = keyframe == kKeyFrame
144 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kLast).packets, SizeIs(1)); in TEST_F()
149 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kLast).packets, SizeIs(1)); in TEST_F()
150 EXPECT_THAT(Insert(seq_num + 1, kKeyFrame, kFirst, kLast).packets, SizeIs(1)); in TEST_F()
151 EXPECT_THAT(Insert(seq_num + 2, kKeyFrame, kFirst, kLast).packets, SizeIs(1)); in TEST_F()
152 EXPECT_THAT(Insert(seq_num + 3, kKeyFrame, kFirst, kLast).packets, SizeIs(1)); in TEST_F()
157 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kNotLast).packets, IsEmpty()); in TEST_F()
158 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kNotLast).packets, IsEmpty()); in TEST_F()
159 EXPECT_THAT(Insert(seq_num + 1, kKeyFrame, kNotFirst, kLast).packets, in TEST_F()
164 Insert(0xFFFF, kKeyFrame, kFirst, kNotLast); in TEST_F()
165 EXPECT_THAT(Insert(0x0, kKeyFrame, kNotFirst, kLast), in TEST_F()
170 EXPECT_THAT(Insert(0xFFFF, kKeyFrame, kFirst, kLast), in TEST_F()
172 EXPECT_THAT(Insert(0x0, kKeyFrame, kFirst, kLast), StartSeqNumsAre(0x0)); in TEST_F()
176 EXPECT_THAT(Insert(100, kKeyFrame, kFirst, kNotLast).packets, IsEmpty()); in TEST_F()
178 EXPECT_THAT(Insert(101, kKeyFrame, kNotFirst, kLast).packets, SizeIs(2)); in TEST_F()
180 EXPECT_THAT(Insert(100, kKeyFrame, kFirst, kNotLast).packets, IsEmpty()); in TEST_F()
181 EXPECT_THAT(Insert(100, kKeyFrame, kFirst, kNotLast).packets, IsEmpty()); in TEST_F()
196 Insert(seq_num, kKeyFrame, kFirst, kNotLast, data1); in TEST_F()
197 Insert(seq_num + 1, kKeyFrame, kNotFirst, kNotLast, data2); in TEST_F()
198 Insert(seq_num + 2, kKeyFrame, kNotFirst, kNotLast, data3); in TEST_F()
200 Insert(seq_num + 3, kKeyFrame, kNotFirst, kLast, data4).packets; in TEST_F()
209 Insert(seq_num, kKeyFrame, kFirst, kNotLast); in TEST_F()
212 Insert(seq_num + i, kKeyFrame, kNotFirst, kNotLast).buffer_cleared); in TEST_F()
217 Insert(seq_num + kStartSize, kKeyFrame, kNotFirst, kLast).buffer_cleared); in TEST_F()
223 Insert(seq_num, kKeyFrame, kFirst, kNotLast); in TEST_F()
225 Insert(seq_num + i, kKeyFrame, kNotFirst, kNotLast); in TEST_F()
226 EXPECT_THAT(Insert(seq_num + kStartSize, kKeyFrame, kNotFirst, kLast), in TEST_F()
233 EXPECT_FALSE(Insert(seq_num, kKeyFrame, kFirst, kNotLast).buffer_cleared); in TEST_F()
236 Insert(seq_num + i, kKeyFrame, kNotFirst, kNotLast).buffer_cleared); in TEST_F()
241 Insert(seq_num + kMaxSize, kKeyFrame, kNotFirst, kLast).buffer_cleared); in TEST_F()
246 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kLast), in TEST_F()
253 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kLast), in TEST_F()
255 EXPECT_THAT(Insert(seq_num + 1, kKeyFrame, kFirst, kLast), in TEST_F()
262 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kNotLast).packets, IsEmpty()); in TEST_F()
263 EXPECT_THAT(Insert(seq_num + 1, kKeyFrame, kNotFirst, kLast), in TEST_F()
270 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kNotLast).packets, IsEmpty()); in TEST_F()
271 EXPECT_THAT(Insert(seq_num + 2, kKeyFrame, kNotFirst, kLast).packets, in TEST_F()
273 EXPECT_THAT(Insert(seq_num + 1, kKeyFrame, kNotFirst, kNotLast), in TEST_F()
280 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kLast), in TEST_F()
312 EXPECT_THAT(Insert(0, kKeyFrame, kFirst, kLast), StartSeqNumsAre(0)); in TEST_F()
314 EXPECT_THAT(Insert(2 * kStartSize, kKeyFrame, kFirst, kLast), in TEST_F()
316 EXPECT_THAT(Insert(3 * kStartSize + 1, kKeyFrame, kFirst, kNotLast).packets, in TEST_F()
319 EXPECT_THAT(Insert(3 * kStartSize + 2, kKeyFrame, kNotFirst, kLast), in TEST_F()
350 EXPECT_THAT(Insert(seq_num, kKeyFrame, kFirst, kLast), in TEST_F()
367 Insert(seq_num++, kKeyFrame, kFirst, kNotLast, {}, timestamp); in TEST_F()
369 Insert(seq_num++, kKeyFrame, kNotFirst, kNotLast, {}, timestamp); in TEST_F()
371 Insert(seq_num++, kKeyFrame, kNotFirst, kLast, {}, timestamp); in TEST_F()
376 Insert(seq_num++, kKeyFrame, kFirst, kNotLast, {}, timestamp); in TEST_F()
378 Insert(seq_num++, kKeyFrame, kNotFirst, kNotLast, {}, timestamp); in TEST_F()
381 Insert(seq_num++, kKeyFrame, kNotFirst, kLast, {}, timestamp).packets; in TEST_F()
414 if (keyframe == kKeyFrame) {
482 InsertH264(0, kKeyFrame, kFirst, kLast, 0); in TEST_P()
499 InsertH264(0, kKeyFrame, kFirst, kNotLast, 1, data_arr[0]); in TEST_P()
501 InsertH264(i, kKeyFrame, kNotFirst, kNotLast, 1, data_arr[i]); in TEST_P()
504 auto packets = InsertH264(kStartSize - 1, kKeyFrame, kNotFirst, kLast, 1, in TEST_P()
543 auto packets = InsertH264(seq_num, kKeyFrame, kFirst, kLast, timestamp, data, in TEST_P()
559 auto packets = InsertH264KeyFrameWithAud(seq_num, kKeyFrame, kFirst, kLast, in TEST_P()
571 Insert(seq_num, kKeyFrame, kFirst, kNotLast); in TEST_F()
577 Insert(seq_num + 3, kKeyFrame, kFirst, kNotLast); in TEST_F()
580 EXPECT_THAT(Insert(seq_num + kMaxSize + 2, kKeyFrame, kNotFirst, kLast), in TEST_F()
587 Insert(seq_num, kKeyFrame, kFirst, kNotLast); in TEST_F()
594 Insert(seq_num + kStartSize, kKeyFrame, kFirst, kNotLast); in TEST_F()
602 Insert(9024, kKeyFrame, kFirst, kLast); in TEST_F()
609 Insert(0, kKeyFrame, kFirst, kNotLast, {}, 1000); in TEST_F()
610 EXPECT_THAT(Insert(1, kKeyFrame, kNotFirst, kLast, {}, 1001).packets, in TEST_F()
615 Insert(2, kKeyFrame, kNotFirst, kNotLast); in TEST_F()
616 Insert(1, kKeyFrame, kFirst, kLast); in TEST_F()
617 EXPECT_THAT(Insert(3, kKeyFrame, kNotFirst, kLast).packets, IsEmpty()); in TEST_F()
630 Insert(100, kKeyFrame, kFirst, kLast, {}, /*timestamp=*/1000); in TEST_F()
658 Insert(/*seq_num=*/100, kKeyFrame, kFirst, kNotLast, {}, /*timestamp=*/1000); in TEST_F()
734 InsertH264(0, kKeyFrame, kFirst, kNotLast, 1000); in TEST_P()
736 InsertH264(i, kKeyFrame, kNotFirst, kNotLast, 1000); in TEST_P()
737 EXPECT_THAT(InsertH264(kStartSize - 1, kKeyFrame, kNotFirst, kLast, 1000), in TEST_P()
742 EXPECT_THAT(InsertH264(kStartSize - 2, kKeyFrame, kFirst, kLast, 0).packets, in TEST_P()
753 EXPECT_THAT(InsertH264(kStartSize - 1, kKeyFrame, kFirst, kLast, 1000), in TEST_P()
758 InsertH264(65534, kKeyFrame, kFirst, kNotLast, 1000); in TEST_P()
759 EXPECT_THAT(InsertH264(65535, kKeyFrame, kNotFirst, kLast, 1000), in TEST_P()
764 InsertH264(0, kKeyFrame, kFirst, kLast, 1000); in TEST_P()
765 InsertH264(2, kKeyFrame, kFirst, kLast, 3000); in TEST_P()
769 EXPECT_THAT(InsertH264(kStartSize + 1, kKeyFrame, kFirst, kLast, 18000), in TEST_P()
774 EXPECT_THAT(InsertH264(0, kKeyFrame, kFirst, kLast, 1000), in TEST_P()