diff options
author | wm4 <wm4@nowhere> | 2020-07-08 21:55:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-07-08 22:42:05 +0200 |
commit | b93f142011381a9ad753a246ea112115f262e7a1 (patch) | |
tree | 0b5ed52a08599240f0d4f4ffad815dc7be33ee22 /libmpv/client.h | |
parent | 688251bc662c50bc7fe56bb1ec8fef4e1407cdf0 (diff) | |
download | mpv-b93f142011381a9ad753a246ea112115f262e7a1.tar.bz2 mpv-b93f142011381a9ad753a246ea112115f262e7a1.tar.xz |
client API: add software rendering API
This can be used to make vo_libmpv render video to a memory buffer. It
only adds a new backend API that takes memory surfaces. All the render
API (such as frame rendering control and so on) is reused.
I'm not quite convinced of the usefulness of this, and until now I
always resisted providing something like this. It only seems to
facilitate inefficient implementation. But whatever.
Unfortunately, this duplicates the software rendering glue code yet
again (like it exists in vo_x11, vo_wlshm, vo_drm, and probably more).
But in theory, these could reuse this backend in the future, just like
vo_gpu could reuse the render_gl API.
Fixes: #7852
Diffstat (limited to 'libmpv/client.h')
-rw-r--r-- | libmpv/client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpv/client.h b/libmpv/client.h index b23a69598d..339cee138b 100644 --- a/libmpv/client.h +++ b/libmpv/client.h @@ -232,7 +232,7 @@ extern "C" { * relational operators (<, >, <=, >=). */ #define MPV_MAKE_VERSION(major, minor) (((major) << 16) | (minor) | 0UL) -#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(1, 108) +#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(1, 109) /** * The API user is allowed to "#define MPV_ENABLE_DEPRECATED 0" before |