Skip to content

Commit

Permalink
Add a test file and simple test for AVIF
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmallon committed Jan 4, 2021
1 parent 0844c22 commit 5f32a57
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
Binary file added testsuite/heif/ref/Chimera-AV1-8bit-162.avif
Binary file not shown.
45 changes: 45 additions & 0 deletions testsuite/heif/ref/out-libheif1.9-avif.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Reading ref/IMG_7702_small.heic
ref/IMG_7702_small.heic : 512 x 300, 3 channel, uint8 heif
SHA-1: 337C2EC7F5C2316F2FD31F04067BDC59AB7027AE
channel list: R, G, B
DateTime: "2019:01:21 16:10:54"
ExposureTime: 0.030303
FNumber: 1.8
Make: "Apple"
Model: "iPhone 7"
ResolutionUnit: 2 (inches)
Software: "12.1.2"
XResolution: 72
YResolution: 72
Exif:ApertureValue: 1.69599 (f/1.8)
Exif:BrightnessValue: 3.99501
Exif:ColorSpace: 65535
Exif:DateTimeDigitized: "2019:01:21 16:10:54"
Exif:DateTimeOriginal: "2019:01:21 16:10:54"
Exif:ExifVersion: "0221"
Exif:ExposureBiasValue: 0
Exif:ExposureMode: 0 (auto)
Exif:ExposureProgram: 2 (normal program)
Exif:Flash: 24 (no flash, auto flash)
Exif:FlashPixVersion: "0100"
Exif:FocalLength: 3.99 (3.99 mm)
Exif:FocalLengthIn35mmFilm: 28
Exif:LensMake: "Apple"
Exif:LensModel: "iPhone 7 back camera 3.99mm f/1.8"
Exif:LensSpecification: 3.99, 3.99, 1.8, 1.8
Exif:MeteringMode: 5 (pattern)
Exif:PhotographicSensitivity: 20
Exif:PixelXDimension: 4032
Exif:PixelYDimension: 3024
Exif:SceneCaptureType: 0 (standard)
Exif:SensingMethod: 2 (1-chip color area)
Exif:ShutterSpeedValue: 5.03599 (1/32 s)
Exif:SubsecTimeDigitized: "006"
Exif:SubsecTimeOriginal: "006"
Exif:WhiteBalance: 0 (auto)
oiio:ColorSpace: "sRGB"
Reading ref/Chimera-AV1-8bit-162.avif
ref/Chimera-AV1-8bit-162.avif : 480 x 270, 3 channel, uint8 heif
SHA-1: F8FDAF1BD56A21E3AF99CF8EE7FA45434D2826C7
channel list: R, G, B
oiio:ColorSpace: "sRGB"
5 changes: 4 additions & 1 deletion testsuite/heif/run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env python

imagedir = "ref/"
files = [ "IMG_7702_small.heic" ]
files = [ "IMG_7702_small.heic", "Chimera-AV1-8bit-162.avif" ]
for f in files:
command = command + info_command (os.path.join(imagedir, f))

# AVIF file is expected to fail with libheif without AV1 decoder
failureok = 1

0 comments on commit 5f32a57

Please sign in to comment.