source: general/graphlib/libavif.xml@ 820262d8

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 820262d8 was 820262d8, checked in by Pierre Labastie <pierre.labastie@…>, 13 months ago

Separate post-install from install in libavif

Updating the loaders cache is a post-install instruction. The generated
files shouldn't be part of a package if using a package manager.
And jhalfs gets confused if it is not separated from the install.

  • Property mode set to 100644
File size: 6.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY libavif-download-http "https://github.com/AOMediaCodec/libavif/archive/v&libavif-version;/libavif-&libavif-version;.tar.gz">
8 <!ENTITY libavif-download-ftp " ">
9 <!ENTITY libavif-md5sum "dde524dfc0e0e37a468277b128662990">
10 <!ENTITY libavif-size "5.6 MB">
11 <!ENTITY libavif-buildsize "10 MB">
12 <!ENTITY libavif-time "less than 0.1 SBU">
13]>
14
15<sect1 id="libavif" xreflabel="libavif-&libavif-version;">
16 <?dbhtml filename="libavif.html"?>
17
18 <title>libavif-&libavif-version;</title>
19
20 <indexterm zone="libavif">
21 <primary sortas="a-libavif">libavif</primary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title>Introduction to libavif</title>
26
27 <para>
28 The <application>libavif</application> package contains a library used
29 for encoding and decoding AVIF files.
30 </para>
31
32 &lfs113_checked;
33
34 <bridgehead renderas="sect3">Package Information</bridgehead>
35 <itemizedlist spacing="compact">
36 <listitem>
37 <para>
38 Download (HTTP): <ulink url="&libavif-download-http;"/>
39 </para>
40 </listitem>
41 <listitem>
42 <para>
43 Download (FTP): <ulink url="&libavif-download-ftp;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &libavif-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &libavif-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &libavif-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &libavif-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">libavif Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
71 <para role="required">
72 <xref linkend="libaom"/>
73 </para>
74
75 <bridgehead renderas="sect4">Recommended</bridgehead>
76 <para role="recommended">
77 <xref linkend="gdk-pixbuf"/>
78 </para>
79
80 <bridgehead renderas="sect4">Optional</bridgehead>
81 <para role="optional">
82 <ulink url="https://github.com/google/googletest">gtest</ulink>,
83 <ulink url="https://code.videolan.org/videolan/dav1d">libdav1d</ulink>,
84 <ulink url="https://chromium.googlesource.com/libyuv/libyuv/">libyuv</ulink>,
85 <ulink url="https://github.com/xiph/rav1e">rav1e</ulink>, and
86 <ulink url="https://gitlab.com/AOMediaCodec/SVT-AV1">svt-av1</ulink>
87 </para>
88
89 <para condition="html" role="usernotes">
90 User Notes: <ulink url="&blfs-wiki;/libavif"/>
91 </para>
92 </sect2>
93
94 <sect2 role="installation">
95 <title>Installation of libavif</title>
96
97 <para>
98 Install <application>libavif</application> by running the following
99 commands:
100 </para>
101
102<screen><userinput>mkdir build &amp;&amp;
103cd build &amp;&amp;
104
105cmake -DCMAKE_INSTALL_PREFIX=/usr \
106 -DCMAKE_BUILD_TYPE=Release \
107 -DAVIF_CODEC_AOM=ON \
108 -DAVIF_BUILD_GDK_PIXBUF=ON \
109 -G Ninja .. &amp;&amp;
110ninja</userinput></screen>
111
112 <para>
113 This package does come with a test suite, but it requires
114 <ulink url="https://github.com/google/googletest">gtest</ulink>, which
115 is not part of BLFS.
116 </para>
117
118 <para>
119 Now, as the <systemitem class="username">root</systemitem> user:
120 </para>
121
122<screen role="root"><userinput>ninja install</userinput></screen>
123
124 <para>
125 The AV1 format needs to be added to the loaders cache. As the
126 &root; user:
127 </para>
128
129<screen role="root"><userinput>gdk-pixbuf-query-loaders --update-cache</userinput></screen>
130
131 </sect2>
132
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <para>
137 <parameter>-DAVIF_CODEC_AOM=ON</parameter>: This switch enables using
138 the AOM codec. This package is useless without at least one codec
139 built in.
140 </para>
141
142 <para>
143 <parameter>-DAVIF_BUILD_GDK_PIXBUF=ON</parameter>: This switch builds
144 the AVIF loader for applications which use gdk-pixbuf. Remove it if you
145 have not installed <xref role="nodep" linkend="gdk-pixbuf"/>.
146 </para>
147
148 <para>
149 <option>-DAVIF_CODEC_DAV1D=ON</option>: Use this switch if you have
150 installed <ulink url="https://code.videolan.org/videolan/dav1d">libdav1d</ulink>
151 and wish to use it as a codec.
152 </para>
153
154 <para>
155 <option>-DAVIF_CODEC_RAV1E=ON</option>: Use this switch if you have
156 installed <ulink url="https://github.com/xiph/rav1e">rav1e</ulink> and
157 wish to use it as a codec.
158 </para>
159
160 <para>
161 <option>-DAVIF_CODEC_SVT=ON</option>: Use this switch if you have
162 installed <ulink url="https://gitlab.com/AOMediaCodec/SVT-AV1">svt-av1</ulink>
163 and wish to use it as a codec.
164 </para>
165
166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directories</segtitle>
175
176 <seglistitem>
177 <seg>
178 None
179 </seg>
180 <seg>
181 libavif.so and
182 libpixbbufloader-avif.so (in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders)
183 </seg>
184 <seg>
185 /usr/include/avif
186 </seg>
187 </seglistitem>
188 </segmentedlist>
189
190 <variablelist>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
194
195 <varlistentry id="libavif-lib">
196 <term><filename class="libraryfile">libavif.so</filename></term>
197 <listitem>
198 <para>
199 contains functions that provide a portable C implementation of the
200 AV1 Image Format
201 </para>
202 <indexterm zone="libavif-lib libavif">
203 <primary sortas="c-libavif">libavif.so</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="libpixbufloader-avif">
209 <term><filename class="libraryfile">libpixbufloader-avif.so</filename></term>
210 <listitem>
211 <para>
212 allows applications which use gdk-pixbuf to read AVIF images
213 </para>
214 <indexterm zone="libavif libpixbufloader-avif">
215 <primary sortas="c-libpixbufloader-avif">libpixbufloader-avif.so</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219 </variablelist>
220 </sect2>
221</sect1>
Note: See TracBrowser for help on using the repository browser.