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
55c1073a5e0fc10d58ceb8cfb4f320c103b53ff8 authored about 2 years ago
cd71614c22558de547dc76efaed9b9901eb62771 authored about 2 years ago
5d2ccb145f4abadac26557e6b6146ab947cc201b authored about 2 years ago
This changes values to make error predictable and comparable to other
software. Generally color ...
These need the corresponding prefix (u/s respectively) in front of
`samplerBuffer`.
These are mapped straightforward because the word order is consistent
between vulkan and libplac...
Only tests creation and clearing, because the latter is a special case
on vulkan. Should be expa...
Because this can sometimes silently fail for obscure reasons.
811e1246eb36640fa4bca4ab53194f2d19793248 authored about 2 years ago
Since `pl_tex_export` is deprecated, we only need to worry about
`pl_vulkan_hold/release`. To en...
There's no reason we can't export/import opaque texture formats via DRM
modifiers, in particular...
Unfortunately, this is not a complete 1:1 mapping.
fc4336c66f4062be62421d57964e47552f5da448 authored about 2 years ago
Only adds support for creating/importing planar textures, but does not
yet add any planar textur...
No idea what this was originally for, but it's not used currently.
27654a4f2dd7592322092829b7f7c056fe1b5471 authored about 2 years agoFor determining the sizes of subsampled planes.
07c1ecd4bdc832e60686c8df2c3a3b7ca913ec2d authored about 2 years ago
Give `params->format` a shorter name, since it's about to be used even
more.
Since these newfangled planar formats can have quite long names.
130b85380bfb395077dee07731ed1f24b1106c49 authored about 2 years ago
This commit only adds the public-facing API and common GPU wrapping
code, but does not add any p...
This can be used to map P010 etc. natively, without requiring conversion
or up/down-shifting. Mo...
For consistency
fac329966bba78773593cde281369586d5b86ec8 authored about 2 years ago
I have no idea why these weren't in the list. There's no comment
indicating that this list shoul...
This incorrectly hard-coded VK_IMAGE_TYPE_2D, but we can also wrap 1D
and 3D textures (according...
807f826f44d23c2031fc3437bc9bce35c2cd58f2 authored about 2 years ago
Fixes array overflow with formats where alpha is not last compoment
371a0c10df13e2898f35a402816a0061b70095aa authored about 2 years agoStep in the direction of #209.
90e2c9203b782a30ef20cf93a4dc4fcaec79c287 authored about 2 years ago
These cannot be cleared directly as a result of Vulkan limitations, so
work around it by blittin...
This is a special case that we use to emulate texture clears on planar
vulkan textures, so it's ...
Setting up for the ability to use planar textures (and imageviews of
planar textures).
No need to require this, if a non-storage fallback path exists.
285f02534751442b2a74501dc23bf938acb1e95d authored about 2 years ago
This round() was supposed to be a floor, which is done implicitly by
truncating to ivec3.
I'm s...
2c1da7b95d35cba6b7251b7781e620a1c0cdba60 authored about 2 years ago
This can't be done directly as a result of vulkan limitations, so
work-around it by using our ex...
Instead of relying on the broken-ish `pl_shader_color_decode`, which
cannot do something better ...
Much better assumption in practice.
669f7d72f0c5bf986fe1532bf1e03903dfd76a4b authored about 2 years ago
As the comment mentions, if facing PL_COLOR_TRC_LINEAR input, we decide
to un-linearize for scal...
In practice, it's very unlikely users set the gamma field correctly -
tagging is usually missing...
Gamma curves like 2.6 etc are sufficiently different from normal gamma
2.2 that we shouldn't inc...
8a8948a89f41f249df1e3f6c7bf6889f427fdddb authored about 2 years ago
Missed by the switch from `pl_vulkan_hold` to `pl_vulkan_hold_ex`.
2a8099a8aba4123e9e0b3e1e79f36a75b9468555 authored about 2 years agod551a3c42bb3799e88e778ea7f3d0402a46efbff authored about 2 years ago
The only API that needed this was Vulkan, and the Vulkan-specific
helpers do this job better.
Including a test for the new semaphore helpers.
63d27a8657cfd2aecbcd44089117522c7cc54423 authored about 2 years agoAgain, only because it makes the code marginally easier to read.
6306e3bf50f8091c0a2737db970bc128786f0045 authored about 2 years ago
Mostly for posterity's sake, but also because it makes the code easier
to read. (YMMV)
In the interest of deprecating `pl_sync`, we need a Vulkan-specific
semaphore creation helper to...
The same deal with extensible params structs, as always. This refactor
also adds a new `uint32_t...
Instead of using a boolean `export` flag, generalize this parameter to
take an explicit queue fa...
Including the older extension triggers a warning, as the former is
considered entirely deprecated.
Versions of GL ES above 3.x technically require this extension to be
able to use samplerExternal...
This stretch factor was not supposed to be there, because the original
crop of the image lives i...
f9dacd3eb28b1f7322d32f878f66610d30d052c5 authored about 2 years ago
Finally, we no longer have to update this struct manually.
2a64dacaefe05e9d883409a01f06abc9f42b046f authored about 2 years ago
On shared glslang, these all resolve to libglslang.so, and appropriate
symlinks may or may not b...
This was strangely missing so far, which made it awkward to route this
around inside mpv. It's s...
Otherwise, zooming into a fullscreen image fails invalidating the cache,
resulting in a false po...
Stop indexing this array all the time and just give it a name.
a79e36600d9e475146cecb1cf867fe0abb14b8e0 authored about 2 years agoThis represents an important edge case.
8ca1a81a38e674ab782243eb5e9ab6ebe77838b8 authored about 2 years agoTo actually bump the bugfix version number.
4fb841f73cd735eee18485ce00c836ac2d56c4cc authored about 2 years ago
This causes regressions with latest versions of vulkan-headers,
including GPU hangs and shader e...
Because non-host-cached buffers will be too slow to read back from.
cab1aee250fa6a174e9f54eb2e7cb6a69181920c authored about 2 years agoSince non-host-cached buffers will be too slow to read back from.
869f70f2386395168018df5400c185301bb467bb authored about 2 years agode4e82b79844cfa48efde253226912181ad62797 authored about 2 years ago
Test for VK_MEMORY_PROPERTY_HOST_CACHED_BIT.
36ddf83fb3aea0b465176a33e0807e7c2b9b658a authored about 2 years ago
Indicates that host-mapped buffers are host-cached (i.e. can be read
from efficiently).
Using the new function `vk_malloc_avail`.
80c4856b283b79ef450f268cc8663c5129c83acd authored about 2 years ago
Use a whitelist of known-good vendors, because that's the only thing we
get from OpenGL. Amazing...
From `required` to `optimal`, since `pl_gpu_limits.host_cached` can be
used to test for the pres...
To allow testing the amount of available memory matching a given set of
property flags, without ...
When the param is not set or zero, the default should be used
before clamping, otherwise the par...
This change enables libplacebo to work in the WSL2 (WSLg) environment
where OpenGL is implemente...
Remove unnecessry allocation of `render_pass.tmp`.
When commit [0] added this reallocation of r...
9dffc512dbbac55a1d7666152f71af6d4eaf8ee4 authored about 2 years ago22ce304a16bfbf9445a5987452f90f53efbe594f authored about 2 years ago
dea499ced41832b9aaf0b740777462856a077b61 authored about 2 years ago
This marks the first time the entire syntax was documented outside of
the source code as referen...
No longer relevant.
0ad08778888c2bf7437b7b1a991ee12ff43d9377 authored about 2 years ago
Instead of highlighting after 0.5% of peak delta, highlight at a very
generous threshold (1e-6)....
368a1d9e651242ac0f448283452063917436daca authored about 2 years ago
Code tidiness.
41778dd24599d54143ddb3ac75156390eeb2d7a5 authored about 2 years ago4515e2a7e9eb8d3f78f164a7e1204421ff3a0b28 authored about 2 years ago
Disambiguate it slightly from rendering.md.
d2b5b7bd15b180488ab69f5587d82350d2be4e25 authored about 2 years agoThis logic regressed sometime in the move from mpv vo_gpu to libplacebo.
Fixes: https://github....
030b59d1771cdfe7c563480aa187dbc11645ca36 authored about 2 years agoSlightly more readable. I think.
c62182db6bb9c8ada70ebec2c8204ae979b64cf9 authored about 2 years ago141b8ec8ec0315a5657f268d38052e31630d0fa7 authored about 2 years ago
c148660ada044853c2f96ba5762edb7dc77fd140 authored about 2 years ago
Using `mkdocs` + `material` theme because it was the nicest-looking
thing that I found with a fe...
This is redundant with the switch coverage check, fails to capture the
intended logic correctly ...
AV1 only allows up to 12-bit depth out of the box, but we want to handle
the case of already up-...
Simple wrong check. PL_CHANNEL_NONE is not 0.
Fixes: https://github.com/mpv-player/mpv/issues/1...
7ead30db8aa75db28236eee40899f0ff6e3c9688 authored about 2 years ago
The current desaturation function extends linearly to infinity,
resulting in very bad behavior f...
The desaturation code was seemingly completely wrong. I have no idea
what it was even doing, but...
This branch was meant to be simplified by the introduction of the common
scale factor defined ab...
Since these are almost always a bug we want users to be aware about, due
to triggering other for...
The old code was written around the assumption that the film grain step
is always the first step...
These are definitely expected to change per-frame. Suppress the LUT
reinitialization warning, wh...
Prevents pl_shader_obj from getting freed before any allocated shaders
are done using them.
Clo...
7ad9eef18bacd3be8c174579b26a2014b8c52fbb authored about 2 years ago
As mentioned in https://github.com/haasn/libplacebo/issues/147 there is a
better way of doing th...
Splits the mpv hook stuff into its own file.
c0373263e665248b856625a71ff9a17d86218eef authored about 2 years ago
Can be used to allow things like tunable plane sizes or conditionally
enabling passes with 'bool...
Makes these clearer, in light of the fact that I plan on adding other
types of variables to thes...
Not a huge change, but since these are used for more than just sizes,
the name bothered me.
Remove some cruft left over from an older version of this API, when it
was still public.
Very primitive UI, but good enough for testing. Patches welcome(tm)
68bcb263414c7e8047373cb37adbd0f80c4b4c15 authored about 2 years ago