Ignore:
Timestamp:
Jan 20, 2010 1:02:37 AM (14 years ago)
Author:
nanang
Message:

Ticket #969:

  • implemented progressive discard algorithm, discard rate is calculated from ratio of effective size to effective burst level.
  • updated jbuf to clarify prefetch and burst level distinction, previously they are stored in same var, i.e: prefetch, while the semantic is actually different.
  • updated STABLE_HISTORY_LIMIT in jbuf, it is now 20 (was 100), to adjust burst level faster.
  • added test case of periodic-spike-burst-case in jbtest.dat for testing the new algorithm.
  • updated stream to limit the rate of jbuf empty/lost log messages, it will only log first empty/lost event, then log again once jbuf returning normal frame (also counter of previous empty/lost frames).
  • minor updates on jbuf.c: variable names, logs, added burst to jbuf state.
  • minor updates on jbuf_test.c: handle comment in test session header, seq jump is now 20 (was 5000).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/test/jbuf_test.c

    r2882 r3065  
    8282        while (*p && isspace(*p)) ++p; 
    8383        printf("%s", p); 
     84 
     85    } else if (*p == '#') { 
     86        /* Ignore comment line. */ 
     87 
    8488    } else { 
    8589        /* Unknown header, perhaps this is the test data */ 
     
    123127        break; 
    124128    case 'J': /* Sequence jumps */ 
    125         (*seq) += 5000; 
     129        (*seq) += 20; 
    126130        printf("Sequence jumping, from %u to %u\n", *last_seq, *seq); 
    127131        break; 
Note: See TracChangeset for help on using the changeset viewer.