Home
last modified time | relevance | path

Searched refs:kFrameLength (Results 1 – 10 of 10) sorted by relevance

/external/libwebm/testing/
Dmkvmuxer_tests.cc58 memset(dummy_data_, 0, kFrameLength); in Init()
62 EXPECT_TRUE(segment_.AddFrame(&dummy_data_[0], kFrameLength, track_number, in AddDummyFrameAndFinalize()
118 std::uint8_t dummy_data_[kFrameLength];
204 EXPECT_TRUE(segment_.AddFrame(dummy_data_, kFrameLength, kVideoTrackNumber, 0, in TEST_F()
208 EXPECT_TRUE(segment_.AddFrame(dummy_data_, kFrameLength, kVideoTrackNumber, in TEST_F()
212 EXPECT_FALSE(segment_.AddFrame(dummy_data_, kFrameLength, kVideoTrackNumber, in TEST_F()
232 frame.Init(dummy_data_, kFrameLength); in TEST_F()
267 EXPECT_TRUE(segment_.AddMetadata(dummy_data_, kFrameLength, in TEST_F()
271 EXPECT_TRUE(segment_.AddMetadata(dummy_data_, kFrameLength, in TEST_F()
275 EXPECT_FALSE(segment_.AddMetadata(dummy_data_, kFrameLength, in TEST_F()
[all …]
Dmkvparser_tests.cc42 memset(dummy_data_, -1, kFrameLength); in ParserTest()
43 memset(gold_frame_, 0, kFrameLength); in ParserTest()
105 EXPECT_EQ(kFrameLength, frame.len); in CompareBlockContents()
106 std::memset(dummy_data_, -1, kFrameLength); in CompareBlockContents()
108 EXPECT_EQ(0, std::memcmp(gold_frame_, dummy_data_, kFrameLength)); in CompareBlockContents()
129 std::uint8_t dummy_data_[kFrameLength];
130 std::uint8_t gold_frame_[kFrameLength];
Dtest_util.h32 const int kFrameLength = 10; variable
/external/webrtc/test/testsupport/
Dyuv_frame_writer_unittest.cc28 const size_t kFrameLength = 3 * kFrameWidth * kFrameHeight / 2; // I420. variable
53 EXPECT_EQ(kFrameLength, frame_writer_->FrameLength()); in TEST_F()
57 uint8_t buffer[kFrameLength]; in TEST_F()
58 memset(buffer, 9, kFrameLength); // Write lots of 9s to the buffer. in TEST_F()
63 EXPECT_EQ(kFrameLength, GetFileSize(temp_filename_)); in TEST_F()
67 uint8_t buffer[kFrameLength]; in TEST_F()
Dy4m_frame_writer_unittest.cc28 const size_t kFrameLength = 3 * kFrameWidth * kFrameHeight / 2; // I420. variable
57 EXPECT_EQ(kFrameLength, frame_writer_->FrameLength()); in TEST_F()
61 uint8_t buffer[kFrameLength]; in TEST_F()
62 memset(buffer, 9, kFrameLength); // Write lots of 9s to the buffer. in TEST_F()
69 EXPECT_EQ(kFileHeader.size() + 2 * kFrameHeader.size() + 2 * kFrameLength, in TEST_F()
74 uint8_t buffer[kFrameLength]; in TEST_F()
Dyuv_frame_reader_unittest.cc32 const size_t kFrameLength = 3 * kFrameWidth * kFrameHeight / 2; // I420. variable
61 EXPECT_EQ(kFrameLength, frame_reader_->FrameLength()); in TEST_F()
Dvideo_frame_writer_unittest.cc33 const size_t kFrameLength = 3 * kFrameWidth * kFrameHeight / 2; // I420. variable
139 EXPECT_EQ(kFileHeaderSize + 2 * kFrameHeaderSize + 2 * kFrameLength, in TEST_F()
165 EXPECT_EQ(2 * kFrameLength, GetFileSize(temp_filename_)); in TEST_F()
Dy4m_frame_reader_unittest.cc35 const size_t kFrameLength = 3 * kFrameWidth * kFrameHeight / 2; // I420. variable
68 EXPECT_EQ(kFrameHeader.size() + kFrameLength, frame_reader_->FrameLength()); in TEST_F()
/external/webrtc/rtc_base/
Dswap_queue_unittest.cc174 const size_t kFrameLength = 160; in TEST() local
175 const size_t kDataLength = kQueueSize * kFrameLength; in TEST()
176 std::vector<int16_t> buffer_reader(kFrameLength, 0); in TEST()
177 std::vector<int16_t> buffer_writer(kFrameLength, 0); in TEST()
179 std::vector<int16_t>(kFrameLength)); in TEST()
188 buffer_writer.insert(buffer_writer.end(), &samples[0] + k * kFrameLength, in TEST()
189 &samples[0] + (k + 1) * kFrameLength); in TEST()
198 EXPECT_EQ(buffer_reader[j], samples[k * kFrameLength + j]); in TEST()
/external/webrtc/modules/audio_coding/codecs/opus/
Daudio_encoder_opus_unittest.cc96 constexpr int kFrameLength = 60; in CreateEncoderRuntimeConfig() local
101 config.frame_length_ms = kFrameLength; in CreateEncoderRuntimeConfig()