FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/base64.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/parseutils.h"
#include "libavutil/random_seed.h"
#include "libavutil/dict.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "http.h"
#include "rtsp.h"
#include "rtpdec.h"
#include "rdt.h"
#include "rtpdec_formats.h"
#include "rtpenc_chain.h"
#include "url.h"
#include "rtpenc.h"
#include "mpegts.h"
Go to the source code of this file.
Macros | |
#define | POLL_TIMEOUT_MS 100 |
#define | READ_PACKET_TIMEOUT_S 10 |
#define | MAX_TIMEOUTS READ_PACKET_TIMEOUT_S * 1000 / POLL_TIMEOUT_MS |
#define | SDP_MAX_SIZE 16384 |
#define | RECVBUF_SIZE 10 * RTP_MAX_PACKET_LENGTH |
#define | DEFAULT_REORDERING_DELAY 100000 |
#define | OFFSET(x) offsetof(RTSPState, x) |
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
#define | ENC AV_OPT_FLAG_ENCODING_PARAM |
#define | RTSP_FLAG_OPTS(name, longname) |
#define | RTSP_MEDIATYPE_OPTS(name, longname) |
#define | RTSP_REORDERING_OPTS() { "reorder_queue_size", "Number of packets to buffer for handling of reordered packets", OFFSET(reordering_queue_size), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, DEC } |
Functions | |
static void | get_word_until_chars (char *buf, int buf_size, const char *sep, const char **pp) |
static void | get_word_sep (char *buf, int buf_size, const char *sep, const char **pp) |
static void | get_word (char *buf, int buf_size, const char **pp) |
static void | rtsp_parse_range_npt (const char *p, int64_t *start, int64_t *end) |
Parse a string p in the form of Range:npt=xx-xx, and determine the start and end time. More... | |
static int | get_sockaddr (const char *buf, struct sockaddr_storage *sock) |
void | ff_rtsp_undo_setup (AVFormatContext *s) |
Undo the effect of ff_rtsp_make_setup_request, close the transport_priv and rtp_handle fields. More... | |
void | ff_rtsp_close_streams (AVFormatContext *s) |
Close and free all streams within the RTSP (de)muxer. More... | |
int | ff_rtsp_open_transport_ctx (AVFormatContext *s, RTSPStream *rtsp_st) |
Open RTSP transport context. More... | |
Variables | |
const AVOption | ff_rtsp_options [] |
static const AVOption | sdp_options [] |
static const AVOption | rtp_options [] |
Macro Definition Documentation
#define DEC AV_OPT_FLAG_DECODING_PARAM |
#define DEFAULT_REORDERING_DELAY 100000 |
Definition at line 61 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx().
#define ENC AV_OPT_FLAG_ENCODING_PARAM |
#define MAX_TIMEOUTS READ_PACKET_TIMEOUT_S * 1000 / POLL_TIMEOUT_MS |
Definition at line 58 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx().
#define POLL_TIMEOUT_MS 100 |
Definition at line 56 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx().
#define RECVBUF_SIZE 10 * RTP_MAX_PACKET_LENGTH |
Definition at line 60 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx().
#define RTSP_FLAG_OPTS | ( | name, | |
longname | |||
) |
#define RTSP_MEDIATYPE_OPTS | ( | name, | |
longname | |||
) |
#define RTSP_REORDERING_OPTS | ( | ) | { "reorder_queue_size", "Number of packets to buffer for handling of reordered packets", OFFSET(reordering_queue_size), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, DEC } |
#define SDP_MAX_SIZE 16384 |
Definition at line 59 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx().
Function Documentation
void ff_rtsp_close_streams | ( | AVFormatContext * | s | ) |
Close and free all streams within the RTSP (de)muxer.
- Parameters
-
s RTSP (de)muxer context
Definition at line 603 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx(), rtsp_read_close(), rtsp_read_header(), rtsp_write_close(), and rtsp_write_header().
int ff_rtsp_open_transport_ctx | ( | AVFormatContext * | s, |
RTSPStream * | rtsp_st | ||
) |
Open RTSP transport context.
Definition at line 629 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx(), and rtsp_read_setup().
void ff_rtsp_undo_setup | ( | AVFormatContext * | s | ) |
Undo the effect of ff_rtsp_make_setup_request, close the transport_priv and rtp_handle fields.
Definition at line 569 of file rtsp.c.
Referenced by ff_rtsp_close_streams(), ff_rtsp_open_transport_ctx(), and resetup_tcp().
|
static |
Definition at line 168 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx().
|
static |
Definition at line 139 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx(), and get_sockaddr().
|
static |
Definition at line 132 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx(), get_sockaddr(), and rtsp_parse_range_npt().
|
static |
Definition at line 113 of file rtsp.c.
Referenced by get_word(), and get_word_sep().
|
static |
Parse a string p in the form of Range:npt=xx-xx, and determine the start and end time.
Used for seeking in the rtp stream.
Definition at line 148 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx(), and get_sockaddr().
Variable Documentation
const AVOption ff_rtsp_options[] |
|
static |
Definition at line 107 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx().
|
static |
Definition at line 99 of file rtsp.c.
Referenced by ff_rtsp_open_transport_ctx().
Generated on Mon Nov 18 2024 06:52:09 for FFmpeg by 1.8.11