Home
last modified time | relevance | path

Searched refs:waitTimeUs (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/performance/
H A Daudio-video-synchronization.md111 - waitTimeUs : 视频帧相对于音频帧延迟时间。
125 int64_t waitTimeUs = videoPlayedTime - audioPlayedTime;
136 if (waitTimeUs < WAIT_TIME_US_THRESHOLD_WARNING) {
141 AVCODEC_SAMPLE_LOGE("VD buffer is too early waitTimeUs: %{public}ld", waitTimeUs);
142 // [0, ), render it with waitTimeUs, max 1s
144 if (waitTimeUs > WAIT_TIME_US_THRESHOLD) {
145 waitTimeUs = WAIT_TIME_US_THRESHOLD;
149 waitTimeUs = sampleInfo.frameInterval + PER_SINK_TIME_THRESHOLD;
150 …VCODEC_SAMPLE_LOGE("VD buffer is too early and reduced 33ms, waitTimeUs: %{public}ld", waitTimeUs);
158 if (waitTimeUs > 0) {
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/sink/
H A Dvideo_sink.cpp164 int64_t waitTimeUs = 0; in CheckBufferLatenessMayWait() local
191 waitTimeUs = 0 - diff; in CheckBufferLatenessMayWait()
192 MEDIA_LOG_I_FALSE_D((waitTimeUs >= WAIT_TIME_US_THRESHOLD_WARNING), in CheckBufferLatenessMayWait()
193 "buffer is too early waitTimeUs: " PUBLIC_LOG_D64, waitTimeUs); in CheckBufferLatenessMayWait()
194 if (waitTimeUs > WAIT_TIME_US_THRESHOLD) { in CheckBufferLatenessMayWait()
195 waitTimeUs = WAIT_TIME_US_THRESHOLD; in CheckBufferLatenessMayWait()
203 return dropFlag ? -1 : waitTimeUs; in CheckBufferLatenessMayWait()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/client/src/
H A Drenderer_in_client.cpp1670 uint32_t waitTimeUs = bufferSize * 10e6 / (samplingRate * channels * samplePerFrame); in WriteInner() local
1671 AUDIO_ERR_LOG("server is died! wait %{public}d us", waitTimeUs); in WriteInner()
1672 usleep(waitTimeUs); in WriteInner()