From f0cf561ad396c640c5a8a647d7605ecdbc2be1db Mon Sep 17 00:00:00 2001 From: Phenom Date: Sun, 4 Oct 2015 14:38:33 +0200 Subject: [PATCH] Remove Time between display frame in VOIP But let message to take care of CPU usage at this point... --- plugins/VOIP/gui/VideoProcessor.cpp | 10 +++++----- plugins/VOIP/gui/VideoProcessor.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/VOIP/gui/VideoProcessor.cpp b/plugins/VOIP/gui/VideoProcessor.cpp index 9604e8cde..68d0adbd6 100644 --- a/plugins/VOIP/gui/VideoProcessor.cpp +++ b/plugins/VOIP/gui/VideoProcessor.cpp @@ -105,7 +105,7 @@ void av_frame_free(AVFrame **frame) VideoProcessor::VideoProcessor() :_encoded_frame_size(640,480) , vpMtx("VideoProcessor") { - _lastTimeToShowFrame = time(NULL); + //_lastTimeToShowFrame = time(NULL); _decoded_output_device = NULL ; //_encoding_current_codec = VIDEO_PROCESSOR_CODEC_ID_JPEG_VIDEO; @@ -273,12 +273,12 @@ void VideoProcessor::receiveEncodedData(const RsVOIPDataChunk& chunk) } if(_decoded_output_device) - if (time(NULL) > _lastTimeToShowFrame) - { +// if (time(NULL) > _lastTimeToShowFrame) +// { _decoded_output_device->showFrame(img) ; - _lastTimeToShowFrame = time(NULL) ;//+ 1000/25; +// _lastTimeToShowFrame = time(NULL) ;//+ 1000/25; #warning "\plugins\VOIP\gui\VideoProcessor.cpp:210 TODO: Get CPU usage to pass image." - } +// } } void VideoProcessor::setMaximumBandwidth(uint32_t bytes_per_sec) diff --git a/plugins/VOIP/gui/VideoProcessor.h b/plugins/VOIP/gui/VideoProcessor.h index c8c45f43e..4e47b2c29 100644 --- a/plugins/VOIP/gui/VideoProcessor.h +++ b/plugins/VOIP/gui/VideoProcessor.h @@ -102,7 +102,7 @@ class VideoProcessor private: QVideoOutputDevice *_decoded_output_device ; std::list _decoded_image_queue ; - time_t _lastTimeToShowFrame ; + //time_t _lastTimeToShowFrame ; // ===================================================================================== // =------------------------------------ ENCODING -------------------------------------=