FFmpeg
|
#include <srt/srt.h>
#include "libavutil/avassert.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/time.h"
#include "avformat.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
Go to the source code of this file.
Data Structures | |
struct | SRTContext |
Macros | |
#define | SRT_LIVE_DEFAULT_PAYLOAD_SIZE 1316 |
#define | SRT_LIVE_MAX_PAYLOAD_SIZE 1456 |
#define | D AV_OPT_FLAG_DECODING_PARAM |
#define | E AV_OPT_FLAG_ENCODING_PARAM |
#define | OFFSET(x) offsetof(SRTContext, x) |
Enumerations | |
enum | SRTMode { SRT_MODE_CALLER = 0, SRT_MODE_LISTENER = 1, SRT_MODE_RENDEZVOUS = 2 } |
Functions | |
static int | libsrt_neterrno (URLContext *h) |
static int | libsrt_socket_nonblock (int socket, int enable) |
static int | libsrt_epoll_create (URLContext *h, int fd, int write) |
static int | libsrt_network_wait_fd (URLContext *h, int eid, int write) |
static int | libsrt_network_wait_fd_timeout (URLContext *h, int eid, int write, int64_t timeout, AVIOInterruptCB *int_cb) |
static int | libsrt_listen (int eid, int fd, const struct sockaddr *addr, socklen_t addrlen, URLContext *h, int64_t timeout) |
static int | libsrt_listen_connect (int eid, int fd, const struct sockaddr *addr, socklen_t addrlen, int64_t timeout, URLContext *h, int will_try_next) |
static int | libsrt_setsockopt (URLContext *h, int fd, SRT_SOCKOPT optname, const char *optnamestr, const void *optval, int optlen) |
static int | libsrt_getsockopt (URLContext *h, int fd, SRT_SOCKOPT optname, const char *optnamestr, void *optval, int *optlen) |
static int | libsrt_set_options_post (URLContext *h, int fd) |
static int | libsrt_set_options_pre (URLContext *h, int fd) |
static int | libsrt_setup (URLContext *h, const char *uri, int flags) |
static int | libsrt_open (URLContext *h, const char *uri, int flags) |
static int | libsrt_read (URLContext *h, uint8_t *buf, int size) |
static int | libsrt_write (URLContext *h, const uint8_t *buf, int size) |
static int | libsrt_close (URLContext *h) |
static int | libsrt_get_file_handle (URLContext *h) |
Variables | |
static const AVOption | libsrt_options [] |
static const AVClass | libsrt_class |
const URLProtocol | ff_libsrt_protocol |
Haivision Open SRT (Secure Reliable Transport) protocol
Definition in file libsrt.c.
#define D AV_OPT_FLAG_DECODING_PARAM |
#define E AV_OPT_FLAG_ENCODING_PARAM |
#define OFFSET | ( | x | ) | offsetof(SRTContext, x) |
enum SRTMode |
|
static |
Definition at line 146 of file libsrt.c.
Referenced by libsrt_epoll_create(), libsrt_listen(), libsrt_listen_connect(), libsrt_network_wait_fd(), libsrt_read(), libsrt_setup(), and libsrt_write().
Definition at line 156 of file libsrt.c.
Referenced by libsrt_listen(), and libsrt_setup().
|
static |
Definition at line 166 of file libsrt.c.
Referenced by libsrt_setup().
|
static |
Definition at line 179 of file libsrt.c.
Referenced by libsrt_network_wait_fd_timeout().
|
static |
Definition at line 203 of file libsrt.c.
Referenced by libsrt_listen(), libsrt_listen_connect(), libsrt_read(), and libsrt_write().
|
static |
Definition at line 223 of file libsrt.c.
Referenced by libsrt_setup().
|
static |
Definition at line 249 of file libsrt.c.
Referenced by libsrt_setup().
|
static |
Definition at line 270 of file libsrt.c.
Referenced by libsrt_set_options_post(), and libsrt_set_options_pre().
|
static |
Definition at line 279 of file libsrt.c.
Referenced by libsrt_setup().
|
static |
Definition at line 292 of file libsrt.c.
Referenced by libsrt_setup().
|
static |
Definition at line 306 of file libsrt.c.
Referenced by libsrt_setup().
|
static |
Definition at line 367 of file libsrt.c.
Referenced by libsrt_open().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const URLProtocol ff_libsrt_protocol |