Commit f477a3f5 authored by Zhang Rui's avatar Zhang Rui Committed by Michael Niedermayer

avformat/async: support filling with a background thread.

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 72d1409e
...@@ -2654,6 +2654,7 @@ x11grab_indev_deps="x11grab" ...@@ -2654,6 +2654,7 @@ x11grab_indev_deps="x11grab"
x11grab_xcb_indev_deps="libxcb" x11grab_xcb_indev_deps="libxcb"
# protocols # protocols
async_protocol_deps="pthreads"
bluray_protocol_deps="libbluray" bluray_protocol_deps="libbluray"
ffrtmpcrypt_protocol_deps="!librtmp_protocol" ffrtmpcrypt_protocol_deps="!librtmp_protocol"
ffrtmpcrypt_protocol_deps_any="gcrypt gmp openssl" ffrtmpcrypt_protocol_deps_any="gcrypt gmp openssl"
......
...@@ -19,6 +19,18 @@ supported protocols. ...@@ -19,6 +19,18 @@ supported protocols.
A description of the currently available protocols follows. A description of the currently available protocols follows.
@section async
Asynchronous data filling wrapper for input stream.
Fill data in a background thread, to decouple I/O operation from demux thread.
@example
async:@var{URL}
async:http://host/resource
async:cache:http://host/resource
@end example
@section bluray @section bluray
Read BluRay playlist. Read BluRay playlist.
......
...@@ -496,6 +496,7 @@ OBJS-$(CONFIG_LIBSSH_PROTOCOL) += libssh.o ...@@ -496,6 +496,7 @@ OBJS-$(CONFIG_LIBSSH_PROTOCOL) += libssh.o
OBJS-$(CONFIG_LIBSMBCLIENT_PROTOCOL) += libsmbclient.o OBJS-$(CONFIG_LIBSMBCLIENT_PROTOCOL) += libsmbclient.o
# protocols I/O # protocols I/O
OBJS-$(CONFIG_ASYNC_PROTOCOL) += async.o
OBJS-$(CONFIG_APPLEHTTP_PROTOCOL) += hlsproto.o OBJS-$(CONFIG_APPLEHTTP_PROTOCOL) += hlsproto.o
OBJS-$(CONFIG_BLURAY_PROTOCOL) += bluray.o OBJS-$(CONFIG_BLURAY_PROTOCOL) += bluray.o
OBJS-$(CONFIG_CACHE_PROTOCOL) += cache.o OBJS-$(CONFIG_CACHE_PROTOCOL) += cache.o
......
...@@ -351,6 +351,7 @@ void av_register_all(void) ...@@ -351,6 +351,7 @@ void av_register_all(void)
/* protocols */ /* protocols */
REGISTER_PROTOCOL(ASYNC, async);
REGISTER_PROTOCOL(BLURAY, bluray); REGISTER_PROTOCOL(BLURAY, bluray);
REGISTER_PROTOCOL(CACHE, cache); REGISTER_PROTOCOL(CACHE, cache);
REGISTER_PROTOCOL(CONCAT, concat); REGISTER_PROTOCOL(CONCAT, concat);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment