Home
last modified time | relevance | path

Searched refs:TimeDeltaFromRational (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/media/mp4/
Dtrack_run_iterator_unittest.cc175 EXPECT_EQ(iter_->dts(), TimeDeltaFromRational(0, kAudioScale)); in TEST_F()
176 EXPECT_EQ(iter_->cts(), TimeDeltaFromRational(0, kAudioScale)); in TEST_F()
177 EXPECT_EQ(iter_->duration(), TimeDeltaFromRational(1024, kAudioScale)); in TEST_F()
185 EXPECT_EQ(iter_->dts(), TimeDeltaFromRational(1024 * 9, kAudioScale)); in TEST_F()
186 EXPECT_EQ(iter_->duration(), TimeDeltaFromRational(1024, kAudioScale)); in TEST_F()
201 EXPECT_EQ(iter_->dts(), TimeDeltaFromRational(base_dts, kVideoScale)); in TEST_F()
202 EXPECT_EQ(iter_->duration(), TimeDeltaFromRational(10, kVideoScale)); in TEST_F()
208 EXPECT_EQ(iter_->dts(), TimeDeltaFromRational(1024 * 10, kAudioScale)); in TEST_F()
233 EXPECT_EQ(iter_->duration(), TimeDeltaFromRational(50, kAudioScale)); in TEST_F()
234 EXPECT_EQ(iter_->dts(), TimeDeltaFromRational(50, kAudioScale)); in TEST_F()
[all …]
Dtrack_run_iterator.cc59 TimeDelta TimeDeltaFromRational(int64 numer, int64 denom) { in TimeDeltaFromRational() function
410 return TimeDeltaFromRational(sample_dts_, run_itr_->timescale); in dts()
415 return TimeDeltaFromRational(sample_dts_ + sample_itr_->cts_offset, in cts()
421 return TimeDeltaFromRational(sample_itr_->duration, run_itr_->timescale); in duration()
Dtrack_run_iterator.h24 base::TimeDelta MEDIA_EXPORT TimeDeltaFromRational(int64 numer, int64 denom);
Dmp4_stream_parser.cc299 duration = TimeDeltaFromRational(moov_->extends.header.fragment_duration, in ParseMoov()
303 duration = TimeDeltaFromRational(moov_->header.duration, in ParseMoov()