Fallback to native implementations #154
Answered
by
saucecontrol
andreas-eriksson
asked this question in
Q&A
-
Would it be possible to automatically fallback to native codecs in the library on Windows computers that does not have the Media Feature Pack installed? |
Beta Was this translation helpful? Give feedback.
Answered by
saucecontrol
Mar 14, 2024
Replies: 1 comment 3 replies
-
I'm not sure I fully understand the ask. You can basically achieve that today by registering the additional native codecs with By default, all Microsoft-published WIC codecs will be registered first on Windows, before the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's correct. The WIC codecs are treated as plugins to the pipeline -- they're just registered automatically for convenience.
UseWicCodecs
enumerates the codecs installed in WIC (through the registry), so there's no need to do your own check for installation of the media pack.For reference, the codec collection passed to the
ConfigureCodecs
action will contain anything registered byUseWicCodecs
. You are free to examine that collection and make whatever changes you like before the collection is locked in by the pipeline after the action completes.