Home
last modified time | relevance | path

Searched refs:anchorMediaTime (Results 1 - 5 of 5) sorted by relevance

/foundation/multimedia/av_codec/services/media_engine/modules/sink/
H A Dmedia_sync_manager.cpp365 int64_t anchorMediaTime, float playRate) in SimpleGetMediaTime()
371 || anchorMediaTime == HST_TIME_NONE || delayTime== HST_TIME_NONE) { in SimpleGetMediaTime()
374 return anchorMediaTime; in SimpleGetMediaTime()
378 int64_t anchorMediaTime, float playRate) in SimpleGetMediaTimeExactly()
384 || anchorMediaTime == HST_TIME_NONE || delayTime== HST_TIME_NONE) { in SimpleGetMediaTimeExactly()
387 return anchorMediaTime + (nowClockTime - anchorClockTime + delayTime) * static_cast<double>(playRate) - delayTime; in SimpleGetMediaTimeExactly()
479 int64_t anchorMediaTime, float playRate) in SimpleGetClockTime()
484 if (anchorClockTime == HST_TIME_NONE || nowMediaTime == HST_TIME_NONE || anchorMediaTime == HST_TIME_NONE) { in SimpleGetClockTime()
487 return anchorClockTime + (nowMediaTime - anchorMediaTime) / static_cast<double>(playRate); in SimpleGetClockTime()
364 SimpleGetMediaTime(int64_t anchorClockTime, int64_t delayTime, int64_t nowClockTime, int64_t anchorMediaTime, float playRate) SimpleGetMediaTime() argument
377 SimpleGetMediaTimeExactly(int64_t anchorClockTime, int64_t delayTime, int64_t nowClockTime, int64_t anchorMediaTime, float playRate) SimpleGetMediaTimeExactly() argument
478 SimpleGetClockTime(int64_t anchorClockTime, int64_t nowMediaTime, int64_t anchorMediaTime, float playRate) SimpleGetClockTime() argument
/foundation/multimedia/av_codec/test/unittest/media_sink_test/
H A Dsync_manager_test.cpp425 int64_t anchorMediaTime = 200; in HWTEST_F() local
428 syncManager_->SimpleGetMediaTime(anchorClockTime, delayTime, nowClockTime, anchorMediaTime, playRate); in HWTEST_F()
438 int64_t anchorMediaTime = 200; in HWTEST_F() local
441 syncManager_->SimpleGetMediaTime(anchorClockTime, delayTime, nowClockTime, anchorMediaTime, playRate); in HWTEST_F()
445 // Scenario3: Test when all parameters are valid then return anchorMediaTime.
451 int64_t anchorMediaTime = 200; in HWTEST_F() local
454 syncManager_->SimpleGetMediaTime(anchorClockTime, delayTime, nowClockTime, anchorMediaTime, playRate); in HWTEST_F()
455 ASSERT_EQ(result, anchorMediaTime); in HWTEST_F()
730 int64_t anchorMediaTime = 150; in HWTEST_F() local
732 int64_t result = mediaSyncManager.SimpleGetClockTime(anchorClockTime, nowMediaTime, anchorMediaTime, playRat in HWTEST_F()
742 int64_t anchorMediaTime = 150; HWTEST_F() local
754 int64_t anchorMediaTime = 150; HWTEST_F() local
[all...]
/foundation/multimedia/av_codec/interfaces/inner_api/native/
H A Dmedia_sync_manager.h118 int64_t anchorMediaTime, float playRate);
120 int64_t anchorMediaTime, float playRate);
121 static int64_t SimpleGetClockTime(int64_t anchorClockTime, int64_t nowMediaTime, int64_t anchorMediaTime,
/foundation/multimedia/media_foundation/engine/pipeline/core/
H A Dmedia_sync_manager.cpp301 int64_t MediaSyncManager::SimpleGetMediaTime(int64_t anchorClockTime, int64_t nowClockTime, int64_t anchorMediaTime, in SimpleGetMediaTime() argument
307 if (anchorClockTime == HST_TIME_NONE || nowClockTime == HST_TIME_NONE || anchorMediaTime == HST_TIME_NONE) { in SimpleGetMediaTime()
310 return anchorMediaTime + (nowClockTime - anchorClockTime) * static_cast<double>(playRate); in SimpleGetMediaTime()
339 int64_t MediaSyncManager::SimpleGetClockTime(int64_t anchorClockTime, int64_t nowMediaTime, int64_t anchorMediaTime, in SimpleGetClockTime() argument
345 if (anchorClockTime == HST_TIME_NONE || nowMediaTime == HST_TIME_NONE || anchorMediaTime == HST_TIME_NONE) { in SimpleGetClockTime()
348 return anchorClockTime + (nowMediaTime - anchorMediaTime) / static_cast<double>(playRate); in SimpleGetClockTime()
/foundation/multimedia/media_foundation/engine/include/pipeline/core/
H A Dmedia_sync_manager.h94 static int64_t SimpleGetMediaTime(int64_t anchorClockTime, int64_t nowClockTime, int64_t anchorMediaTime,
96 static int64_t SimpleGetClockTime(int64_t anchorClockTime, int64_t nowMediaTime, int64_t anchorMediaTime,

Completed in 4 milliseconds