extern const URLProtocol ff_file_protocol; extern const URLProtocol ff_ftp_protocol; extern const URLProtocol ff_hls_protocol; extern const URLProtocol ff_http_protocol; extern const URLProtocol ff_httpproxy_protocol; extern const URLProtocol ff_https_protocol; extern const URLProtocol ff_pipe_prot...
int64_t timestamp, int flags); int (*url_get_file_handle)(URLContext *h); int priv_data_size; const AVClass *priv_data_class; int flags; int (*url_check)(URLContext *h, int mask); } URLProtocol; 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. ...
URLProtocol是FFMPEG操作文件的结构(包括文件,网络数据流等等),包括open、close、read、write、seek等操作。 在在av_register_all()函数中,通过调用REGISTER_PROTOCOL()宏,所有的URLProtocol都保存在以first_protocol为链表头的链表中。 URLProtocol结构体的定义为(简化版,未完全列出所有成员): typedefstruct URLProtocol...
(uc->protocol_whitelist && !strcmp(uc->protocol_whitelist, e->value))); av_assert0(!(e=av_dict_get(*options, "protocol_blacklist", NULL, 0)) || (uc->protocol_blacklist && !strcmp(uc->protocol_blacklist, e->value))); if (uc->protocol_whitelist && av_match_list(uc->prot->na...
const AVClass *av_class; ///< information for av_log(). Set by url_open(). struct URLProtocol *prot; int flags; int is_streamed; /**< true if streamed (no seek possible), default = false */ int max_packet_size; /**< if non zero, the stream is packetized with this max pa...
1.avio接口 const char *avio_find_protocol_name(const char *url); int avio_check(const char *url, int flags); int avpriv_io_move(const char *url_src, con
Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} mstorsjo / libav Public Notifications You must be signed in to change notification settings Fork 2 ...
staticintinput_avio_open(input_plugin_t*this_gen){avio_input_plugin_t*this= (avio_input_plugin_t*) this_gen;inttoread = MAX_PREVIEW_SIZE;inttrycount =0;if(!this->pb) {/* try to open libavio protocol */if(avio_open2(&this->pb,this->mrl_private, AVIO_FLAG_READ,NULL,NULL) <0...
if (options && (*puc)->prot->priv_data_class && (ret = av_opt_set_dict((*puc)->priv_data, options)) < 0) goto fail;if (!options) options = &tmp_opts;av_assert0(!whitelist || !(e=av_dict_get(*options, "protocol_whitelist", NULL, 0)) || ...
8. struct URLProtocol *next; 9. int (*url_read_pause)(URLContext *h, int pause); 10. int stream_index, 11. int flags); 12. int (*url_get_file_handle)(URLContext *h); 13. int priv_data_size; 14. const AVClass *priv_data_class; ...