Skip to content

Commit

Permalink
Translators: Add an AVIF translator
Browse files Browse the repository at this point in the history
This translator only supports still images for now, and supports both
decoding and encoding.

Encoding support has been tested only with aom, rav1e doesn’t build on
Haiku yet, see haikuports/haikuports#5534 for
one of the missing dependencies.

Change-Id: I716f4b862ed316b89b227bfed38072d72074201f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3040
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
  • Loading branch information
linkmauve authored and korli committed Aug 27, 2021
1 parent 6bb8ecb commit 147b47e
Show file tree
Hide file tree
Showing 14 changed files with 1,039 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if $(HAIKU_PACKAGING_ARCHS[2]) {
freetype icu libsolv zlib

regular_image @{
ffmpeg glu jasper jpeg libicns libpng16 libwebp mesa
ffmpeg glu jasper jpeg libavif libicns libpng16 libwebp mesa
}@
] ;
if $(TARGET_PACKAGING_ARCH) != x86_gcc2 {
Expand Down
20 changes: 20 additions & 0 deletions build/jam/BuildFeatures
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,26 @@ if [ IsPackageAvailable libwebp_devel ] {
}


# libavif
if [ IsPackageAvailable libavif_devel ] {
if $(HAIKU_PACKAGING_ARCH) = x86_64 {
ExtractBuildFeatureArchives libavif :
file: base libavif
runtime: lib
file: devel libavif_devel
depends: base
library: $(developLibDir)/libavif.so.12
headers: $(developHeadersDir) $(developHeadersDir)/avif
;
EnableBuildFeatures libavif ;
} else {
unavailableBuildFeatures += libavif ;
}
} else {
unavailableBuildFeatures += libavif ;
}


# live555
if [ IsPackageAvailable live555_devel ] {
ExtractBuildFeatureArchives live555 :
Expand Down
1 change: 1 addition & 0 deletions build/jam/images/definitions/regular
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ SYSTEM_ADD_ONS_ACCELERANTS += [ FFilterByBuildFeatures
] ;

SYSTEM_ADD_ONS_TRANSLATORS += [ FFilterByBuildFeatures
AVIFTranslator@libavif
BMPTranslator
EXRTranslator@openexr
GIFTranslator
Expand Down
1 change: 1 addition & 0 deletions src/add-ons/translators/Jamfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SubDir HAIKU_TOP src add-ons translators ;

SubInclude HAIKU_TOP src add-ons translators avif ;
SubInclude HAIKU_TOP src add-ons translators bmp ;
SubInclude HAIKU_TOP src add-ons translators exr ;
SubInclude HAIKU_TOP src add-ons translators gif ;
Expand Down

0 comments on commit 147b47e

Please sign in to comment.