Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/haasn/libplacebo
Official mirror of libplacebo
https://github.com/haasn/libplacebo
Simple oversight.
0fc6a1a678afca5c0caeec41d9c48d1ed5d2221b authored almost 2 years agoOops..
02540124a1a40a57bf108276583ade0e52f6f415 authored almost 2 years ago
To avoid constant recompilations due to mixing between frames of
different source brightness (be...
This is designed for SDR<->HDR, so prevent using it for HDR<->HDR out of
the box.
Instead of having to replicate this logic at every usage site, the
number of which is about to g...
This has no inverse curve, so don't default `auto` to it.
efcc1e50cf49186f3fd4784f5b72f6d2ded5a7a8 authored almost 2 years ago
Infinitely useful during development, no need to constantly NIH this
patch or re-invent it ad-hoc.
Especially for the pure BPC GLSL fallback path
b2c9bbb07af2d0f1288f8c8e944c1d783fccc1b8 authored almost 2 years ago
It's not that hard to convert to PQ and back in pure GLSL, so we might
as well do that for pure ...
Tests the fallback path for inverse tone-mapping on functions without
inverse tone mapping curves.
Always do BPC in PQ space instead of the function's native space,
because this produces signific...
The D > T branch had a number of fatal issues. One, the `p / N`
calculation was accidentally rou...
I just realized this is probably horribly broken on at least the vulkan
backend, and isn't usefu...
5a7dacee02f64f236bf2b5939d3fe75aefe316af authored almost 2 years ago
To safely attach a callback to the "GPU idle" state, replacing code
duplication of previous cons...
This array was never supposed to be static.
09e6ae38e99ffd904b3b0143bfa380487f563d26 authored almost 2 years agoMostly just to dump the array on failure.
f2c4da9d6121bb330c9fff640aad40e98c081190 authored almost 2 years agoReplaced by the almighty REQUIRE_FEQ().
11a0932c8b754e9ea796065dd94b780a126c4995 authored almost 2 years ago4eca348bf336696796bae1479003a0987738f4ac authored almost 2 years ago
And also fix some typos along the way...
ea53dda1952228836925b78f94efc8ef74e26e21 authored almost 2 years ago4124139f586587318c24d80ce5238138979cbfd8 authored almost 2 years ago
This can be used to do floating point equality comparisons while also
logging error values verbo...
6929d2e2ac0de25304d3bc9876652b5a7c9757ae authored almost 2 years ago
25ce18b47c0019fa777a4dbba5feb12038ba2d37 authored almost 2 years ago
30e21b0e29cd4b712c7cf24137e89fdce5f0d5b2 authored almost 2 years ago
80ad7f68250fd2b3842b71480f4e4866572f1eb9 authored almost 2 years ago
d92ec4152ff208c5cfe1aa250a5cc26ed50567b0 authored almost 2 years ago
8325cede4fb8b5eae8a7dec6b64a6c13c852ec69 authored almost 2 years ago
9023a5542b5f4c43db2cfff40dc73d52aea0b5f5 authored almost 2 years ago
2be0716fbca7cedc518ba81676f887f03b630b47 authored almost 2 years ago
151843298cd904106e2bdd9d4a5faa07467d70d2 authored almost 2 years ago
Actually prints out the offending memory regions. Very useful for
debugging, to avoid having to ...
06097120ff9d9c703160f54753d7580aa500aa4c authored almost 2 years ago
This can be used to make generic operator comparisons while logging
failure condiitons with expl...
Mostly for consistency with the other macros that I'm about to add.
a9c8741457bcadd272aca3ba16cb79b96939614e authored almost 2 years agoNo need to print this garbage
11844e9ff0cb60f9f46a0d17c83f8db7d1532539 authored almost 2 years agoThese commas should be semicolons...
6998fe0f39e73f2553536716db9f3e1b00a46848 authored almost 2 years ago77e101a7306819d7ad0173aeb1c2f96a64a5d808 authored almost 2 years ago
Clamp the output average to sqrtf(1.2) * the input average. or about
10%%. This allows brighteni...
The implementation for ST2094-10 is straightforward by just copying
equations from the correspon...
Based on SMPTE ST2094, and in particular A/341 ATSC 2094-40. We should
keep track of this so we ...
Based on FFMAX3
a8135f47cf6a1c4b0cf7238a03fb336295bdc8bd authored almost 2 years ago
This generally produces good results in such a case. ST2094-40 is better
than ST2094-10 even in ...
In SMPTE ST2094-40, it recommends applying an extra gain parameter to
raise the brightness of ve...
When HDR metadata is present, because this is expected to change
semi-frequently.
By just sticking it inside `pl_hdr_metadata`, happen what may.
We don't need access to the outp...
812586a54a13ea618097760fc4514abcb8f49e2c authored almost 2 years ago85847a8a6bd2a5cf6ebab3e88453370821aeb2e3 authored almost 2 years ago
This not only exposes the previous logic to users, but also adds support
for AVDynamicHDRPlus. U...
ae1e2398f5c9da2725f1a9158925f6dee1e0257d authored almost 2 years ago
Prefix this #define
2b0931b7b8e15cccc0d9db62a7d4bb4b8757d84c authored almost 2 years ago
Redundant in this case, since the per-scene values are both
authoritative and significantly more...
So, I was growing increasingly dissatisfied with the need to override
the HDR mastering display ...
This fixes memory leak of frames which had ref count initialized to 0
and `pl_rc_deref` would ne...
624e0f5ff956858c404fa8a6f90a5f14f1ae15af authored almost 2 years ago
ce6f96229c22e1b397678dd6946e92c6f08c2391 authored almost 2 years ago
There is 4 bytes padding in `pl_hook` struct, which makes MSAN unhappy
when we do `pl_mem_hash` ...
The layout of variables inside an SSBO is implementation-defined making
it not really safe to us...
To make leak detectors happy
56abbd26b6355222d91a3e98ed3ea527fce7f979 authored almost 2 years ago
To fix warning implicit conversion from 'int' to 'float' changes value
from 2147483647 to 214748...
This fixes error on 4.1:
error: initializer of const variable `pos' must be a constant expression
11398f0e8a906f92b55a14b8143964c54f7c019f authored almost 2 years ago
This one is a false positive, so just add an assert to silence it.
855280962b3f5adb453e53d89ea20387e25a1a81 authored almost 2 years ago
It doesn't like referencing values as part of the same struct
initialization.
Needed to load gl->GetProgramResourceIndex on GL <4.3.
Fixes: https://code.videolan.org/videola...
135e8f9f129e1c195d9ba94d21660589c49f9710 authored almost 2 years ago
This is probably nonsensical, since the plane swapping only happens
inside `pl_upload_plane`.
b76cc9fdccd90a4f21e97a395677cea35695e7da authored almost 2 years ago
Test for both 3- and 4-component formats, which ought to cover the lot.
dc37ee797fcd761115ad6be9cecc70f7c53e506f authored almost 2 years ago
Make a number of changes to this logic in the hopes of picking stupid
combinations (like device-...
723fd776db60cbc64914a523d94fc835af656fb8 authored almost 2 years ago
These two formats currently result in an assertion failure due to being
encoded in a format that...
34835565ccfaae830158768181bbbf423a7e41b1 authored about 2 years ago
We call vkDestroySurfaceKHR indiscriminately, even if VK_KHR_surface was
not even enabled. (Sinc...
All those values need to be handled and removing defualt case enables
compiler warning if someth...
Supresses warning about no return value from main()
3cec6d6f052e9f0c5d02d4ea33a09edceb807b81 authored about 2 years agoFixes some compilation warnings.
04b8ee2b05c401e0606cf3f7c9afeeca4be54b26 authored about 2 years ago
Insteand if printing big negative duration just skip it. Add TBR and TBN
print.
Works around an llvmpipe crash in the latest version of mesa.
See-Also: https://gitlab.freedesk...
20010a1d39c200f3e182d236ed2041ab1827dbae authored about 2 years agoNow we can finally actually compile this code. Yayifications?
e2484ccd91a227c11ddd21ff3960b859eab36791 authored about 2 years ago
On my end, I get a -Wswitch warning about these values not being members
of the DXGI_COLOR_SPACE...
This fails inside the headless build environment.
0d42e5c55ff535bd1936e77b10cdc19be8ff7f27 authored about 2 years ago
Useful for uploading endian-swapped buffers. Not exposed publicly
because using it correctly com...
In practice, this refers to big endian formats. This is done using the
new `pl_buf_copy_swap` he...
By setting `pl_plane_data.swapped` to true. Also try and create storable
DR buffers when serving...
And also perform some stylistic fixes on the other functions in here.
22dc313f729009f4944f205bc1fa70a8104ecb88 authored about 2 years agod24fd0f4d124eef43774e8aef5592ffd305257cb authored about 2 years ago
6250bb0140080055360cd0fa049dc8f854d56298 authored about 2 years ago
Greatly simplifies the process of calling these.
5e0b7b0b5b5acb8a70b7b95a3f10fa635f690b1b authored about 2 years ago
To avoid having to feed a `pl_dispatch` into all of the backend-agnostic
helpers. Motivated by a...
Reduce boilerplate.
864233aeba0b08d03f912a271824f5d144cf49ce authored about 2 years agoLogic equivalent to this is used in many places.
c417b58ce690f6a006f0736bc2f7231e99fc7bae authored about 2 years ago
This is actually valid on all versions of GLSL (that support layout
qualifiers), because the SSB...
UBOs and SSBOs in OpenGL cannot be set using glGetUniformLocation, they
must instead be updated ...
Rather than copy-pasting this defininition around.
3a12baa39cac677c5a0f0891cb6dc9502688d407 authored about 2 years ago
And leave "gpu.c" purely for the pl_gpu function wrappers and public
helpers from <libplacebo/gp...
Excluding the aarch64 images for now as a result of being blocked by
https://code.videolan.org/v...
Acording to SMPTE EG 432-1 Annex H, white point of DCDM X'Y'Z' is equal
energy, so adjust that t...
f05fb366993341c23608f2edb27f6aa2914f2d68 authored about 2 years ago
This should make clearer how to use encode/decode color.
PL_COLOR_SYSTEM_XYZ is expected to be D...
fb898add4ffad7798883e150ccfc5b9f1d48009d authored about 2 years ago
This fixes too frequent recompilation of pl_shader_dovi_reshape
9eb157c08819a09c212e07d41288373ed293212d authored about 2 years ago