Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move gainmap function definitions to gainmap.c
Move two gainmap function definitions (avifGainMapCreate and avifGainMapDestroy). This is a good change on its own, but the reason I wanted to move them is to work around a strange unresolved symbol linker error on Windows if I enable -DBUILD_SHARED_LIBS=ON in ci-windows-installed.yml: avif_apps_internal.lib(avifjpeg.c.obj) : error LNK2019: unresolved external symbol __imp_avifGainMapMetadataDoubleToFractions referenced in function avifJPEGParseGainMapXMPProperties tests\avif16bittest.exe : fatal error LNK1120: 1 unresolved externals See https://github.com/AOMediaCodec/libavif/actions/runs/10046011390. I have debugged this for a long time but haven't found what is wrong. I also cannot reproduce this unresolved symbol linker error locally.
- Loading branch information