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

Side by Side Diff: webrtc/modules/audio_coding/neteq/test/delay_tool/parse_delay_file.m

Issue 2781663005: Added licence boilerplate to our MATLAB files. (Closed)
Patch Set: Update year in licence. 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 function outStruct = parse_delay_file(file) 11 function outStruct = parse_delay_file(file)
2 12
3 fid = fopen(file, 'rb'); 13 fid = fopen(file, 'rb');
4 if fid == -1 14 if fid == -1
5 error('Cannot open file %s', file); 15 error('Cannot open file %s', file);
6 end 16 end
7 17
8 textline = fgetl(fid); 18 textline = fgetl(fid);
9 if ~strncmp(textline, '#!NetEQ_Delay_Logging', 21) 19 if ~strncmp(textline, '#!NetEQ_Delay_Logging', 21)
10 error('Wrong file format'); 20 error('Wrong file format');
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 'plen', plen,... 192 'plen', plen,...
183 'arrival', recin_t,... 193 'arrival', recin_t,...
184 'decode', decode_t,... 194 'decode', decode_t,...
185 'fs', fsvec(:),... 195 'fs', fsvec(:),...
186 'fschange_ts', fschange_ts(:),... 196 'fschange_ts', fschange_ts(:),...
187 'playout_delay', playout_delay,... 197 'playout_delay', playout_delay,...
188 'tot_expand', tot_expand,... 198 'tot_expand', tot_expand,...
189 'tot_accelerate', tot_accelerate,... 199 'tot_accelerate', tot_accelerate,...
190 'tot_preemptive', tot_preemptive,... 200 'tot_preemptive', tot_preemptive,...
191 'optbuf', optbuf); 201 'optbuf', optbuf);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698