Libav 0.7.1
|
00001 /* 00002 * Realmedia RTSP (RDT) definitions 00003 * Copyright (c) 2007 Ronald S. Bultje <rbultje@ronald.bitfreak.net> 00004 * 00005 * This file is part of Libav. 00006 * 00007 * Libav is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * Libav is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with Libav; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00022 #ifndef AVFORMAT_RDT_H 00023 #define AVFORMAT_RDT_H 00024 00025 #include <stdint.h> 00026 #include "avformat.h" 00027 #include "rtpdec.h" 00028 00029 typedef struct RDTDemuxContext RDTDemuxContext; 00030 00041 RDTDemuxContext *ff_rdt_parse_open(AVFormatContext *ic, 00042 int first_stream_of_set_idx, 00043 void *priv_data, 00044 RTPDynamicProtocolHandler *handler); 00045 void ff_rdt_parse_close(RDTDemuxContext *s); 00046 00059 void ff_rdt_calc_response_and_checksum(char response[41], char chksum[9], 00060 const char *challenge); 00061 00065 void av_register_rdt_dynamic_payload_handlers(void); 00066 00075 void ff_rdt_subscribe_rule(char *cmd, int size, 00076 int stream_nr, int rule_nr); 00077 00090 int ff_rdt_parse_header(const uint8_t *buf, int len, 00091 int *set_id, int *seq_no, int *stream_id, 00092 int *is_keyframe, uint32_t *timestamp); 00093 00098 int ff_rdt_parse_packet(RDTDemuxContext *s, AVPacket *pkt, 00099 uint8_t **buf, int len); 00100 00109 void ff_real_parse_sdp_a_line(AVFormatContext *s, int stream_index, 00110 const char *buf); 00111 00112 #endif /* AVFORMAT_RDT_H */