# # spec file for package libaom # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define sover 3 %define __builder ninja %define __builddir _build Name: libaom Version: 3.1.1 Release: 1.1 Summary: AV1 codec library License: BSD-2-Clause Group: Productivity/Multimedia/Other URL: https://aomedia.googlesource.com/aom/ Source0: %{name}-%{version}.tar.xz Source99: baselibs.conf Patch0: libaom-0001-Do-not-disable-_FORTIFY_SOURCE.patch BuildRequires: c++_compiler BuildRequires: cmake >= 3.6 BuildRequires: doxygen BuildRequires: graphviz BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: yasm %description This is a library for AOMedia Video 1 (AV1), an open, royalty-free video coding format designed for video transmissions over the Internet. %package -n %{name}%{sover} Summary: AV1 codec library Group: System/Libraries %description -n %{name}%{sover} This is a library for AOMedia Video 1 (AV1), an open, royalty-free video coding format designed for video transmissions over the Internet. %package devel Summary: Development files for libaom, an AV1 codec library Group: Development/Languages/C and C++ Requires: %{name}%{sover} = %{version} %description devel This package contains the development headers and library files for libaom, a library for the AOMedia Video 1 (AV1) video coding format. %package devel-doc Summary: Documentation for the libaom API Group: Documentation/HTML Requires: %{name}-devel = %{version} BuildArch: noarch %description devel-doc This package contains the API documentation for libaom, a library for the AOMedia Video 1 (AV1) video coding format. %package -n aom-tools Summary: AV1 Codec Library Tools Group: Productivity/Multimedia/Other %description -n aom-tools This package contains tools included with libaom, a library for the AOMedia Video 1 (AV1) video coding format. %prep %setup -q %autopatch -p1 %build %cmake \ -DCONFIG_LOWBITDEPTH=1 \ -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ %ifnarch aarch64 %{arm} %{ix86} x86_64 -DAOM_TARGET_CPU=generic \ %endif %ifarch %{arm} -DAOM_TARGET_CPU=arm \ %ifarch armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl -DENABLE_NEON=OFF \ %endif %endif %ifarch aarch64 -DAOM_TARGET_CPU=arm64 \ %endif %ifarch %{ix86} -DAOM_TARGET_CPU=x86 \ %endif %ifarch x86_64 -DAOM_TARGET_CPU=x86_64 \ %endif %{nil} %make_jobs %install %cmake_install rm %{buildroot}%{_libdir}/%{name}.a %post -n %{name}%{sover} -p /sbin/ldconfig %postun -n %{name}%{sover} -p /sbin/ldconfig %files -n %{name}%{sover} %license LICENSE PATENTS %doc AUTHORS CHANGELOG %{_libdir}/%{name}.so.* %files devel %{_includedir}/aom %{_libdir}/%{name}.so %{_libdir}/pkgconfig/aom.pc %files devel-doc %doc %{__builddir}/docs/html/* %files -n aom-tools %{_bindir}/aomdec %{_bindir}/aomenc %changelog * Fri Jul 2 2021 Ferdinand Thiessen - Update to version 3.1.1 * Fix vmaf model initialization error when not set to tune=vmaf * Fix consistent crash on near-static screen content, keyframe related * Fix tune=butteraugli mode - Disable NEON on arm where not available. * Mon May 10 2021 daniel.molkentin@suse.com - Update to version 3.1.0 (bsc#1185843): https://aomedia.googlesource.com/aom/+/refs/tags/v3.1.0 This release adds an "all intra" mode to the encoder, which significantly speeds up the encoding of AVIF still images at speed 6. - Upgrading: All intra mode for encoding AVIF still images and AV1 all intra videos: AOM_USAGE_ALL_INTRA (2) can be passed as the 'usage' argument to aom_codec_enc_config_default(). New encoder control IDs added: - AV1E_SET_ENABLE_DIAGONAL_INTRA: Enable diagonal (D45 to D203) intra prediction modes (0: false, 1: true (default)). Also available as "enable-diagonal-intra" for the aom_codec_set_option() function. New aom_tune_metric enum value: AOM_TUNE_BUTTERAUGLI. The new aomenc option - -tune=butteraugli was added to optimize the encoder’s perceptual quality by optimizing the Butteraugli metric. Install libjxl (JPEG XL) and then pass - DCONFIG_TUNE_BUTTERAUGLI=1 to the cmake command to enable it. - Includes 3.0 https://aomedia.googlesource.com/aom/+/refs/tags/v3.0.0 This release includes compression efficiency improvement, speed improvement for realtime mode, as well as some new APIs. - Upgrading: Support for PSNR calculation based on stream bit-depth. New encoder control IDs added: - AV1E_SET_ENABLE_RECT_TX - AV1E_SET_VBR_CORPUS_COMPLEXITY_LAP - AV1E_GET_BASELINE_GF_INTERVAL - AV1E_SET_ENABLE_DNL_DENOISING New decoder control IDs added: - AOMD_GET_FWD_KF_PRESENT - AOMD_GET_FRAME_FLAGS - AOMD_GET_ALTREF_PRESENT - AOMD_GET_TILE_INFO - AOMD_GET_SCREEN_CONTENT_TOOLS_INFO - AOMD_GET_STILL_PICTURE - AOMD_GET_SB_SIZE - AOMD_GET_SHOW_EXISTING_FRAME_FLAG - AOMD_GET_S_FRAME_INFO New aom_tune_content enum value: AOM_CONTENT_FILM New aom_tune_metric enum value: AOM_TUNE_VMAF_NEG_MAX_GAIN Coefficient and mode update can be turned off via AV1E_SET_{COEFF/MODE}_COST_UPD_FREQ. New key & value API added, available with aom_codec_set_option() function. Scaling API expanded to include 1/4, 3/4 and 1/8. - Enhancements: Better multithreading performance with realtime mode. New speed 9 setting for faster realtime encoding. Smaller binary size with low bitdepth and realtime only build. Temporal denoiser and its optimizations on x86 and Neon. Optimizations for scaling. Faster encoding with speed settings 2 to 6 for good encoding mode. Improved documentation throughout the library, with function level documentation, tree view and support for the dot tool. - Bug fixes: Aside from those mentioned in v2.0.1 and v2.0.2, this release includes the following bug fixes: Issue 2940: Segfault when encoding with --use-16bit-internal and --limit > 1 Issue 2941: Decoder mismatch with --rt --bit-depth=10 and --cpu-used=8 Issue 2895: mingw-w64 i686 gcc fails to build Issue 2874: Separate ssse3 functions from sse2 file. * Mon Mar 1 2021 elimat@opensuse.org - Update to version 2.0.2: * Prepare for the libaom v2.0.2 release * Call av1_setup_frame_size() when dropping a frame * Avoid memset in filter_intra_predictor module * Fix a typo bug in apply_temporal_filter_planewise * Modify the assertion in temporal filter intrinsics * Fix unit test ThreadTestLarge.EncoderResultTest/49 * Add -Wimplicit-function-declaration as C flag only * Update CHANGELOG for libaom v2.0.1 * Set allow_screen_content_tools to 0 in rt mode * chroma_check: don't access UV planes if monochrome * Tue May 19 2020 daniel.molkentin@suse.com - Update to version 2.0.0 "Applejack": This is the first official release of libaom. It has real-time mode and SVC support, as well as substantial documentation improvement and clean-ups. Important changes: * Decouple library version and so version. * Move functions into a header file * Remove av1_ prefix from static functions * Remove aom_ prefix from static functions * Remove aom_ prefix for static functions * Remove av1_ prefix for a static function - Drop libaom-0002-link-threading-lib-with-shared-library.patch and libaom-0003-update-CHANGELOG.patch * Tue Jul 31 2018 9+suse@cirno.systems - Enable CONFIG_LOWBITDEPTH. Makes 8-bit decoding faster. The only reason this confusingly-named option is not enabled by default is that its behavior might not match the 16-bit reference code path, and that hardware vendors want to be able to validate their designs against it. No actual mismatches have been found. See https://bugs.chromium.org/p/aomedia/issues/detail?id=2062 * Mon Jul 30 2018 bjorn.lie@gmail.com - Pass conditional AOM_TARGET_CPU to cmake, fix build for arm and ppc, as well as optimize target cpu for other arches. * Fri Jul 27 2018 9+suse@cirno.systems - Init, v1.0.0