Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Unified Diff: webrtc/modules/video_coding/main/test/plotTimingTest.m

Issue 1417283007: modules/video_coding refactorings (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix the other copy of the mock include header Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/main/test/plotTimingTest.m
diff --git a/webrtc/modules/video_coding/main/test/plotTimingTest.m b/webrtc/modules/video_coding/main/test/plotTimingTest.m
deleted file mode 100644
index 52a6f303cd472ac8c0a8c3c2cc0e501c2fe530a6..0000000000000000000000000000000000000000
--- a/webrtc/modules/video_coding/main/test/plotTimingTest.m
+++ /dev/null
@@ -1,62 +0,0 @@
-function plotTimingTest(filename)
-fid=fopen(filename);
-
-%DEBUG ; ( 9:53:33:859 | 0) VIDEO:-1 ; 7132; Stochastic test 1
-%DEBUG ; ( 9:53:33:859 | 0) VIDEO CODING:-1 ; 7132; Frame decoded: timeStamp=3000 decTime=10 at 10012
-%DEBUG ; ( 9:53:33:859 | 0) VIDEO:-1 ; 7132; timeStamp=3000 clock=10037 maxWaitTime=0
-%DEBUG ; ( 9:53:33:859 | 0) VIDEO:-1 ; 7132; timeStampMs=33 renderTime=54
-line = fgetl(fid);
-decTime = [];
-waitTime = [];
-renderTime = [];
-foundStart = 0;
-testName = 'Stochastic test 1';
-while ischar(line)
- if length(line) == 0
- line = fgetl(fid);
- continue;
- end
- lineOrig = line;
- line = line(72:end);
- if ~foundStart
- if strncmp(line, testName, length(testName))
- foundStart = 1;
- end
- line = fgetl(fid);
- continue;
- end
- [p, count] = sscanf(line, 'Frame decoded: timeStamp=%lu decTime=%d maxDecTime=%d, at %lu');
- if count == 4
- decTime = [decTime; p'];
- line = fgetl(fid);
- continue;
- end
- [p, count] = sscanf(line, 'timeStamp=%u clock=%u maxWaitTime=%u');
- if count == 3
- waitTime = [waitTime; p'];
- line = fgetl(fid);
- continue;
- end
- [p, count] = sscanf(line, 'timeStamp=%u renderTime=%u');
- if count == 2
- renderTime = [renderTime; p'];
- line = fgetl(fid);
- continue;
- end
- line = fgetl(fid);
-end
-fclose(fid);
-
-% Compensate for wrap arounds and start counting from zero.
-timeStamps = waitTime(:, 1);
-tsDiff = diff(timeStamps);
-wrapIdx = find(tsDiff < 0);
-timeStamps(wrapIdx+1:end) = hex2dec('ffffffff') + timeStamps(wrapIdx+1:end);
-timeStamps = timeStamps - timeStamps(1);
-
-figure;
-hold on;
-plot(timeStamps, decTime(:, 2), 'r');
-plot(timeStamps, waitTime(:, 3), 'g');
-plot(timeStamps(2:end), diff(renderTime(:, 2)), 'b');
-legend('Decode time', 'Max wait time', 'Render time diff');
« no previous file with comments | « webrtc/modules/video_coding/main/test/plotReceiveTrace.m ('k') | webrtc/modules/video_coding/main/test/receiver_tests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698