1 /*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
20
23
25
71
72 #include "libavformat/protocol_list.c"
73
75 {
76 int i;
77
78 /* find the protocol that corresponds to prev */
79 for (i = 0; prev && url_protocols[i]; i++) {
80 if (url_protocols[i]->priv_data_class == prev) {
81 i++;
82 break;
83 }
84 }
85
86 /* find next protocol with priv options */
87 for (; url_protocols[i]; i++)
88 if (url_protocols[i]->priv_data_class)
89 return url_protocols[i]->priv_data_class;
91 }
92
93
95 {
97
98 p = p ? p + 1 : url_protocols;
99 *opaque = p;
100 if (!*p) {
103 }
104 if ((output && (*p)->url_write) || (!output && (*p)->url_read))
105 return (*p)->name;
107 }
108
110 const char *blacklist)
111 {
113 int i, ret_idx = 0;
114
116 if (!ret)
118
119 for (i = 0; url_protocols[i]; i++) {
121
123 continue;
125 continue;
126
127 ret[ret_idx++] = up;
128 }
129
130 return ret;
131 }
const URLProtocol ff_async_protocol
Memory handling functions.
const URLProtocol ff_libsrt_protocol
const URLProtocol ff_srtp_protocol
const URLProtocol ff_http_protocol
const URLProtocol ff_rtmpts_protocol
const URLProtocol ff_libssh_protocol
const URLProtocol ff_unix_protocol
const URLProtocol ff_librtmpt_protocol
const URLProtocol ff_sctp_protocol
const URLProtocol ff_tcp_protocol
const URLProtocol ff_ffrtmpcrypt_protocol
const URLProtocol ff_mmsh_protocol
const AVClass * ff_urlcontext_child_class_next(const AVClass *prev)
const URLProtocol ff_librtmpte_protocol
const URLProtocol ff_rtmpe_protocol
const URLProtocol ff_tls_protocol
const URLProtocol ff_crypto_protocol
const URLProtocol ff_rtmp_protocol
int av_match_name(const char *name, const char *names)
Match instances of a name in a comma-separated list of names.
const URLProtocol ff_pipe_protocol
const URLProtocol ff_tee_protocol
const URLProtocol ff_rtp_protocol
const URLProtocol ff_bluray_protocol
const URLProtocol ff_file_protocol
const URLProtocol ff_ffrtmphttp_protocol
const URLProtocol ff_httpproxy_protocol
const URLProtocol ff_subfile_protocol
#define FF_ARRAY_ELEMS(a)
const URLProtocol ff_udp_protocol
const URLProtocol ff_librtmps_protocol
const URLProtocol ff_rtmps_protocol
Describe the class of an AVClass context structure.
const URLProtocol ff_md5_protocol
const URLProtocol ff_librtmp_protocol
const URLProtocol ff_hls_protocol
const URLProtocol ff_rtmpte_protocol
const URLProtocol ff_cache_protocol
const URLProtocol ff_data_protocol
const URLProtocol ff_gopher_protocol
const char * avio_enum_protocols(void **opaque, int output)
Iterate through names of available protocols.
const URLProtocol ff_prompeg_protocol
const URLProtocol ff_udplite_protocol
const URLProtocol ff_mmst_protocol
const URLProtocol ff_libsmbclient_protocol
const URLProtocol ff_https_protocol
const URLProtocol ff_icecast_protocol
const URLProtocol ff_rtmpt_protocol
const URLProtocol ff_concat_protocol
unbuffered private I/O API
const URLProtocol ff_librtmpe_protocol
const URLProtocol ff_ftp_protocol
const URLProtocol ** ffurl_get_protocols(const char *whitelist, const char *blacklist)
Construct a list of protocols matching a given whitelist and/or blacklist.
void * av_mallocz_array(size_t nmemb, size_t size)