Revert "latency test"

This reverts commit 021823bcba.
This commit is contained in:
Maxim Devaev
2022-07-13 15:28:52 +03:00
parent 021823bcba
commit ad79bd0957
3 changed files with 1 additions and 14 deletions

View File

@@ -50,9 +50,8 @@ frame_s *memsink_fd_get_frame(int fd, memsink_shared_s *mem, uint64_t *frame_id)
frame_s *frame = frame_init();
frame_set_data(frame, mem->data, mem->used);
FRAME_COPY_META(mem, frame);
frame->extra1_ts = get_now_monotonic();
*frame_id = mem->id;
mem->last_client_ts = frame->extra1_ts;
mem->last_client_ts = get_now_monotonic();
bool ok = true;
if (frame->format != V4L2_PIX_FMT_H264) {

View File

@@ -110,17 +110,9 @@ static void *_video_rtp_thread(UNUSED void *arg) {
while (!STOP) {
frame_s *frame;
if (queue_get(_g_video_queue, (void **)&frame, 0.1) == 0) {
frame->extra2_ts = get_now_monotonic();
LOCK_VIDEO;
rtpv_wrap(_g_rtpv, frame);
UNLOCK_VIDEO;
frame->extra3_ts = get_now_monotonic();
JLOG_INFO("video",
"grab_ts=%Lf, encode_begin_ts=%Lf, encode_end_ts=%Lf,"
" memsink_ts=%Lf, rtp_begin_ts=%Lf, rtp_end_ts=%Lf, latency=%Lf",
frame->grab_ts, frame->encode_begin_ts, frame->encode_end_ts,
frame->extra1_ts, frame->extra2_ts, frame->extra3_ts,
(frame->extra3_ts - frame->encode_begin_ts));
frame_destroy(frame);
}
}