legacy-imlib2/test/images
Chema Gonzalez a780b47892 Y4M loader: fix support for unexpected framerates
Add support for F1:1 images, and in general with any framerate ratio.

Also added "F60:1" mode support.

Tested:

Added a test frame with a 1:1 framerate. This is produced by ffmpeg when
converting from another image format.
```
$ ffmpeg -i in.265 out.y4m
$ head -1 out.y4m
YUV4MPEG2 W490 H490 F1:1 Ip A0:0 C420jpeg XYSCSS=420JPEG XCOLORRANGE=FULL
```

Before
```
$ imlib2_view -v ./test/images/icon-64.framerate_1_1.y4m
Show  0: './test/images/icon-64.framerate_1_1.y4m'
*** Error -2:'Imlib2: No loader for file format' loading image: './test/images/icon-64.framerate_1_1.y4m'
```

After:
```
$ IMLIB2_DEBUG=31:0 IMLIB2_LOADER_PATH=./src/modules/loaders/.libs/ LD_LIBRARY_PATH=./src/lib/.libs:${LD_LIBRARY_PATH} ./src/bin/imlib2_view -v ./test/images/icon-64.framerate_1_1.y4m
Show  0: './test/images/icon-64.framerate_1_1.y4m'
IMG : __imlib_FindCachedImage: './test/images/icon-64.framerate_1_1.y4m' frame 1
IMG :  got none
LOAD: __imlib_FindBestLoader: file='./test/images/icon-64.framerate_1_1.y4m' fmt='(null)'
FILE: __imlib_FileExtension: './test/images/icon-64.framerate_1_1.y4m'
FILE: __imlib_FileIsFile: './src/modules/loaders/.libs//y4m.so'
FILE: __imlib_FileStat: './src/modules/loaders/.libs//y4m.so'
LOAD: __imlib_ProduceLoader: ./src/modules/loaders/.libs//y4m.so
LOAD: __imlib_LookupKnownLoader: 'y4m' -> 'y4m': 0x524d50
LOAD: __imlib_FindBestLoader: fmt='y4m': ./src/modules/loaders/.libs//y4m.so
IMG : __imlib_LoadImageWrapper: fmt='y4m' file='./test/images/icon-64.framerate_1_1.y4m'(./test/images/icon-64.framerate_1_1.y4m) frame=1, imm=1
IMG : __imlib_LoadImageWrapper: y4m : ./test/images/icon-64.framerate_1_1.y4m: Elapsed time: 18.099 ms
IMG : __imlib_AddImageToCache: 0x5139e0: './test/images/icon-64.framerate_1_1.y4m' frame 1
```
2023-12-27 14:41:59 -08:00
..
Makefile test: Add basic qoi checks 2023-06-20 13:59:55 +02:00
icon-64-P1.pbm test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64-P2.pgm test: Add some more PNM type loading tests 2022-01-19 19:38:32 +01:00
icon-64-P3.ppm test: Add some more PNM type loading tests 2022-01-19 19:38:32 +01:00
icon-64-P7_332.ppm test: Add some more PNM type loading tests 2022-01-19 19:38:32 +01:00
icon-64-gray.j2k test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64-gray.jp2 test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64-gray.pam test: Add some pam tests 2023-01-12 22:14:03 +01:00
icon-64-mono.pam test: Add some pam tests 2023-01-12 22:14:03 +01:00
icon-64.argb Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.aspect_unsupported.y4m Y4M loader: add support for images with unexpected aspects 2023-08-16 12:12:53 +02:00
icon-64.bmp test: Add makefile to generate test images 2022-01-18 20:42:13 +01:00
icon-64.ff Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.ff.bz2 Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.ff.gz test: Add some more PNM type loading tests 2022-01-19 19:38:32 +01:00
icon-64.ff.xz Add lzma loader 2021-12-28 16:08:06 +01:00
icon-64.framerate_1_1.y4m Y4M loader: fix support for unexpected framerates 2023-12-27 14:41:59 -08:00
icon-64.gif test: Add makefile to generate test images 2022-01-18 20:42:13 +01:00
icon-64.heif test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64.ico Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.ilbm Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.j2k test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64.jp2 test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64.jpg Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.jpg.mp3 Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.jxl test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64.pam test: Add some pam tests 2023-01-12 22:14:03 +01:00
icon-64.pbm test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64.pgm test: Add some more PNM type loading tests 2022-01-19 19:38:32 +01:00
icon-64.png Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.ppm Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.qoi test: Add basic qoi checks 2023-06-20 13:59:55 +02:00
icon-64.svg Add svg loader 2022-01-08 16:08:37 +01:00
icon-64.tga Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.tiff test: Add makefile to generate test images 2022-01-18 20:42:13 +01:00
icon-64.webp Test: Add some minimal regression testing 2021-09-19 13:12:20 +02:00
icon-64.xbm test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
icon-64.xpm test: Add makefile to generate test images 2022-01-18 20:42:13 +01:00
icon-64.y4m test_load: Add some y4m checks 2023-03-21 06:56:47 +01:00
icon-64.yuv420jpeg.y4m Y4M loader: fix support for 420 colorspaces 2023-08-03 12:34:30 +02:00
icon-64.yuv420mpeg2.y4m Y4M loader: fix support for 420 colorspaces 2023-08-03 12:34:30 +02:00
icon-64.yuv420p.y4m Y4M loader: fix support for 420 colorspaces 2023-08-03 12:34:30 +02:00
icon-64.yuv420paldv.y4m Y4M loader: fix support for 420 colorspaces 2023-08-03 12:34:30 +02:00
icon-64.yuv422p.y4m imlib2: add y4m test examples 2023-03-21 06:48:53 +01:00
icon-64.yuv444p.y4m imlib2: add y4m test examples 2023-03-21 06:48:53 +01:00
icon-128-d1.ico test: Add a couple of ico depth test images 2021-12-26 12:22:20 +01:00
icon-128-d4.ico test: Add a couple of ico depth test images 2021-12-26 12:22:20 +01:00
icon-128-d8.ico test: Add a couple of ico depth test images 2021-12-26 12:22:20 +01:00
icon-128.ico test: Add a couple of ico depth test images 2021-12-26 12:22:20 +01:00
xeyes-P8.ppm test: Add a few tests for obscure pnm formats 2023-01-12 22:13:54 +01:00
xeyes-gray.j2k test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
xeyes-gray.jp2 test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
xeyes-gray.pam test: Add some pam tests 2023-01-12 22:14:03 +01:00
xeyes-gray.png test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
xeyes-mono.pam test: Add some pam tests 2023-01-12 22:14:03 +01:00
xeyes.j2k test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
xeyes.jp2 test: Re-generate test images with recent tool/library versions 2022-09-28 18:19:07 +02:00
xeyes.pam test: Add some pam tests 2023-01-12 22:14:03 +01:00
xeyes.png test_save: Check images with alpha too 2021-12-04 06:55:21 +01:00