Show
Ignore:
Timestamp:
04/28/10 15:09:39 (4 years ago)
Author:
soohyunc
Message:

create a field in pktbuf (i.e., bool tag) to indicate if this packet belongs to
the same video frame or not.

  • if tag is set (true), then this packets belong to the same frame.
  • if tag is set to false at the very last packets for the frame.

based on this information, CC module can compute the average packet size in
bytes.

  • first, compute the arithmetic average packet size per frame
  • then, use this average size to compute EWMA packet size

then, cwnd (in bytes) can be computed:

  • cwnd (in bytes) = psize * cwnd (in packets)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/cc/codec/encoder-h261.cpp

    r4782 r4784  
    964964 
    965965        pktbuf* pb = pool_->alloc(vf->ts_, RTP_PT_H261); 
     966        pb->tag = true; 
    966967        bs_ = &pb->data[HDRSIZE]; 
    967968        bc_ = bs_; 
     
    10531054                } 
    10541055        } 
     1056        pb->tag = false; 
    10551057        cc += flush(pb, ((bc_ - bs_) << 3) + nbb_, 0); 
    10561058