- Main Page
- Data Structures
- Files

- File List
- Globals

# src/jitterctl.h

    00001 /*
    00002   The oRTP library is an RTP (Realtime Transport Protocol - rfc3550) stack.
    00003   Copyright (C) 2001  Simon MORLAT simon.morlat@linphone.org
    00004
    00005   This library is free software; you can redistribute it and/or
    00006   modify it under the terms of the GNU Lesser General Public
    00007   License as published by the Free Software Foundation; either
    00008   version 2.1 of the License, or (at your option) any later version.
    00009
    00010   This library is distributed in the hope that it will be useful,
    00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013   Lesser General Public License for more details.
    00014
    00015   You should have received a copy of the GNU Lesser General Public
    00016   License along with this library; if not, write to the Free Software
    00017   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00018 */
    00019 /***************************************************************************
    00020  *            jitterctl.c
    00021  *
    00022  *  Mon Nov  8 11:53:21 2004
    00023  *  Copyright  2004  Simon MORLAT
    00024  *  Email simon.morlat@linphone.org
    00025  ****************************************************************************/
    00026
    00027 #ifndef JITTERCTL_H
    00028 #define JITTERCTL_H
    00029
    00030
    00031 void jitter_control_init(JitterControl *ctl, int base_jiitt_time, PayloadType *pt);
    00032 void jitter_control_enable_adaptive(JitterControl *ctl, bool_t val);
    00033 void jitter_control_new_packet(JitterControl *ctl, uint32_t packet_ts, uint32_t cur_str_ts);
    00034 #define jitter_control_adaptive_enabled(ctl) ((ctl)->adaptive)
    00035 void jitter_control_set_payload(JitterControl *ctl, PayloadType *pt);
    00036 void jitter_control_update_corrective_slide(JitterControl *ctl);
    00037 static inline uint32_t jitter_control_get_compensated_timestamp(JitterControl *obj , uint32_t user_ts){
    00038         return user_ts+obj->slide-obj->adapt_jitt_comp_ts;
    00039 }
    00040
    00041 #endif