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

Side by Side Diff: webrtc/modules/audio_coding/codecs/ilbc/complexityMeasures.m

Issue 2781663005: Added licence boilerplate to our MATLAB files. (Closed)
Patch Set: Created 3 years, 8 months 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 unified diff | Download patch
OLDNEW
1 %
2 % Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 %
4 % Use of this source code is governed by a BSD-style license
5 % that can be found in the LICENSE file in the root of the source
6 % tree. An additional intellectual property rights grant can be found
7 % in the file PATENTS. All contributing project authors may
8 % be found in the AUTHORS file in the root of the source tree.
9 %
10
1 clear; 11 clear;
2 pack; 12 pack;
3 % 13 %
4 % Enter the path to YOUR executable and remember to define the perprocessor 14 % Enter the path to YOUR executable and remember to define the perprocessor
5 % variable PRINT_MIPS te get the instructions printed to the screen. 15 % variable PRINT_MIPS te get the instructions printed to the screen.
6 % 16 %
7 command = '!iLBCtest.exe 30 speechAndBGnoise.pcm out1.bit out1.pcm tlm10_30ms.da t'; 17 command = '!iLBCtest.exe 30 speechAndBGnoise.pcm out1.bit out1.pcm tlm10_30ms.da t';
8 cout=' > st.txt'; %saves to matlab variable 'st' 18 cout=' > st.txt'; %saves to matlab variable 'st'
9 eval(strcat(command,cout)); 19 eval(strcat(command,cout));
10 if(length(cout)>3) 20 if(length(cout)>3)
(...skipping 29 matching lines...) Expand all
40 % result(i,3)=(max(new(1:end,i))/0.03)/1000000; 50 % result(i,3)=(max(new(1:end,i))/0.03)/1000000;
41 result(i,3)=(max(new(1:size(new,1)/2,i))/0.03)/1000000 + (max(new(size(new,1 )/2+1:end,i))/0.03)/1000000; 51 result(i,3)=(max(new(1:size(new,1)/2,i))/0.03)/1000000 + (max(new(size(new,1 )/2+1:end,i))/0.03)/1000000;
42 end 52 end
43 53
44 result 54 result
45 55
46 % Compute maximum complexity for a single frame (enc/dec separately and together ) 56 % Compute maximum complexity for a single frame (enc/dec separately and together )
47 maxEncComplexityInAFrame = (max(sum(new(1:size(new,1)/2,:),2))/0.03)/1000000 57 maxEncComplexityInAFrame = (max(sum(new(1:size(new,1)/2,:),2))/0.03)/1000000
48 maxDecComplexityInAFrame = (max(sum(new(size(new,1)/2+1:end,:),2))/0.03)/1000000 58 maxDecComplexityInAFrame = (max(sum(new(size(new,1)/2+1:end,:),2))/0.03)/1000000
49 totalComplexity = maxEncComplexityInAFrame + maxDecComplexityInAFrame 59 totalComplexity = maxEncComplexityInAFrame + maxDecComplexityInAFrame
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698