Commit Graph

9 Commits

Author SHA1 Message Date
Henrik Gramner 53efaa9bba dav1dplay: Update to new libplacebo API 2022-12-13 13:06:45 +00:00
Emmanuel Gil Peyrot 58cb4cf005 dav1dplay: Add -lm for llround() support
Neither --buildtype=plain nor --buildtype=debug set -ffast-math, so
llround() is kept as a function call and isn’t optimised out into
cvttsd2siq (on amd64), thus requiring the math lib to be linked.

Note that even with -ffast-math, it isn’t guaranteed that a call to
llround() will always be omitted (I have reproduced this on PowerPC), so
this fix is correct even if we ever decide to enable -ffast-math in
other build types.
2021-02-11 14:18:14 +01:00
Niklas Haas 61b6545678 dav1dplay: Update/modernize placebo-based renderer
Upstream libplacebo added support for dav1d integration directly,
allowing us to vastly simplify all of this code. In order to take
advantage of new optimizations, I had to allow update_frame to unref the
Dav1dPicture. (This is fine, since double unref is a no-op)

In addition, some of the functions we use were deprecated in recent
libplacebo versions, so since we're taking a new dependency we might as
well fix the deprecation warnings.
2021-02-06 10:50:52 +01:00
Marvin Scholz c1c41ff098 Dav1dPlay: Allow runtime renderer selection 2020-05-15 10:49:14 +02:00
Marvin Scholz 7f5cf34d06 Dav1dPlay: Fix renderer selection 2020-05-15 02:23:19 +02:00
Marvin Scholz 41e0819960 Dav1dPlay: Add support for OpenGL with libplacebo 2020-05-14 22:44:50 +02:00
Marvin Scholz 9c56be26dc Dav1dPlay: Split FIFO to different files
To un-clutter the main dav1dplay.c, move the fifo to its own
file and header.
2020-05-14 22:44:50 +02:00
Konstantin Pavlov e36ebb6fc2 examples: fail when SDL is not found
Now when -Denable_examples=true is requested, meson will fail as
expected if there is no SDL available.
2020-03-07 01:12:07 +03:00
James Almer 3a77c57b0c
meson: move dav1dplay to a new examples section
dav1dplay shouldn't be built by default. And it's an example more than a tool.
2019-08-10 11:26:17 -03:00