ROHC compression/decompression library
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 2 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * This program is distributed in the hope that it will be useful, 00008 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 * GNU General Public License for more details. 00011 * 00012 * You should have received a copy of the GNU General Public License 00013 * along with this program; if not, write to the Free Software 00014 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00015 */ 00016 00024 #ifndef LSB_H 00025 #define LSB_H 00026 00027 #include <stdio.h> 00028 00029 #include "rohc.h" 00030 #include "wlsb.h" 00031 00032 00036 struct d_lsb_decode 00037 { 00039 int v_ref_d; 00041 int old_v_ref_d; 00043 int p; 00044 }; 00045 00046 00047 /* 00048 * Function prototypes 00049 */ 00050 00051 void d_lsb_update(struct d_lsb_decode *s, int v_ref_d); 00052 00053 void d_lsb_sync_ref(struct d_lsb_decode *s); 00054 00055 int d_get_lsb_old_ref(struct d_lsb_decode *s); 00056 00057 int d_lsb_decode(struct d_lsb_decode *s, int m, int length); 00058 00059 void d_lsb_init(struct d_lsb_decode *s, int v_ref_d, int p); 00060 00061 int d_get_lsb_ref(struct d_lsb_decode *s); 00062 00063 00064 #endif 00065