Comments (6)
Lines 61 to 67 in 286f1b9
The AVIF_LOCAL_RAV1E
variable is indeed unused when AVIF_CODEC_RAV1E
is OFF, so the unused AVIF_LOCAL_RAV1E
warning makes sense to me.
I suggest leaving it as is but if the warning is too annoying, according to this thread one can either use --no-warn-unused-cli
or remove -DAVIF_LOCAL_RAV1E=OFF
.
We can also add set(ignoreMe "${AVIF_LOCAL_RAV1E}")
but it does not look as good practice.
from libavif.
My question is whether we intend to be backward compatible. I don't get the cmake warning if I run that cmake command with libavif 1.0.2, for example.
There is a subtle difference between "not used" and "used but has no effects". In libavif 1.0.2, -DAVIF_LOCAL_RAV1E=OFF is used but has no effects when -DAVIF_CODEC_RAV1E=OFF is specified.
from libavif.
This is similar to passing -DAVIF_ENABLE_GTEST=OFF -DAVIF_LOCAL_GTEST=OFF to cmake on the main branch. There is no warning about AVIF_LOCAL_GTEST being not used.
from libavif.
I don't get the cmake warning if I run that cmake command with libavif 1.0.2, for example.
To me, the presence or absence of a warning has no impact on the backward compatibility, as long as it works.
This is similar to passing -DAVIF_ENABLE_GTEST=OFF -DAVIF_LOCAL_GTEST=OFF to cmake on the main branch. There is no warning about AVIF_LOCAL_GTEST being not used.
So this is rather a consistency question than a backward compatibility question?
If so, we can use set_local_or_system_option
for all fields, not only libyuv and libsharpyuv.
We talked about that with @vrabaud earlier today and the conclusion was that there was little interest in adding the capacity to completely disable zlib/png dep (off/local/installed choice instead of the current local/installed). However, having -DAVIF_LIBYUV=LOCAL
next to -DAVIF_LOCAL_ZLIBPNG=ON
is inconsistent, so it may be a sufficient reason to use set_local_or_system_option
everywhere, on top of what you mentioned.
from libavif.
What I can do is display a message that this is the old way of doing things and what the new way is. I'll check whether the variable exists, is ON or OFF and that will also remove the warning.
from libavif.
I understand Vincent wanted to support the old AVIF_LOCAL_ variables. That's why I reported this warning message. The current support for AVIF_LOCAL_RAV1E is good enough, but it doesn't fully match the original support.
Vincent: The deprecation message you suggested is a good idea.
from libavif.
Related Issues (20)
- Sample HDR AVIF decoded to JPG shows incorrect colors HOT 8
- How to build a dynamic library that statically links all dependencies? HOT 1
- Ignore and skip FullBoxes with an unrecognized version
- How to build the.A use of iOS platform? HOT 2
- Make libyuv package-friendly dependency HOT 2
- Roll YCgCo-R out HOT 1
- Add Homebrew install instructions and avifdec/avifenc examples to README HOT 6
- autoconf etc. HOT 1
- avifImageRGBToYUV should set color space to default values HOT 2
- Findrav1e.cmake ignores library dependencies listed in the generated pkgconfig file HOT 5
- [Function Request] avifenc supports svt and rav1e encoder options key-value HOT 2
- MSYS/MinGW32: Linking error, undefined references to Nt file functions HOT 2
- Noticeable color shift HOT 6
- Does CVE-2024-1580 affect libavif with dav1d decoder? HOT 1
- Static build issues on MSYS2 HOT 4
- sharpyuv conversion failed HOT 2
- libavif.a should not be a combined archive library HOT 5
- Not able to build static build on amazon linux 2023 HOT 9
- GIF encodes with wrong frame rate HOT 14
- Avif-alpha is working as expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libavif.