File: encode-decode

package info (click to toggle)
libavif 1.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 21,508 kB
  • sloc: ansic: 30,721; cpp: 14,588; xml: 1,507; sh: 1,265; java: 307; makefile: 57
file content (12 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

WORKDIR="${AUTOPKGTEST_TMP}"

echo "Encoding PNG to AVIF"
avifenc tests/data/draw_points.png "${WORKDIR}/output.avif"

echo "Decoding AVIF back to PNG"
avifdec "${WORKDIR}/output.avif" "${WORKDIR}/decoded.png"

echo "AVIF encode/decode round-trip: PASSED"