[FFmpeg-devel] [PATCH 05/11] chromaber_vulkan: fix use of texture()
Lynne
dev at lynne.ee
Mon Feb 17 22:03:03 EET 2025
On 17/02/2025 19:31, Lynne wrote:
> While the rest of texture() uses were fine, this one was not.
> ---
> libavfilter/vf_chromaber_vulkan.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavfilter/vf_chromaber_vulkan.c b/libavfilter/vf_chromaber_vulkan.c
> index 65b53afd64..f8cfab1480 100644
> --- a/libavfilter/vf_chromaber_vulkan.c
> +++ b/libavfilter/vf_chromaber_vulkan.c
> @@ -142,7 +142,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
> } else {
> GLSLC(1, ivec2 size = imageSize(output_img[0]); );
> GLSLC(1, vec2 npos = vec2(pos)/vec2(size); );
> - GLSLC(1, vec4 res = texture(input_img[0], npos); );
> + GLSLC(1, vec4 res = texture(input_img[0], npos + 0.5f); );
> GLSLC(1, imageStore(output_img[0], pos, res); );
> for (int i = 1; i < planes; i++) {
> GLSLC(0, );
This patch actually broke the filter, since the sampler is normalized
(-1;1), so patch dropped.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA2FEA5F03F034464.asc
Type: application/pgp-keys
Size: 624 bytes
Desc: OpenPGP public key
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250217/bfd55348/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250217/bfd55348/attachment.sig>
More information about the ffmpeg-devel
mailing list