| OLD | NEW |
| 1 /* | 1 /* |
| 2 * RTP demuxer definitions | 2 * RTP demuxer definitions |
| 3 * Copyright (c) 2002 Fabrice Bellard | 3 * Copyright (c) 2002 Fabrice Bellard |
| 4 * Copyright (c) 2006 Ryan Martell <rdm4@martellventures.com> | 4 * Copyright (c) 2006 Ryan Martell <rdm4@martellventures.com> |
| 5 * | 5 * |
| 6 * This file is part of FFmpeg. | 6 * This file is part of FFmpeg. |
| 7 * | 7 * |
| 8 * FFmpeg is free software; you can redistribute it and/or | 8 * FFmpeg is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 typedef struct RTPDemuxContext RTPDemuxContext; | 39 typedef struct RTPDemuxContext RTPDemuxContext; |
| 40 RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *r
tpc, int payload_type, int queue_size); | 40 RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *r
tpc, int payload_type, int queue_size); |
| 41 void rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx, | 41 void rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx, |
| 42 RTPDynamicProtocolHandler *handler); | 42 RTPDynamicProtocolHandler *handler); |
| 43 int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, | 43 int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, |
| 44 uint8_t **buf, int len); | 44 uint8_t **buf, int len); |
| 45 void rtp_parse_close(RTPDemuxContext *s); | 45 void rtp_parse_close(RTPDemuxContext *s); |
| 46 int64_t ff_rtp_queued_packet_time(RTPDemuxContext *s); | 46 int64_t ff_rtp_queued_packet_time(RTPDemuxContext *s); |
| 47 void ff_rtp_reset_packet_queue(RTPDemuxContext *s); | 47 void ff_rtp_reset_packet_queue(RTPDemuxContext *s); |
| 48 #if (LIBAVFORMAT_VERSION_MAJOR <= 53) | |
| 49 int rtp_get_local_port(URLContext *h); | |
| 50 #endif | |
| 51 int rtp_get_local_rtp_port(URLContext *h); | 48 int rtp_get_local_rtp_port(URLContext *h); |
| 52 int rtp_get_local_rtcp_port(URLContext *h); | 49 int rtp_get_local_rtcp_port(URLContext *h); |
| 53 | 50 |
| 54 int rtp_set_remote_url(URLContext *h, const char *uri); | 51 int rtp_set_remote_url(URLContext *h, const char *uri); |
| 55 #if (LIBAVFORMAT_VERSION_MAJOR <= 52) | |
| 56 void rtp_get_file_handles(URLContext *h, int *prtp_fd, int *prtcp_fd); | |
| 57 #endif | |
| 58 | 52 |
| 59 /** | 53 /** |
| 60 * Send a dummy packet on both port pairs to set up the connection | 54 * Send a dummy packet on both port pairs to set up the connection |
| 61 * state in potential NAT routers, so that we're able to receive | 55 * state in potential NAT routers, so that we're able to receive |
| 62 * packets. | 56 * packets. |
| 63 * | 57 * |
| 64 * Note, this only works if the NAT router doesn't remap ports. This | 58 * Note, this only works if the NAT router doesn't remap ports. This |
| 65 * isn't a standardized procedure, but it works in many cases in practice. | 59 * isn't a standardized procedure, but it works in many cases in practice. |
| 66 * | 60 * |
| 67 * The same routine is used with RDT too, even if RDT doesn't use normal | 61 * The same routine is used with RDT too, even if RDT doesn't use normal |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 int ff_rtsp_next_attr_and_value(const char **p, char *attr, int attr_size, char
*value, int value_size); ///< from rtsp.c, but used by rtp dynamic protocol hand
lers. | 191 int ff_rtsp_next_attr_and_value(const char **p, char *attr, int attr_size, char
*value, int value_size); ///< from rtsp.c, but used by rtp dynamic protocol hand
lers. |
| 198 | 192 |
| 199 int ff_parse_fmtp(AVStream *stream, PayloadContext *data, const char *p, | 193 int ff_parse_fmtp(AVStream *stream, PayloadContext *data, const char *p, |
| 200 int (*parse_fmtp)(AVStream *stream, | 194 int (*parse_fmtp)(AVStream *stream, |
| 201 PayloadContext *data, | 195 PayloadContext *data, |
| 202 char *attr, char *value)); | 196 char *attr, char *value)); |
| 203 | 197 |
| 204 void av_register_rtp_dynamic_payload_handlers(void); | 198 void av_register_rtp_dynamic_payload_handlers(void); |
| 205 | 199 |
| 206 #endif /* AVFORMAT_RTPDEC_H */ | 200 #endif /* AVFORMAT_RTPDEC_H */ |
| OLD | NEW |