#include #include "rtp.h" void put_rtphdr(u_char *buf, rtp_hdr_t *hdr) { *((rtp_hdr_t*)buf) = *hdr; } void put_h261hdr(u_char *buf, h261_hdr_t *hdr) { *((h261_hdr_t*)buf) = *hdr; } void get_rtphdr(u_char *buf, rtp_hdr_t *hdr) { *hdr = *((rtp_hdr_t*)buf); } void get_h261hdr(u_char *buf, h261_hdr_t *hdr) { *hdr = *((h261_hdr_t*)buf); } void create_hdr(rtp_hdr_t *hdr, u_int marker, u_int payload) { memset(hdr, 0, sizeof(*hdr)); hdr->m = marker; hdr->pt = payload; } void get_hdr(rtp_hdr_t *hdr, u_int& marker, u_int& payload) { marker = hdr->m; payload = hdr->pt; } void set_sbit(h261_hdr_t *hdr, int val) { hdr->sbit = val; } void set_ebit(h261_hdr_t *hdr, int val) { hdr->ebit = val; } int get_sbit(h261_hdr_t *hdr) { return hdr->sbit; } int get_ebit(h261_hdr_t *hdr) { return hdr->ebit; }