FFmpeg: libavformat/protocols.c Source File
Go to the documentation of this file. 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
19 #include <string.h>
20
24
26
82
83 #include "libavformat/protocol_list.c"
84
86 {
89
90 for (
i = (uintptr_t)*iter; url_protocols[
i];
i++) {
91 ret = url_protocols[
i]->priv_data_class;
93 break;
94 }
95
96 *iter = (
void*)(uintptr_t)(url_protocols[
i] ?
i + 1 :
i);
98 }
99
101 {
103
104 for (
i = (uintptr_t)*opaque; url_protocols[
i];
i++) {
107 *opaque = (
void*)(uintptr_t)(
i + 1);
109 }
110 }
113 }
114
116 {
118 for (
i = 0; url_protocols[
i];
i++) {
119 if (!strcmp(url_protocols[
i]->
name,
name))
120 return url_protocols[
i]->priv_data_class;
121 }
123 }
124
126 const char *blacklist)
127 {
130
134
135 for (
i = 0; url_protocols[
i];
i++) {
137
139 continue;
141 continue;
142
144 }
145
147 }
const URLProtocol ff_librtmpte_protocol
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
const URLProtocol ff_md5_protocol
const URLProtocol ff_crypto_protocol
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce output
const URLProtocol ff_librtmpt_protocol
const URLProtocol ff_subfile_protocol
const URLProtocol ff_rtmpte_protocol
const URLProtocol ff_sctp_protocol
const URLProtocol ff_libamqp_protocol
const URLProtocol ff_libzmq_protocol
const URLProtocol ff_udplite_protocol
const URLProtocol ff_mmsh_protocol
const URLProtocol ff_rtmpt_protocol
const AVClass * ff_urlcontext_child_class_iterate(void **iter)
const URLProtocol ff_httpproxy_protocol
const URLProtocol ff_ftp_protocol
const URLProtocol ff_cache_protocol
const URLProtocol ff_android_content_protocol
const URLProtocol ff_data_protocol
const URLProtocol ff_dtls_protocol
const URLProtocol ff_fd_protocol
#define FF_ARRAY_ELEMS(a)
const char * avio_enum_protocols(void **opaque, int output)
Iterate through names of available protocols.
const URLProtocol ff_librtmps_protocol
const URLProtocol ff_libsrt_protocol
const URLProtocol ff_concat_protocol
const URLProtocol ff_bluray_protocol
const URLProtocol ff_ipns_gateway_protocol
const URLProtocol ** ffurl_get_protocols(const char *whitelist, const char *blacklist)
Construct a list of protocols matching a given whitelist and/or blacklist.
Describe the class of an AVClass context structure.
const URLProtocol ff_rtmpts_protocol
const URLProtocol ff_libssh_protocol
const URLProtocol ff_hls_protocol
const URLProtocol ff_rtmp_protocol
const URLProtocol ff_mmst_protocol
const URLProtocol ff_async_protocol
const URLProtocol ff_icecast_protocol
const URLProtocol ff_file_protocol
const URLProtocol ff_ffrtmphttp_protocol
const URLProtocol ff_rtmps_protocol
const URLProtocol ff_librtmp_protocol
const URLProtocol ff_librtmpe_protocol
const URLProtocol ff_http_protocol
const URLProtocol ff_concatf_protocol
const URLProtocol ff_rtmpe_protocol
#define i(width, name, range_min, range_max)
const URLProtocol ff_prompeg_protocol
const URLProtocol ff_tcp_protocol
void * av_calloc(size_t nmemb, size_t size)
const URLProtocol ff_gophers_protocol
const URLProtocol ff_pipe_protocol
const URLProtocol ff_https_protocol
const URLProtocol ff_tee_protocol
const URLProtocol ff_rtp_protocol
const URLProtocol ff_srtp_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_tls_protocol
IDirect3DDxgiInterfaceAccess _COM_Outptr_ void ** p
const URLProtocol ff_ipfs_gateway_protocol
const URLProtocol ff_unix_protocol
const URLProtocol ff_librist_protocol
const URLProtocol ff_ffrtmpcrypt_protocol
const URLProtocol ff_udp_protocol
const URLProtocol ff_gopher_protocol
const AVClass * avio_protocol_get_class(const char *name)
Get AVClass by names of available protocols.
const URLProtocol ff_libsmbclient_protocol
Generated on Fri Oct 17 2025 19:23:29 for FFmpeg by
doxygen
1.8.17