Lines Matching refs:up
108 static int url_alloc_for_protocol(URLContext **puc, struct URLProtocol *up,
116 if (up->flags & URL_PROTOCOL_FLAG_NETWORK && !ff_network_init())
119 if ((flags & AVIO_FLAG_READ) && !up->url_read) {
121 "Impossible to open the '%s' protocol for reading\n", up->name);
124 if ((flags & AVIO_FLAG_WRITE) && !up->url_write) {
126 "Impossible to open the '%s' protocol for writing\n", up->name);
137 uc->prot = up;
141 if (up->priv_data_size) {
142 uc->priv_data = av_mallocz(up->priv_data_size);
147 if (up->priv_data_class) {
148 int proto_len= strlen(up->name);
150 *(const AVClass **)uc->priv_data = up->priv_data_class;
152 if(!strncmp(up->name, uc->filename, proto_len) && uc->filename + proto_len == start){
188 if (up->flags & URL_PROTOCOL_FLAG_NETWORK)
220 URLProtocol *up = NULL;
238 while (up = ffurl_protocol_next(up)) {
239 if (!strcmp(proto_str, up->name))
241 if (up->flags & URL_PROTOCOL_FLAG_NESTED_SCHEME &&
242 !strcmp(proto_nested, up->name))
246 return up;