webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Functions | |
if | ~strncmp (textline, '#!NetEQ_Delay_Logging', 21) error('Wrong file format') |
if | ~all (ver==[2;0]) error('Wrong version of delay logging function') end start_pos |
fseek (fid, -12, 'eof') | |
if | ~strncmp (textline, 'End of file', 21) error('File ending is not correct. Seems like the simulation ended abnormally.') |
end | fseek (fid,-12-4, 'eof') |
fseek (fid, start_pos, 'bof') | |
while | not (ended) signal |
while | all (temp(1,:)==3) fp |
while (temp_ix >=1) &&(rtpts(temp_ix) ~ | |
end | rtpts (temp_ix) |
seqno (temp_ix) | |
pt (temp_ix) | |
plen (temp_ix) | |
recin_t (temp_ix) | |
if | ~isempty (k) decode_t(k) |
playout_delay (k) | |
end case % NETEQ_DELAY_LOGGING_SIGNAL_CHANGE_FS | fsvec (fs_ix) |
fschange_ts (fs_ix) | |
case % NETEQ_DELAY_LOGGING_SIGNAL_MERGE_INFO | playout_delay (last_decode_k) |
end case % NETEQ_DELAY_LOGGING_SIGNAL_OPTBUF | optbuf (last_decode_k) |
while (k >=1) &&(rtpts(k) ~ | |
Variables | |
function | outStruct |
if | fid |
end | textline = fgetl(fid) |
end | ver = sscanf(textline, '#!NetEQ_Delay_Logging%d.%d') |
Npackets = fread(fid, 1, 'int32') | |
rtpts = zeros(Npackets, 1) | |
seqno = zeros(Npackets, 1) | |
pt = zeros(Npackets, 1) | |
plen = zeros(Npackets, 1) | |
recin_t = nan*ones(Npackets, 1) | |
decode_t = nan*ones(Npackets, 1) | |
playout_delay = zeros(Npackets, 1) | |
optbuf = zeros(Npackets, 1) | |
fs_ix = 1 | |
clock = 0 | |
ts_ix = 1 | |
ended = 0 | |
late_packets = 0 | |
fs_now = 8000 | |
last_decode_k = 0 | |
tot_expand = 0 | |
tot_accelerate = 0 | |
tot_preemptive = 0 | |
M = 120 | |
temp = fread(fid, [2 M], '*int32') | |
case % NETEQ_DELAY_LOGGING_SIGNAL_RECIN | temp_ts = fread(fid, 1, 'uint32') |
if late_packets | temp_ix = ts_ix - 1 |
case % NETEQ_DELAY_LOGGING_SIGNAL_DECODE | last_decode_ts = fread(fid, 1, 'uint32') |
temp_delay = fread(fid, 1, 'uint16') | |
k = find(rtpts(1:(ts_ix - 1))==last_decode_ts,1,'last') | |
fschange_ts | ( | fs_ix | ) |
fseek | ( | fid | , |
- | 12, | ||
'eof' | |||
) |
fseek | ( | fid | , |
start_pos | , | ||
'bof' | |||
) |
end case % NETEQ_DELAY_LOGGING_SIGNAL_OPTBUF optbuf | ( | last_decode_k | ) |
playout_delay | ( | k | ) |
case % NETEQ_DELAY_LOGGING_SIGNAL_MERGE_INFO playout_delay | ( | last_decode_k | ) |
plen | ( | temp_ix | ) |
pt | ( | temp_ix | ) |
recin_t | ( | temp_ix | ) |
seqno | ( | temp_ix | ) |
while | ( | temp_ix >= | 1 | ) | && |
while | ( | k >= | 1 | ) | && |
decode_t = nan*ones(Npackets, 1) |
if fid |
fs_ix = 1 |
fs_now = 8000 |
k = find(rtpts(1:(ts_ix - 1))==last_decode_ts,1,'last') |
if last_decode_k = 0 |
late_packets = 0 |
M = 120 |
optbuf = zeros(Npackets, 1) |
function outStruct |
plen = zeros(Npackets, 1) |
recin_t = nan*ones(Npackets, 1) |
rtpts = zeros(Npackets, 1) |
seqno = zeros(Npackets, 1) |
textline = fgetl(fid) |
tot_accelerate = 0 |
tot_expand = 0 |
tot_preemptive = 0 |
ts_ix = 1 |