Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 884159 Details for
Bug 922543
media-video/ffmpeg some ebuilds have media-libs/libjxl slot operator missing
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libjxl-0.9.1 support for ffmpeg-6.0.1-r2
ffmpeg6-jxl09.patch (text/plain), 2.45 KB, created by
Patrice Levesque
on 2024-02-04 00:54:25 UTC
(
hide
)
Description:
libjxl-0.9.1 support for ffmpeg-6.0.1-r2
Filename:
MIME Type:
Creator:
Patrice Levesque
Created:
2024-02-04 00:54:25 UTC
Size:
2.45 KB
patch
obsolete
>--- a/libavcodec/libjxldec.c 2024-02-03 19:30:58.113905211 -0500 >+++ b/libavcodec/libjxldec.c 2024-02-03 19:33:25.623671805 -0500 >@@ -198,14 +198,22 @@ > JxlDecoderStatus jret; > /* an ICC profile is present, and we can meaningfully get it, > * because the pixel data is not XYB-encoded */ >+#if JPEGXL_NUMERIC_VERSION < JPEGXL_COMPUTE_NUMERIC_VERSION(0, 9, 0) > jret = JxlDecoderGetICCProfileSize(ctx->decoder, &ctx->jxl_pixfmt, JXL_COLOR_PROFILE_TARGET_DATA, &icc_len); >+#else >+ jret = JxlDecoderGetICCProfileSize(ctx->decoder, JXL_COLOR_PROFILE_TARGET_DATA, &icc_len); >+#endif > if (jret == JXL_DEC_SUCCESS && icc_len > 0) { > av_buffer_unref(&ctx->iccp); > ctx->iccp = av_buffer_alloc(icc_len); > if (!ctx->iccp) > return AVERROR(ENOMEM); >+#if JPEGXL_NUMERIC_VERSION < JPEGXL_COMPUTE_NUMERIC_VERSION(0, 9, 0) > jret = JxlDecoderGetColorAsICCProfile(ctx->decoder, &ctx->jxl_pixfmt, JXL_COLOR_PROFILE_TARGET_DATA, > ctx->iccp->data, icc_len); >+#else >+ jret = JxlDecoderGetColorAsICCProfile(ctx->decoder, JXL_COLOR_PROFILE_TARGET_DATA, ctx->iccp->data, icc_len); >+#endif > if (jret != JXL_DEC_SUCCESS) { > av_log(avctx, AV_LOG_WARNING, "Unable to obtain ICC Profile\n"); > av_buffer_unref(&ctx->iccp); >@@ -241,12 +249,20 @@ > /* set this flag if we need to fall back on wide gamut */ > int fallback = 0; > >+#if JPEGXL_NUMERIC_VERSION < JPEGXL_COMPUTE_NUMERIC_VERSION(0, 9, 0) > jret = JxlDecoderGetColorAsEncodedProfile(ctx->decoder, NULL, JXL_COLOR_PROFILE_TARGET_ORIGINAL, &jxl_color); >+#else >+ jret = JxlDecoderGetColorAsEncodedProfile(ctx->decoder, JXL_COLOR_PROFILE_TARGET_ORIGINAL, &jxl_color); >+#endif > if (jret == JXL_DEC_SUCCESS) { > /* enum values describe the colors of this image */ > jret = JxlDecoderSetPreferredColorProfile(ctx->decoder, &jxl_color); > if (jret == JXL_DEC_SUCCESS) >+#if JPEGXL_NUMERIC_VERSION < JPEGXL_COMPUTE_NUMERIC_VERSION(0, 9, 0) > jret = JxlDecoderGetColorAsEncodedProfile(ctx->decoder, &ctx->jxl_pixfmt, JXL_COLOR_PROFILE_TARGET_DATA, &jxl_color); >+#else >+ jret = JxlDecoderGetColorAsEncodedProfile(ctx->decoder, JXL_COLOR_PROFILE_TARGET_DATA, &jxl_color); >+#endif > /* if we couldn't successfully request the pixel data space, we fall back on wide gamut */ > /* this code path is very unlikely to happen in practice */ > if (jret != JXL_DEC_SUCCESS)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 922543
: 884159