#include <MNRTPEncoderCommon.h>
Inheritance diagram for MNRTPEncoderCommon:
Protected Member Functions | |
Timeval | get_std_timeout () const |
void | set_std_timeout (size_t pause) |
void | inc_total_bytes_read (size_t sz) |
size_t | get_total_bytes_read () const |
virtual size_t | get_abs_byte_pos () |
void | inc_abs_byte_pos (size_t sz) |
size_t | get_accum_rtp_ts () const |
void | inc_accum_rtp_ts (size_t sz) |
virtual void | update_absolute_position (int32 offset) |
void | set_pulled_bytes (size_t pb) |
size_t | get_pulled_bytes () |
RetransBase * | get_retrans () |
MNRTPEncoderCommon (RetransBase *retrans) | |
virtual | ~MNRTPEncoderCommon () |
Protected Attributes | |
Timeval | _std_time_offset |
size_t | _total_bytes_read |
size_t | _absolute_byte_position |
size_t | _accum_rtp_timestamp |
size_t | _pulled_bytes |
|
|
|
|
|
Implements MNRTPEncoderBase.
|
|
|
|
This function returns the amount of bytes that were read from the file source. Implements MNRTPEncoderBase.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements MNRTPEncoderBase.
|
|
If the rtp timestamp is modified by seek operation, the absolute byte position may differ from the total bytes read. This variable is unused in the file descriptor case. It needs explicit manipulation by the owner of this object to deviate from the number of total bytes read. |
|
Accumulated RTP timestamp from the start of this transmission. It is probably necessary to update this after a seek operation. |
|
Indicates the number of bytes that have been pulled from the source endpoint. |
|
The time offset is initialized in a codec-specific way and indicates the amount of system time that the caller should wait before requesting another packet, according to the RTP packaging specification for this codec. For PCMU the value is fixed. It may make sense to change the value for child classes. |
|
Indicates the overall number of bytes read from the file descriptor or the source endpoint, respectively. It has no meaning for the get_data function that relies on the file descriptor but it is necessary for computing the time stamps in the get_data function that relies on the source endpoints. |