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
Instead of hard-coding the bindings and position in pl_shader_res, place
them dynamically once w...
Debanding in particular requires linear sampling, and sh_bind in general
requires 2D, sampleable...
By just clearing the output_w/h again. This basically makes it an
invisible operation as far as ...
This makes no more sense, since it's part of the color_repr.
49de18df5426dc7c81bc0015b1aef8b25b234d73 authored about 7 years ago by Niklas Haas <[email protected]>
This adds the secondary shader as a subpass of the first shader;
exposing it as a function (much...
This copies all elements from one array into another.
849b064be88aca1777d81b7adabd83f795949856 authored about 7 years ago by Niklas Haas <[email protected]>
This is a helper built on top of talloc, which maintains a refcounted
container. The function `t...
This was missing for whatever reason.
72c5de26386b53ed8fe35668d5dbaf0db91dd2f8 authored about 7 years ago by Niklas Haas <[email protected]>Left-over from an earlier API design.
f21e36af1a1df26e4956f1c8d9679c088019ab4b authored about 7 years ago by Niklas Haas <[email protected]>v0.1.2
Fixes:
- Add missing header file
- Cosmetic fixes in the generated shaders
Improvements...
822f7ac00f6ca4635f297cb9a62ad02652f91f00 authored about 7 years ago by Niklas Haas <[email protected]>91c724f6d31d8e6ad8b599abe8233b182ae1e7d0 authored about 7 years ago by Niklas Haas <[email protected]>
41395c81eaa89c99f488d9405e74a2a5df60cc06 authored about 7 years ago by Niklas Haas <[email protected]>
In particular, the device limits
93a067568245dab79920dfa0a977b6c9904e781e authored about 7 years ago by Niklas Haas <[email protected]>4582227b7f3636ecb5e7538e048fb78261b5317d authored about 7 years ago by Niklas Haas <[email protected]>
b66a245433852046f083aab956c65344d217bdcd authored about 7 years ago by Niklas Haas <[email protected]>
- enable IRC notifications
- enable only for whitelisted branches
- enable test framework + bett...
d0bd22196200b46984162bb6b8a2cd8d2d4e1679 authored about 7 years ago by ePirat <[email protected]>
Forgot to commit this, it seems..
ae186785d261ecfd215d698ea311e696ac36bf06 authored about 7 years ago by Niklas Haas <[email protected]>No need to waste a VA on this (or force the user to pass one in)
df91c5d3a45574365630f252b1effa08330ce901 authored about 7 years ago by Niklas Haas <[email protected]>Compute shaders don't have this (for obvious reasons)
a433f2906db1b4a31927e42e66d045befab14880 authored about 7 years ago by Niklas Haas <[email protected]>Missing space after layout()
9f9ee63a5299a0e536369c2717b737699e80355d authored about 7 years ago by Niklas Haas <[email protected]>
Omitting this doesn't actually break anything due to the way sh_fresh
works, but it's still the ...
I've also found some independent resources describing this exact
algorithm. In particular, one o...
Turns out both Vulkan and OpenGL require this, and D3D11 apparently as
well.
And out of the params struct, where it doesn't really fit. (Due to the
fact that the params stru...
Instead of having the user pass in seed values, instead pass in a global
`index` on pl_shader ge...
Returns floats (in pixels) instead of integers in half-pixels. No real
reason not to. Floats are...
- get rid of the useless padding field, since padded textures aren't a
thing in practice, and ...
In particular, the device limits
84f7ba57330b97b70307e0ce3c2eca5d70709ed7 authored about 7 years ago by Niklas Haas <[email protected]>e99b3fe0b5e5f2742550e378288b83292ec80d5d authored about 7 years ago by Niklas Haas <[email protected]>
5532586948897e68ff8429aff375fac28366fca3 authored about 7 years ago by Niklas Haas <[email protected]>
- enable IRC notifications
- enable only for whitelisted branches
- enable test framework + bett...
73bc4ac0fca61ff1a0ea63142eaf36e3567b2bdc authored about 7 years ago by ePirat <[email protected]>
Forgot to commit this, it seems..
ace2b298068d4d1221645ad8ad26ddb408dcfbdd authored about 7 years ago by Niklas Haas <[email protected]>
Currently only supports ordered dither and white noise. I plan on adding
blue noise as well; per...
Omitting this doesn't actually break anything due to the way sh_fresh
works, but it's still the ...
No need to waste a VA on this (or force the user to pass one in)
efd0d9a50ddd64d09ed2dd07be8bdb8317c23aba authored about 7 years ago by Niklas Haas <[email protected]>Compute shaders don't have this (for obvious reasons)
17505dadeb3d05a8787a736c8a918f5af7c77b96 authored about 7 years ago by Niklas Haas <[email protected]>
I've also found some independent resources describing this exact
algorithm. In particular, one o...
Missing space after layout()
3f1af99e30977d555723731e508a045b002e0784 authored about 7 years ago by Niklas Haas <[email protected]>
The default settings are changed (since the recent fixes have made async
compute stable to enabl...
This corresponds to a typical standard gamut SDR RGB monitor.
9b2978d20eff8b1c4f6368f31afbbbcbd64d8e21 authored about 7 years ago by Niklas Haas <[email protected]>2cd5792c0a7601856daa3264a87cb552fe6c3699 authored about 7 years ago by Niklas Haas <[email protected]>
Not only are these unnecessary, but so is the env var check in this
case. Probably for the better.
Was missing a stub function
5911f94baba3918120890d7c0e3d70a532ead362 authored about 7 years ago by Niklas Haas <[email protected]>
Since assert() can be compiled out, and users will vehemently argue for
their right to do so, ju...
7eb7a054c538dfd16854b03f67a3dd1cba1a7706 authored about 7 years ago by Niklas Haas <[email protected]>
I didn't like the nested blocks. I also think `usewinloc` sounds sort of
weird, so change the fo...
To cross compile using mingw32:
$ meson --cross-file cross_mingw_x86_64.txt build-w64
or
$ me...
169ad513257a5a2f854015bd55c0cf11d9bfcb4b authored about 7 years ago by Thomas Guillem <[email protected]>
The _create_local function need the msvcr100.dll that is available starting
Windows 7.
bbeb134f313b51e3d644c1581c3850def7f6d553 authored about 7 years ago by Thomas Guillem <[email protected]>
Remove one duplicate definition, and move the dispatch table to the
bottom.
Instead of recreating the object completely. One fewer allocation, not
that it matters..
Needed for the definition of pl_matrix3x3 etc.
fefc27e4af7cab734330d29753d54ee216ac8ebb authored about 7 years ago by Niklas Haas <[email protected]>
Even for coherent buffers, we technically need to ensure writes are made
visible to the host by ...
9398032c633c603f76cdf1f4169d0a6bfb105f2f authored about 7 years ago by Niklas Haas <[email protected]>
After lots of testing and careful cross-examination between HDR UHD
clips and their SDR counterp...
This accomplishes several things:
1. vec4 colors are now explicitly always normalized such that...
7aa14ac3d6ef778770aa0c9021ae282f20c97ccf authored about 7 years ago by Niklas Haas <[email protected]>
Basically a wrapper around PL_ALIGN2 so users don't have to NIH this.
Might add more such wrappe...
d4ea5efb5deced3b7951b68f0ca044d8a2e46d0e authored about 7 years ago by Niklas Haas <[email protected]>
As a rule of thumb, if there's a pl_foo_default_params, then specifying
a const struct pl_foo_pa...
9dc8f17a2916dc68782d82be8177b934b3b421a0 authored about 7 years ago by Niklas Haas <[email protected]>
Apparently atexit() in libraries is bad news, and pthread_once_t (in
printf.c) leaks memory anyw...
This is to avoid everybody having to reimplement the same logic
internally. It also defaults the...
The QF index and the qinfo index are not necessarily the same. In fact,
the former can be arbitr...
New extensions will be guarded by their presence in vulkan.h, so I can
add new enumeration membe...
Let's make sure we don't end up in confusing scenarios where code only
randomly works on some pl...
Since nobody can agree on adding `printf_l` to the standard, we have to
do this using OS-depende...
This is basically equivalent to hardware bilinear/bicubic sampling.
c9c9c33b84f2f7ebbadf8b3902e071f5702a2540 authored about 7 years ago by Niklas Haas <[email protected]>Re-used some of the logic from the polar sampling setup code
28318e82372c1ed8fcb484e748717043ecb78116 authored about 7 years ago by Niklas Haas <[email protected]>5908cb4638b44ba9b6595aa4809b1f32621db88d authored about 7 years ago by Niklas Haas <[email protected]>
The mpv code hard-coded this to linear, but we need to make it dynamic.
181d424b7bbf728017c1e3737344a03bdd22d2f2 authored about 7 years ago by Niklas Haas <[email protected]>
Since e.g. `uselocale` can override `setlocale` for that thread, and we
have absolutely no way o...
The color attachment pass should be using the access mask of the color
attachment write, *not* w...
It's common to have e.g. build.foo or build.clang
c64df532169a347ac8a178efe55d1f971b57f178 authored about 7 years ago by Niklas Haas <[email protected]>
See mpv commit c2d4fd0ef43e44c5c8caee13ae486ae05784c3a5 for more
information.
Using install_headers with subdirectories like that breaks completely.
Solve it by just using su...
This is component order invariant, so make it so. Fixes a bug where
a2bgr10 etc. are not correct...
For sorting, we try a few heuristics but ultimately maintain the
guarantee that formats with "mo...
1. Some capabilities now also imply other capabilities
2. Texture creation is now *always* suppo...
Fragment shader is still TODO.
Also, the test desperately needs to be improved. Right now it ju...
b38dad14a7eaea81302831ecbbe761383ac6bf2e authored about 7 years ago by Niklas Haas <[email protected]>Thank god for LIBPLACEBO_LEAK_REPORT
636725c025c5a8cec4c653c52935f73adebf9510 authored about 7 years ago by Niklas Haas <[email protected]>size_t can never be < 0 anyway.
eeebbb725d56e96be5bc6184359260010569f8c9 authored about 7 years ago by Niklas Haas <[email protected]>1efdfe2f24c7e9214392923b253260fbc39b75e9 authored about 7 years ago by Niklas Haas <[email protected]>
First of all, make sure we warn the user if NDEBUG was set; with a
suitably evil sounding env va...
This fixes a bug where pl_dispatch would use the format type, possibly
leading to undefined beha...
Needed for symmetry
541d69574d926e1531ce15219cb7a46b616510ec authored about 7 years ago by Niklas Haas <[email protected]>
No reason to make this dynamically allocated. It makes zero sense to
have more namespaces than t...
This makes the build directory a bit saner
4035eb9293f61482fc6514bbda2042c3e7784c91 authored about 7 years ago by Niklas Haas <[email protected]>
In order to release the resources associated with a shader without
submitting anything.
This was brittle and ugly and slow and annoying anyway. Instead, turn
this into a user problem. ...
dad48741c9551f6ddd1b1ab5532fe58f8459c26e authored about 7 years ago by Niklas Haas <[email protected]>
This avoids all potential headaches due to multiple evaluation of the
compute shader position macro
59a9e615716ae9d3e80c77b63aaa4f8b96c6ba65 authored about 7 years ago by Niklas Haas <[email protected]>
This required making some (semi-significant) changes to shaders/ra as
well. This provides the in...
Still missing the fake vertex simulation; but this is a start.
0372e74efda56dcc7bc5fe1067e13ab32895420c authored about 7 years ago by Niklas Haas <[email protected]>
For shaders which require access to "configured" objects, this tracks
the object's lifetime and ...
Taken from mpv, with some modifications to fit the new system.
Not entirely sure I'm happy with...
6c8c357c5bb2e0f345ea9446ac8e37f5d9760e6f authored about 7 years ago by Niklas Haas <[email protected]>This is more convenient code-wise. Also adds some much-needed helpers.
f2a3064e209fbaeda6252a4724977f28d58d4421 authored about 7 years ago by Niklas Haas <[email protected]>ff2c971b84843473ee61ea27cd655403088340fb authored about 7 years ago by Niklas Haas <[email protected]>