From 5355357bb0f5a447539f006712022d720f18547d Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Sat, 31 Oct 2020 16:23:49 +0000 Subject: [PATCH] Import libgav1_0.16.0-4.debian.tar.xz [dgit import tarball libgav1 0.16.0-4 libgav1_0.16.0-4.debian.tar.xz] --- changelog | 29 +++++++++++++++ control | 41 ++++++++++++++++++++++ copyright | 28 +++++++++++++++ gav1_decode.1 | 62 +++++++++++++++++++++++++++++++++ libgav1-0.install | 1 + libgav1-0.symbols | 36 +++++++++++++++++++ libgav1-bin.install | 1 + libgav1-bin.manpages | 1 + libgav1-dev.examples | 2 ++ libgav1-dev.install | 5 +++ patches/Unbundling-abseil.patch | 22 ++++++++++++ patches/series | 1 + rules | 39 +++++++++++++++++++++ source/format | 1 + upstream/metadata | 4 +++ 15 files changed, 273 insertions(+) create mode 100644 changelog create mode 100644 control create mode 100644 copyright create mode 100644 gav1_decode.1 create mode 100644 libgav1-0.install create mode 100644 libgav1-0.symbols create mode 100644 libgav1-bin.install create mode 100644 libgav1-bin.manpages create mode 100644 libgav1-dev.examples create mode 100644 libgav1-dev.install create mode 100644 patches/Unbundling-abseil.patch create mode 100644 patches/series create mode 100755 rules create mode 100644 source/format create mode 100644 upstream/metadata diff --git a/changelog b/changelog new file mode 100644 index 0000000..d384ac6 --- /dev/null +++ b/changelog @@ -0,0 +1,29 @@ +libgav1 (0.16.0-4) unstable; urgency=medium + + * debian/libgav1-0.symbols: Try to distinguish by symbol bits. + * debian/rules: Also explicitly disable AVX2 per baseline. + + -- Boyuan Yang Sat, 31 Oct 2020 12:23:49 -0400 + +libgav1 (0.16.0-3) unstable; urgency=medium + + * Team upload. + * debian/libgav1-0.symbols: refresh symbols. + * debian/rules: Adjust build flags to meet Debian's ISA baseline + requirement. + + -- Boyuan Yang Fri, 30 Oct 2020 23:02:37 -0400 + +libgav1 (0.16.0-2) unstable; urgency=medium + + * Team upload. + * debian/control: Update package description to remove mentions + of advanced build flags since we are not enabling them. + + -- Boyuan Yang Thu, 29 Oct 2020 10:19:44 -0400 + +libgav1 (0.16.0-1) unstable; urgency=medium + + * Initial release (Closes: #973288) + + -- qinxialei Wed, 28 Oct 2020 17:35:33 +0800 diff --git a/control b/control new file mode 100644 index 0000000..8f6b14b --- /dev/null +++ b/control @@ -0,0 +1,41 @@ +Source: libgav1 +Section: libs +Priority: optional +Maintainer: Debian Multimedia Maintainers +Uploaders: qinxialei +Build-Depends: + debhelper-compat (= 13), + cmake (>= 3.7.1), + libabsl-dev, +Standards-Version: 4.5.0 +Homepage: https://chromium.googlesource.com/codecs/libgav1/ +Vcs-Browser: https://salsa.debian.org/multimedia-team/libgav1 +Vcs-Git: https://salsa.debian.org/multimedia-team/libgav1.git +Rules-Requires-Root: no + +Package: libgav1-0 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: AV1 decoder developed by Google -- runtime library + This package contains the runtime, shared library of gav1. Gav1 is + a new decoder implementation for AV1 video encoding format (supporting + profiles 0 and 1). + +Package: libgav1-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, libgav1-0 (= ${binary:Version}) +Description: AV1 decoder developed by Google -- development kit + This package contains the header file and development library of gav1. + Gav1 is A new decoder implementation for AV1 video encoding format (supporting + profiles 0 and 1). + +Package: libgav1-bin +Section: utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Av1 decoder developed by Google -- example application + This package provides gav1_decode binary as an example application of + libgav1. It can be used to decode IVF files. + . + Please see the output of "gav1_decode --help" for detailed options. diff --git a/copyright b/copyright new file mode 100644 index 0000000..f26a054 --- /dev/null +++ b/copyright @@ -0,0 +1,28 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libgav1 +Upstream-Contact: gav1-devel@googlegroups.com +Source: https://chromium.googlesource.com/codecs/libgav1/ + +Files: * +Copyright: 2019-2020 Google LLC + 2019-2020 The libgav1 Authors +License: Apache-2.0 + +Files: debian/* +Copyright: 2020 qinxialei +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at + . + https://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software distributed + under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. See the License for the + specific language governing permissions and limitations under the License. + . + On Debian systems, the complete text of the Apache License, Version 2.0, can be + found in "/usr/share/common-licenses/Apache-2.0". diff --git a/gav1_decode.1 b/gav1_decode.1 new file mode 100644 index 0000000..924d041 --- /dev/null +++ b/gav1_decode.1 @@ -0,0 +1,62 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. +.TH GAV1_DECODE 1 "23 Oct 2020" "gav1_decode, a libgav1 based AV1 decoder" +.SH NAME +gav1_decode, \- An example application of gav1.gav1_decode can be used to decode IVF files +.SH SYNOPSIS +.B gav1_decode +[\fI\,options\/\fR] \fI\, \/\fR[\fI\,-o \/\fR] +.SH OPTIONS +.HP +\fB\-h\fR, \fB\-\-help\fR This help message. +.HP +\fB\-\-threads\fR (Default 1). +.HP +\fB\-\-frame_parallel\fR. +.HP +\fB\-\-limit\fR Stop decoding after N frames (0 = all). +.HP +\fB\-\-skip\fR Skip initial N frames (Default 0). +.HP +\fB\-\-version\fR. +.HP +\fB\-\-y4m\fR (Default false). +.HP +\fB\-\-raw\fR (Default true). +.HP +\fB\-v\fR logging verbosity, can be used multiple times. +.HP +\fB\-\-all_layers\fR. +.HP +\fB\-\-operating_point\fR (Default 0). +.HP +\fB\-\-frame_timing\fR Output per\-frame timing to in tsv format. +.IP +Yields meaningful results only when frame parallel is off. +.SS "Advanced settings:" +.HP +\fB\-\-post_filter_mask\fR (Default 0x1f). +.IP +Mask indicating which post filters should be applied to the reconstructed +frame. This may be given as octal, decimal or hexadecimal. From LSB: +.IP +Bit 0: Loop filter (deblocking filter) +Bit 1: Cdef +Bit 2: SuperRes +Bit 3: Loop Restoration +Bit 4: Film Grain Synthesis +.PP +libgav1 0.16.1 +max bitdepth: 10 +build configuration: Not available. +.SH "SEE ALSO" +The full documentation for +.B gav1_decode, +is maintained as a Texinfo manual. If the +.B info +and +.B gav1_decode, +programs are properly installed at your site, the command +.IP +.B info gav1_decode, +.PP +should give you access to the complete manual. diff --git a/libgav1-0.install b/libgav1-0.install new file mode 100644 index 0000000..1d9b40b --- /dev/null +++ b/libgav1-0.install @@ -0,0 +1 @@ +usr/lib/*/libgav1.so.* diff --git a/libgav1-0.symbols b/libgav1-0.symbols new file mode 100644 index 0000000..377467c --- /dev/null +++ b/libgav1-0.symbols @@ -0,0 +1,36 @@ +# SymbolsHelper-Confirmed: 0.16.0 amd64 +libgav1.so.0 libgav1-0 #MINVER# +* Build-Depends-Package: libgav1-dev + Libgav1ComputeFrameBufferInfo@Base 0.16.0 + Libgav1DecoderCreate@Base 0.16.0 + Libgav1DecoderDequeueFrame@Base 0.16.0 + Libgav1DecoderDestroy@Base 0.16.0 + Libgav1DecoderEnqueueFrame@Base 0.16.0 + Libgav1DecoderGetMaxBitdepth@Base 0.16.0 + Libgav1DecoderSettingsInitDefault@Base 0.16.0 + Libgav1DecoderSignalEOS@Base 0.16.0 + Libgav1GetBuildConfiguration@Base 0.16.0 + Libgav1GetErrorString@Base 0.16.0 + Libgav1GetVersion@Base 0.16.0 + Libgav1GetVersionString@Base 0.16.0 + Libgav1SetFrameBuffer@Base 0.16.0 + _ZN7libgav17Decoder12DequeueFrameEPPK20Libgav1DecoderBuffer@Base 0.16.0 + (c++|arch-bits=64)"libgav1::Decoder::EnqueueFrame(unsigned char const*, unsigned long, long, void*)@Base" 0.16.0 + (c++|arch-bits=32)"libgav1::Decoder::EnqueueFrame(unsigned char const*, unsigned int, long long, void*)@Base" 0.16.0 + _ZN7libgav17Decoder14GetMaxBitdepthEv@Base 0.16.0 + _ZN7libgav17Decoder4InitEPKNS_15DecoderSettingsE@Base 0.16.0 + _ZN7libgav17Decoder9SignalEOSEv@Base 0.16.0 + _ZN7libgav17DecoderC1Ev@Base 0.16.0 + _ZN7libgav17DecoderC2Ev@Base 0.16.0 + _ZN7libgav17DecoderD1Ev@Base 0.16.0 + _ZN7libgav17DecoderD2Ev@Base 0.16.0 + (arch=riscv64)_ZTIN9__gnu_cxx7__mutexE@Base 0.16.0 + (arch=riscv64)_ZTISt11_Mutex_baseILN9__gnu_cxx12_Lock_policyE1EE@Base 0.16.0 + (arch=!riscv64)_ZTISt11_Mutex_baseILN9__gnu_cxx12_Lock_policyE2EE@Base 0.16.0 + (arch=riscv64)_ZTISt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE1EE@Base 0.16.0 + (arch=!riscv64)_ZTISt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE@Base 0.16.0 + (arch=riscv64)_ZTSN9__gnu_cxx7__mutexE@Base 0.16.0 + (arch=riscv64)_ZTSSt11_Mutex_baseILN9__gnu_cxx12_Lock_policyE1EE@Base 0.16.0 + (arch=!riscv64)_ZTSSt11_Mutex_baseILN9__gnu_cxx12_Lock_policyE2EE@Base 0.16.0 + (arch=riscv64)_ZTSSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE1EE@Base 0.16.0 + (arch=!riscv64)_ZTSSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE@Base 0.16.0 diff --git a/libgav1-bin.install b/libgav1-bin.install new file mode 100644 index 0000000..d3fd60b --- /dev/null +++ b/libgav1-bin.install @@ -0,0 +1 @@ +usr/bin/gav1_decode diff --git a/libgav1-bin.manpages b/libgav1-bin.manpages new file mode 100644 index 0000000..2fd6f22 --- /dev/null +++ b/libgav1-bin.manpages @@ -0,0 +1 @@ +debian/gav1_decode.1 diff --git a/libgav1-dev.examples b/libgav1-dev.examples new file mode 100644 index 0000000..a1e57eb --- /dev/null +++ b/libgav1-dev.examples @@ -0,0 +1,2 @@ +examples/*.h +examples/*.cc diff --git a/libgav1-dev.install b/libgav1-dev.install new file mode 100644 index 0000000..0e71f2b --- /dev/null +++ b/libgav1-dev.install @@ -0,0 +1,5 @@ +usr/include/gav1/* +usr/lib/*/*.a +usr/lib/*/*.so +usr/lib/*/pkgconfig/*.pc +usr/share/cmake diff --git a/patches/Unbundling-abseil.patch b/patches/Unbundling-abseil.patch new file mode 100644 index 0000000..c33dcbe --- /dev/null +++ b/patches/Unbundling-abseil.patch @@ -0,0 +1,22 @@ +Unbundling abseil +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -97,7 +97,6 @@ + libgav1_dump_options() + endif() + +-set(libgav1_abseil_build "${libgav1_build}/abseil") + set(libgav1_gtest_build "${libgav1_build}/gtest") + + # Compiler/linker flags must be lists, but come in from the environment as +@@ -109,8 +108,8 @@ + separate_arguments(LIBGAV1_EXE_LINKER_FLAGS) + endif() + +-add_subdirectory("${libgav1_root}/third_party/abseil-cpp" +- "${libgav1_abseil_build}" EXCLUDE_FROM_ALL) ++set(absl "/usr/lib/*/cmake/absl") ++find_package(absl REQUIRED) + + libgav1_reset_target_lists() + libgav1_add_dsp_targets() diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..f1aaaf0 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +Unbundling-abseil.patch diff --git a/rules b/rules new file mode 100755 index 0000000..216424e --- /dev/null +++ b/rules @@ -0,0 +1,39 @@ +#!/usr/bin/make -f +DPKG_EXPORT_BUILDFLAGS = 1 + +include /usr/share/dpkg/buildflags.mk +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +CXXFLAGS += $(CPPFLAGS) + +EXTRA_CONFIG_FLAGS = + +# try to fix FTBFS on mipsel +ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mips mipsel powerpc powerpcspe sh4)) + export DEB_LDFLAGS_MAINT_APPEND=-latomic +endif + +# Conform to Debian's baseline requirement +# https://wiki.debian.org/ArchitectureSpecificsMemo + +ifneq (,$(filter $(DEB_HOST_ARCH), i386 amd64 x32)) + EXTRA_CONFIG_FLAGS += -DLIBGAV1_ENABLE_SSE4_1=0 -DLIBGAV1_ENABLE_AVX2=0 +endif + +ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf)) + EXTRA_CONFIG_FLAGS += -DLIBGAV1_ENABLE_NEON=0 +endif + +ifneq (,$(filter $(DEB_HOST_ARCH), arm64)) + EXTRA_CONFIG_FLAGS += -DLIBGAV1_ENABLE_NEON=1 +endif + + + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- \ + -DBUILD_SHARED_LIBS=ON \ + $(EXTRA_CONFIG_FLAGS) diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/upstream/metadata b/upstream/metadata new file mode 100644 index 0000000..0b62ac4 --- /dev/null +++ b/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://issuetracker.google.com/issues/new?component=750480&template=1355007 +Changelog: https://chromium.googlesource.com/codecs/libgav1/+log +Repository-Browse: https://chromium.googlesource.com/codecs/libgav1 +Repository: https://chromium.googlesource.com/codecs/libgav1 -- 2.30.2