File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1313 add_thumbnails ,
1414 have_decoder_for_format ,
1515 have_encoder_for_format ,
16+ libheif_info ,
1617)
1718
1819try :
@@ -227,10 +228,14 @@ def hevc_enc() -> bool:
227228def aom_dec () -> bool :
228229 if getenv ("PH_TESTS_NO_AVIF_DEC" , "0" ) != "0" :
229230 return False
231+ if libheif_info ()["version" ]["aom" ] == "Rav1e encoder" :
232+ return False
230233 return have_decoder_for_format (HeifCompressionFormat .AV1 )
231234
232235
233236def aom_enc () -> bool :
234237 if getenv ("PH_TESTS_NO_AVIF_ENC" , "0" ) != "0" :
235238 return False
239+ if libheif_info ()["version" ]["aom" ] == "Rav1e encoder" :
240+ return False
236241 return have_encoder_for_format (HeifCompressionFormat .AV1 )
Original file line number Diff line number Diff line change 1414pytest .importorskip ("pympler" , reason = "`pympler` not installed" )
1515pytest .importorskip ("numpy" , reason = "`numpy` not installed" )
1616
17- print (pillow_heif .libheif_info ())
18-
1917chdir (path .join (path .dirname (path .dirname (path .abspath (__file__ ))), "tests" ))
2018pillow_heif .register_heif_opener ()
2119
You can’t perform that action at this time.
0 commit comments