Merge pull request #197979 from justinas/ffmpeg-libplacebo

ffmpeg: add libplacebo

authored by Atemu and committed by GitHub e789c797 ca817d66

+5 -1
+5 -1
pkgs/development/libraries/ffmpeg/generic.nix
··· 52 52 , withIlbc ? withFullDeps 53 53 , withJack ? withFullDeps && !stdenv.isDarwin # Jack audio 54 54 , withLadspa ? withFullDeps # LADSPA audio filtering 55 + , withLibplacebo ? withFullDeps && !stdenv.isDarwin # libplacebo video processing library 55 56 , withLzma ? withHeadlessDeps # xz-utils 56 57 , withMfx ? withFullDeps && (with stdenv.targetPlatform; isLinux && !isAarch) # Hardware acceleration via intel-media-sdk/libmfx 57 58 , withModplug ? withFullDeps && !stdenv.isDarwin # ModPlug support ··· 209 210 , libogg 210 211 , libopenmpt 211 212 , libopus 213 + , libplacebo 212 214 , librsvg 213 215 , libssh 214 216 , libtheora ··· 288 290 */ 289 291 290 292 let 291 - inherit (lib) optional optionals optionalString enableFeature; 293 + inherit (lib) optional optionals optionalString enableFeature versionAtLeast; 292 294 in 293 295 294 296 ··· 469 471 (enableFeature withModplug "libmodplug") 470 472 (enableFeature withMysofa "libmysofa") 471 473 (enableFeature withOpus "libopus") 474 + (optionalString (versionAtLeast version "5.0" && withLibplacebo) "--enable-libplacebo") 472 475 (enableFeature withSvg "librsvg") 473 476 (enableFeature withSrt "libsrt") 474 477 (enableFeature withSsh "libssh") ··· 571 574 ++ optionals withIconv [ libiconv ] # On Linux this should be in libc, do we really need it? 572 575 ++ optionals withJack [ libjack2 ] 573 576 ++ optionals withLadspa [ ladspaH ] 577 + ++ optionals withLibplacebo [ libplacebo vulkan-headers ] 574 578 ++ optionals withLzma [ xz ] 575 579 ++ optionals withMfx [ intel-media-sdk ] 576 580 ++ optionals withModplug [ libmodplug ]