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
Tradeoffs, tradeoffs. This makes some less extreme samples a bit easier
on the eyes and less "bl...
See previous commit.
204eac112f9e5c2a7b3a46e059a206897432c241 authored over 1 year ago by Niklas Haas <[email protected]>
In retrospect I don't really care about advertising the 1e-6 safety
margin here, because it's al...
This was not in nits scale.
612071d5e238d8061a66061ace70aae4d0890fb8 authored over 1 year ago by Niklas Haas <[email protected]>
The intent of this test is to ensure that primaries map onto primaries,
which only makes sense w...
Helps with preserving chromaticity in very challenging scenes.
See-Also: https://github.com/mpv...
ead6f8dcd5f3a8301dd31b02426deae9f0441bb3 authored over 1 year ago by Niklas Haas <[email protected]>Allows scaling down the intensity of the saturation mapping step.
fe8fcc414a1cb568484c961328865961bc8321c0 authored over 1 year ago by Niklas Haas <[email protected]>
Significantly improves chromaticity retention in some problematic
scenes, without causing too mu...
Static HDR10 metadata may lie about the actual luminance range of the
source. To be more conserv...
vec1 doesn't exist, need to use sh_float_type here.
b19e44107fa847fd9290423eb10b3f28af3f8f4d authored over 1 year ago by Niklas Haas <[email protected]>Slight simplification, especially for upcoming fix.
217aa947e7948aa48f8d3daf02496275451217bb authored over 1 year ago by Niklas Haas <[email protected]>This is not interesting to users or for debugging.
47d189ac96a20ab53000d687d295a0277736c207 authored over 1 year ago by Niklas Haas <[email protected]>
No need to print the nitty gritty details here at PL_DEBUG verbosity,
just print a condensed sum...
Since this happens at per-frame level in mpv. Not entirely happy with
this solution but it's bet...
This reverts commit fa811a40e95a00eafe5cdb592ec311fee49fa3ef.
9826640a5172e5da93f06e1e3428066230d9a9ea authored over 1 year ago by Niklas Haas <[email protected]>This reverts commit e78c35121a36f4f45597f8a2698d282beae16150.
f7fb586ea859e2d6a9f16202a0ea75b5f8a05a08 authored over 1 year ago by Niklas Haas <[email protected]>
Avoids shader recompilation on ptr change, and is also less boilerplate
(and less memory usage).
Very easy to slot into the new variable reference wrapper system.
99de4226fe3a49131a3b537e5878b0542b8925cc authored over 1 year ago by Niklas Haas <[email protected]>Will be used to enable new swizzling types.
082970757331fb9c87fe1d4b3465d495d6393e62 authored over 1 year ago by Niklas Haas <[email protected]>
No need for this class to really exist outside of the GLSL statement
parser, and it avoids confl...
Sigh, no real recourse other than to brute force the mapping.
319593bcaecf02d7e61137c7ab89eab35fb0002e authored over 1 year ago by Niklas Haas <[email protected]>
Still need to add a custom UI for the advanced tunables, but I'll defer
that to a future commit.
28d8e8b75601f766b7378ad118218c4c636f87b4 authored over 1 year ago by Niklas Haas <[email protected]>
Instead of having a single `float param` that magically affects
whichever function is chosen (an...
I briefly considered exposing this as yet another pointer-to-a-struct,
but decided it was ultima...
For consistency with mobius, with whose parameter I intend to merge this
knee point selection. T...
For consistency with st2094_40 and spline. Motivated by a desire to
expose this as an independen...
Probably these are so specific so as to never get exposed further
upstream, so this marks the fi...
To not break convention.
72dd716af84be90d638a370c0868c8600fee4a45 authored over 1 year ago by Niklas Haas <[email protected]>Regression test for 5cf754b97298bf7c
8a5e97ef7b5445b29b172ae5388bdf9e599dca51 authored over 1 year ago by Niklas Haas <[email protected]>
Handle it like a normal step() function in this case. Protects against
some hypothetical edge ca...
isnormal() explicitly returns false on zero, even though we want to
accept this case. Use fpclas...
63c3767e5eccd3a475eff45912b1fcb1dbfe5cf9 authored over 1 year ago by Kacper Michajłow <[email protected]>
Can happen when e.g. triggering screenshot in mpv before any frames are
available (empty queue).
Apparently this makes releases more discoverable by users, or something.
Fixes: https://github....
e9b39ab190d1e241d59606d04d8feba9d0c5c788 authored over 1 year ago by Niklas Haas <[email protected]>
Helps avoid GC/realloc thrashing on high FPS displays, especially with
the fact that mpv now cal...
This can stall for significant amounts of time (upwards of several ms).
1ad158b5b7608658ea025b49f26a88a177fa94fe authored over 1 year ago by Niklas Haas <[email protected]>This fixes transfers of large images, that would otherwise fail.
Fixes: https://github.com/mpv-...
e67287c0dee2ee735f15fc0f0dbfe1565e0001bf authored over 1 year ago by Niklas Haas <[email protected]>
No longer needed. And while it works for most GPUs, let's keep the limit
that is required to wor...
Helper function to split a texture transfer into the maximum possible
slice size, based on GPU l...
This fixes transfers of large images, that would otherwise fail.
Fixes: https://github.com/mpv-...
fe3d8a1ec208551ba604104ee0e6100e567db75c authored over 1 year ago by Niklas Haas <[email protected]>0c3e0f8e7df2d225bcd0974afc161954fcba2d3b authored over 1 year ago by Kacper Michajłow <[email protected]>
Do not require texture and buffer to be the same size. This allows to
download/upload ROI to/fro...
366e25e13bfa9bb284d5750a4341d985780a7a1c authored over 1 year ago by Kacper Michajłow <[email protected]>
Unnecessary complication, in practice SSBOs are larger and more suited
anyway.
Fixes: https://github.com/haasn/libplacebo/issues/194
f6af5d008fd529e540f95feeb12e8a4bb7ff55df authored over 1 year ago by Niklas Haas <[email protected]>01cd819edef83eb3105882f6c67454b975ad6eaa authored over 1 year ago by Niklas Haas <[email protected]>
No need to NIH this code here.
d874dfc01bed4a182ca4e302c8a2874920202ffe authored over 1 year ago by Niklas Haas <[email protected]>Inconsequential, but sorts these structs better.
38a0d6671b15f2386622adc89dea0a59244e8048 authored over 1 year ago by Niklas Haas <[email protected]>58f9bf333e230f28c6c098aa1412d17fd222e12a authored over 1 year ago by Niklas Haas <[email protected]>
Add const char examples, and also document the `ident` type for
completeness' sake.
These are passed as pointers, with all the implications that entails.
fa811a40e95a00eafe5cdb592ec311fee49fa3ef authored over 1 year ago by Niklas Haas <[email protected]>
And allow it to return a constant string, suitable for use with #pragma
GLSL. Split off counting...
d1147dc809e34e1a37627f09d8efd666b3ccab49 authored over 1 year ago by Niklas Haas <[email protected]>
For hooks that return shaders, even though this is not currently a
supported use case in the mpv...
This should probably not have been a whitelist / struct assignment. But
oh well.
Fixes: https:/...
ada040ac0934a5cef1c1d488403d07e213f79c26 authored over 1 year ago by Niklas Haas <[email protected]>643850df46523b504bf0099b8a82cce94fcfb8f5 authored over 1 year ago by Niklas Haas <[email protected]>
Fixes: https://github.com/mpv-player/mpv/issues/12153
e0c6a8131e5ccd50f078988af1ce334ac9aaf814 authored over 1 year ago by Niklas Haas <[email protected]>
Instead of initializing the extra `psh` for shader merging and bespoke
texture fallback logic, j...
Fixes IsWindows10OrGreater() usage.
6d43ee9589610ca188b25be4de0dcc8ab2691fb8 authored over 1 year ago by Kacper Michajłow <[email protected]>
To completely disable smoothing, since even a smoothing period of 1.0
implies a small amount of ...
The old trigonometric expression was needlessly complicated when the
math here is just equivalen...
Since 51584f4a, page size on systems with more than 4 GB of VRAM can
exceed MAXIMUM_SLAB_SIZE, i...
This reverts commit 2557e27fe2d61f7eb4d8e6010e29982683095347.
e45b8130247a5fe41b33af504060444bad3cba6f authored over 1 year ago by Niklas Haas <[email protected]>
../src/glsl/glslang.cc:116:5: error: designated initializers cannot be used
with a non-aggregate...
This helps a little with SPIR-V code generation.
9c693a5a1762fc83078f85933f0532e2098d3254 authored over 1 year ago by Kacper Michajłow <[email protected]>For designated initializers support.
Ancient compilers might complain, but anything even multip...
2557e27fe2d61f7eb4d8e6010e29982683095347 authored over 1 year ago by Kacper Michajłow <[email protected]>...well.
Fixes: 94722c55cb0bf1f19e9db2b249ea9df41d2ae386
Fixes: https://github.com/mpv-player/m...
e7a22df7d2df37f22a9da65e57c2696c1768e2c1 authored over 1 year ago by Kacper Michajłow <[email protected]>
02d9df82b262df61a27191b5c0cd00d71485a3e2 authored over 1 year ago by Kacper Michajłow <[email protected]>
Improves overly long compilation time.
2f71d50fcdafb2ef560fbe823b8e2ad838638fe5 authored over 1 year ago by Kacper Michajłow <[email protected]>Removes all comments, newlines and leading spaces.
029613906f89b33bee8b4566004f1a7f7e9c9cdd authored over 1 year ago by Kacper Michajłow <[email protected]>
Use first GLSL line as reference how much spaces should be stripped for
given block.
94722c55cb0bf1f19e9db2b249ea9df41d2ae386 authored over 1 year ago by Kacper Michajłow <[email protected]>
d0c5118ea4acb2c4874e45599a2a673b48451cb7 authored over 1 year ago by Kacper Michajłow <[email protected]>
Starting from meson v1.2.1 it is unallowed to link to uninstalled static
libraries. This is how ...
This merges luma and chroma FGS into a single shader, resulting in name
collision of the shared ...
We want to use the locale-invariant asprintf_c, matching the behavior of
the old GLSL() macro.
3a037eec4251e0709827b6d99c96f026382bf120 authored over 1 year ago by Niklas Haas <[email protected]>
Doesn't actually amount to much of a change because we were already
doing the equivalent of this...
This code is bitrotten to hell and back.
8c7ce0be99e7eedb9299dae7d24c2409431b524e authored over 1 year ago by Niklas Haas <[email protected]>dd8bf6c8da374f0d963251c21c26418966972743 authored over 1 year ago by Niklas Haas <[email protected]>
Counting from the end of the array.
44cbe9b649f1791606ba1cc6f8fd6d791962020c authored over 1 year ago by Niklas Haas <[email protected]>d87b4ffe823403c60239c72d47431386f3ad1256 authored over 1 year ago by Niklas Haas <[email protected]>
4601c7bfb52ee7b49db79491de7dbf987df8daab authored over 1 year ago by Niklas Haas <[email protected]>
184820d3bab9e759933939b9dbd67080dfe01dcc authored over 1 year ago by Niklas Haas <[email protected]>
For convenience.
83cde451aef9f6c0f14cacf7d15f23fbdb6e42e3 authored over 1 year ago by Niklas Haas <[email protected]>
Redundant with the big heart on GitHub itself, but might as well have it
there to fill up the em...
After much deliberation and API revision, this is the form I settled on.
The new `pl_options` ba...
Multi-character variant of pl_str_split_char().
5687840723f765b30b47745840ea7b4b4b591f65 authored over 1 year ago by Niklas Haas <[email protected]>This felt a bit stale and in dire need of some cleanup.
3ef14431ed3c1d657dff037f54082336261fd2c6 authored over 1 year ago by Niklas Haas <[email protected]>To accompany REQUIRE_FEQ and REQUIRE_MEMEQ
0811dfa44eaa0aee35a5958f25d66a84880546ec authored over 1 year ago by Niklas Haas <[email protected]>
Actually, libplacebo no longer directly inherits any mpv code, since the
filter code has been co...
Nobody ever ended up using this, any support I've ever gotten has either
come from patreon or gi...
2347cebf8d1c0bcfcb72ac8011d19195325d3780 authored over 1 year ago by Niklas Haas <[email protected]>
Trying to load this layer causes issues on some systems, apparently,
even if it's reported as av...
These constants can be generously lowered, to the limits of floating
point precision (roughly 1e...
These are internally treated as integers, but have extra user-friendly
names associated with the...
I have improved the AR kernel by combining a number of techniques:
1. Instead of raising the co...
132a828fabce4cc6c78840d3e33736ca76c1255f authored over 1 year ago by Niklas Haas <[email protected]>31eb628dc4d31ac0bb22cd4ac6f4e012e52f13a6 authored over 1 year ago by Niklas Haas <[email protected]>