1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979
|
# Test images
## Still images
### File [abc.png](abc.png)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Black opaque letters "abc" written on a translucent white background.
### File [abc_color_irot_alpha_irot.avif](abc_color_irot_alpha_irot.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
`abc.png` encoded with libavif and having a correct association between the
`irot` transformative property and the alpha auxiliary image item corresponding
to the same rotation applied to the color image item.
### File [abc_color_irot_alpha_NOirot.avif](abc_color_irot_alpha_NOirot.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
`abc.png` encoded with libavif 1.3.0 and missing an association between the
`irot` transformative property and the alpha auxiliary image item.
### File [circle-trns-after-plte.png](circle-trns-after-plte.png)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
An opaque blue circle on a transparent green background.
It is of color type 2 (PNG_COLOR_TYPE_RGB) and has a tRNS chunk after a PLTE
chunk.
### File [circle-trns-before-plte.png](circle-trns-before-plte.png)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
An opaque blue circle on a transparent green background.
It is of color type 2 (PNG_COLOR_TYPE_RGB) and has a tRNS chunk before a PLTE
chunk. Since the PNG specification version 1.2 says "the tRNS chunk [...] must
follow the PLTE chunk, if any", libpng 1.6.46 or older considers the tRNS chunk
as invalid and ignores it. The behavior changed starting with libpng 1.6.47.
See https://github.com/pnggroup/libpng/blob/libpng16/CHANGES#L6243-L6246.
### File [circle_custom_properties.avif](circle_custom_properties.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `avifenc circle-trns-after-plte.png` with custom properties added in
`avifRWStreamWriteProperties()`: FullBox `1234`, Box `abcd` and Box `uuid`.
### File [clap_irot_imir_non_essential.avif](clap_irot_imir_non_essential.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: File generated with `TransformTest.ClapIrotImir` from
`aviftransformtest.cc`, where `clap`, `irot` and `imir` are tagged as
non-essential.
### File [clop_irot_imor.avif](clop_irot_imor.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: File generated with `TransformTest.ClapIrotImir` from
`aviftransformtest.cc`, where essential `clap` property was replaced by made-up
non-essential `clop` property and essential `imir` property was replaced by
made-up non-essential `imor` property.
### File [draw_points.png](draw_points.png)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Generated with ImageMagick's `convert` command:
```
convert -size 3x1 xc:red -alpha on -fill '#00F8' \
-draw 'point 1,0' \
-draw 'color 2,0 point' -scale 33x33 draw_points.png
```
It is of color type 3 (PNG_COLOR_TYPE_PALETTE) and has a tRNS chunk.
### File [extended_pixi.avif](extended_pixi.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Generated with `avifpixitest` (4:2:0, vertical chroma sample position).
### File [white_1x1.avif](white_1x1.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: single white pixel encoded with libavif at default quality.
### Files `kodim*`
#### File [kodim03_yuv420_8bpc.avif](io/kodim03_yuv420_8bpc.avif)

License: released by the Eastman Kodak Company for unrestricted usage
#### File [kodim03_grayscale_gamma1.6.png](kodim03_grayscale_gamma1.6.png)

License: released by the Eastman Kodak Company for unrestricted usage
It is [kodim03_yuv420_8bpc.avif](io/kodim03_yuv420_8bpc.avif) converted to
grayscale and tagged as Gamma 1.6 gAMA PNG chunk.
#### File [kodim03_grayscale_cicp.png](kodim03_grayscale_cicp.png)

License: released by the Eastman Kodak Company for unrestricted usage
It is [kodim03_yuv420_8bpc.avif](io/kodim03_yuv420_8bpc.avif) converted to
grayscale and tagged with a cICP chunk.
#### File [kodim03_grayscale_gamma1.6-reference.png](kodim03_grayscale_gamma1.6-reference.png)

License: released by the Eastman Kodak Company for unrestricted usage
It is [kodim03_grayscale_gamma1.6.png](kodim03_grayscale_gamma1.6.png)
converted into sRGB colorspace by Chrome using "Capture Node Screenshot"
in DevTools.
#### File [kodim23_yuv420_8bpc.avif](io/kodim23_yuv420_8bpc.avif)

License: released by the Eastman Kodak Company for unrestricted usage
Source: <http://r0k.us/graphics/kodak/>
### Files `cosmos*`
#### File [cosmos1650_yuv444_10bpc_p3pq.avif](io/cosmos1650_yuv444_10bpc_p3pq.avif)

License: [Creative Commons Attribution license (reuse allowed)](https://creativecommons.org/licenses/by/3.0/legalcode)
Source: ["Cosmos Laundromat" movie](https://www.youtube.com/watch?v=Y-rmzh0PI3c) (frame at around 1 minute past the
beginning)
### Files with high bit depth per channel
#### File [weld_16bit.png](weld_16bit.png)

License: "Irrevocable, nonexclusive, worldwide copyright license to download, copy, modify, distribute, perform, and use
raw files from Signature Edits for free, including for commercial purposes, without permission from or attributing the
photographer or Signature Edits."
Source: Picture from https://www.signatureedits.com/free-raw-photos/, rescaled, modified color balance and converted
with GIMP+Darktable to 16b PNG, metadata removed with `exiftool -All=`.
#### File [weld_sato_12B_8B_q0.avif](weld_sato_12B_8B_q0.avif)

License: Same as for `weld_16bit.png`.
Source: `weld_16bit.png` encoded with `AVIF_SAMPLE_TRANSFORM_BIT_DEPTH_EXTENSION_12B_8B_OVERLAP_4B` at quality 0 and
fastest effort.
## Metadata
The structure can be displayed using `exiv2 -pS <file>`.
### File [dog_exif_extended_xmp_icc.jpg](dog_exif_extended_xmp_icc.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Personal photo.
| address | marker | length | data |
|--------:|-------------|-------:|----------------------------------------------|
| 0 | 0xffd8 SOI | | |
| 2 | 0xffe1 APP1 | 884 | `Exif..II*......................` |
| 888 | 0xffe1 APP1 | 353 | `http://ns.adobe.com/xap/1.0/.<x:` |
| 1243 | 0xffe1 APP1 | 32417 | `http://ns.adobe.com/xmp/extensio` |
| 33662 | 0xffe0 APP0 | 16 | `JFIF.........` |
| | | | ... |
| 33818 | 0xffe2 APP2 | 612 | `ICC_PROFILE......T........mntrRG chunk 1/1` |
| | | | ... |
### File [paris_exif_xmp_icc.jpg](paris_exif_xmp_icc.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Personal photo edited with Gimp 2.10.
| address | marker | length | data |
|--------:|-------------|-------:|----------------------------------------------|
| 0 | 0xffd8 SOI | | |
| 2 | 0xffe0 APP0 | 16 | `JFIF.....,.,.` |
| 20 | 0xffe1 APP1 | 1134 | `Exif..II*......................` |
| 1156 | 0xffe1 APP1 | 3929 | `http://ns.adobe.com/xap/1.0/.<?x` |
| 5087 | 0xffe2 APP2 | 612 | `ICC_PROFILE......T........mntrRG chunk 1/1` |
| | | | ... |
### File [paris_exif_xmp_modified_icc.jpg](paris_exif_xmp_modified_icc.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Same as paris_exif_xmp_icc.jpg but edited to have libpng report 'PCS illuminant is not D50'
(the byte at position 0x1440 was changed from 0x2D to 0x2C).
### File [paris_extended_xmp.jpg](paris_extended_xmp.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Metadata was extracted from `paris_exif_xmp_icc.jpg` with
`exiftool -tagsfromfile paris_exif_xmp_icc.jpg paris_exif_xmp_icc.xmp`. The text of the first book of
[De finibus bonorum et malorum](https://en.wikipedia.org/wiki/De_finibus_bonorum_et_malorum) was manually inserted in
that file under the tag `xmp:Label` and the second book under the tag `xmp:Nickname` (any `<` or `>` removed to avoid
conflicts with XMP). The file was reconstructed with
`exiftool -tagsfromfile paris_exif_xmp_icc.xmp -Exif= -icc_profile= paris_exif_xmp_icc.jpg -o paris_extended_xmp.jpg`.
The goal is to have a large XMP blob so that it can only be stored as multiple extended XMP chunks.
| address | marker | length | data |
|---------:|-------------|-------:|----------------------------------|
| 0 | 0xffd8 SOI | | |
| 2 | 0xffe0 APP0 | 16 | `JFIF.....,.,.` |
| 20 | 0xffe1 APP1 | 5531 | http://ns.adobe.com/xap/1.0/.<?x |
| 5553 | 0xffe1 APP1 | 65535 | http://ns.adobe.com/xmp/extensio |
| 71090 | 0xffe1 APP1 | 65535 | http://ns.adobe.com/xmp/extensio |
| 136627 | 0xffe1 APP1 | 4791 | http://ns.adobe.com/xmp/extensio |
| | | | ... |
### File [paris_xmp_trailing_null.jpg](paris_xmp_trailing_null.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `paris_exif_xmp_icc.jpg` loaded with `avifReadImage()`, stripped of ICC and Exif, a zero byte appended to XMP,
then written with `avifJPEGWrite()` with quality 0 (without calling `avifImageFixXMP()`).
| address | marker | length | data |
|--------:|-------------|-------:|----------------------------------------------|
| 0 | 0xffd8 SOI | | |
| 2 | 0xffe0 APP0 | 16 | `JFIF.........` |
| 20 | 0xffe1 APP1 | 3930 | `http://ns.adobe.com/xap/1.0/.<?x` |
| | | | ... |
### File [paris_icc_exif_xmp.png](paris_icc_exif_xmp.png)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `paris_exif_xmp_icc.jpg` loaded with `avifReadImage()` then written with `avifPNGWrite()` (modified to output
metadata this way).
| address | marker | length | data |
|--------:|--------|-------:|----------------------------------|
| 8 | IHDR | 13 | |
| 33 | iCCP | 386 | `libavif..(.u..+DQ..?3...E.....` |
| 431 | zTXt | 631 | `Raw profile type exif..H...[..` |
| 1074 | zTXt | 1076 | `Raw profile type xmp..X..YQ..8` |
| 2162 | IDAT | | ... |
| 160456 | IEND | 0 | |
### File [paris_icc_exif_xmp_at_end.png](paris_icc_exif_xmp_at_end.png)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `paris_exif_xmp_icc.jpg` loaded with `avifReadImage()` then written with `avifPNGWrite()` (modified to output
metadata this way).
| address | marker | length | data |
|--------:|--------|-------:|----------------------------------|
| 8 | IHDR | 13 | |
| 33 | iCCP | 386 | `libavif..(.u..+DQ..?3...E.....` |
| 2162 | IDAT | | ... |
| 151474 | eXIf | 1126 | `II*..........................` |
| 152612 | tEXt | 7832 | `Raw profile type xmp..XMP.0000` |
| 160456 | IEND | 0 | |
### File [paris_exif_orientation_5.jpg](paris_exif_orientation_5.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `paris_exif_xmp_icc.jpg` stripped of all metadata with `exiftool -all=` and Exif orientation added
with `exiv2 -k -M "set Exif.Image.Orientation 5"`
| address | marker | length | data |
|--------:|-------------|--------:|--------------------------------------|
| 0 | 0xffd8 SOI | | |
| 2 | 0xffe1 APP1 | 34 | `Exif..II*......................` |
| | | | ... |
### File [paris_icc_exif_xmp.avif](paris_icc_exif_xmp.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Encoded from `paris_icc_exif_xmp.png` using `avifenc -s 10` at commit ed52c1b.
### File [ffffcc-gamma1.6.png](ffffcc-gamma1.6.png)

License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page
http://www.libpng.org/pub/png/colorcube/colorcube-pngs-gamma16.html.
It's a color image tagged as gamma 1.6.
### File [ffffcc-gamma1.6.png](ffffcc-gamma1.6.png)

License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page
http://www.libpng.org/pub/png/colorcube/colorcube-pngs-gamma22.html.
It's a color image tagged as gamma 2.2.
### File [ffffff-gamma1.6.png](ffffff-gamma1.6.png)

License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page
http://www.libpng.org/pub/png/colorcube/colorcube-pngs-gamma16.html.
It's a grayscale image tagged as gamma 1.6.
### File [ffffff-gamma2.2.png](ffffff-gamma2.2.png)

License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page
http://www.libpng.org/pub/png/colorcube/colorcube-pngs-gamma22.html.
It's a grayscale image tagged as gamma 2.2.
### File [ffffcc-srgb.png](ffffcc-srgb.png)

License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page
http://www.libpng.org/pub/png/colorcube/colorcube-pngs-sRGB.html.
It's a color image tagged as sRGB.
### File [ArcTriomphe-cHRM-orig.png](ArcTriomphe-cHRM-orig.png)

License: Creative Commons Attribution-NonCommercial 2.5 License
Attribution: Greg Roelofs
Source: Picture from the libpng test page
http://www.libpng.org/pub/png/png-colortest.html.
It's a image tagged as gamma 2.2 and BT709 primaries.
### File [ArcTriomphe-cHRM-red-green-swap.png](ArcTriomphe-cHRM-red-green-swap.png)

License: Creative Commons Attribution-NonCommercial 2.5 License
Attribution: Greg Roelofs
Source: Picture from the libpng test page
http://www.libpng.org/pub/png/png-colortest.html.
It's a image tagged as gamma 2.2 and BT709 primaries but red and green swapped.
### File [ArcTriomphe-cHRM-red-green-swap-reference.png](ArcTriomphe-cHRM-red-green-swap-reference.png)

License: Creative Commons Attribution-NonCommercial 2.5 License
Attribution: Greg Roelofs
Source: Picture from the libpng test page
http://www.libpng.org/pub/png/png-colortest.html.
It's [ArcTriomphe-cHRM-red-green-swap.png](ArcTriomphe-cHRM-red-green-swap.png)
converted into sRGB colorspace by Chrome using "Capture Node Screenshot"
in DevTools.
### File [arc_triomphe_extent1000_nullbyte_extent1310.avif](arc_triomphe_extent1000_nullbyte_extent1310.avif)

License: Creative Commons Attribution-NonCommercial 2.5 License
Attribution: Greg Roelofs
Source: `ArcTriomphe-cHRM-orig.png` compressed with
`avifenc --ignore-exif --ignore-xmp --ignore-icc`.
The file is manually edited. The `iloc` property of the primary item has two
extents. A null byte was inserted between the two extents in the `mdat` payload.
## Grid
### File [sofa_grid1x5_420.avif](sofa_grid1x5_420.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Personal photo converted with `avifenc --grid 1x5 --yuv 420` at
commit [632d131](https://github.com/AOMediaCodec/libavif/commit/632d13188f9b7faa40f20d870e792174b8b5b8e6).
### File [sofa_grid1x5_420_dimg_repeat.avif](sofa_grid1x5_420_dimg_repeat.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `sofa_grid1x5_420.avif` with manually edited `dimg` associations
2,3,4,5,5 instead of 2,3,4,5,6 (invalid file).
### File [sofa_grid1x5_420_reversed_dimg_order.avif](sofa_grid1x5_420_reversed_dimg_order.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `sofa_grid1x5_420.avif` manually edited so that the `dimg` order is
6,5,4,3,2 instead of 2,3,4,5,6.
### File [color_grid_alpha_nogrid.avif](color_grid_alpha_nogrid.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: https://github.com/AOMediaCodec/libavif/issues/1203
The color planes are arranged as a 1x2 grid item. The alpha plane items are
tagged as `dimg` for each color plane item (without a `grid` item on its own).
This is allowed per the specification. libavif should decode such files
correctly (i.e.) it should report them as files with alpha channel.
Box structure of the items in this file:
```
[primary item grid]
^ ^
|dimg |dimg
| |
[color] [color]
^ ^
|auxl |auxl
| |
[alpha] [alpha]
```
### File [color_grid_alpha_grid_tile_shared_in_dimg.avif](color_grid_alpha_grid_tile_shared_in_dimg.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Same as `color_grid_alpha_nogrid.avif`
The color and alpha planes are arranged as 2x2 grid items. The color `dimg`
associations are manually edited from 2,3,4,5 to 2,3,4,A. The item with ID 0xA
is an item used in two grids.
### File [alpha_noispe.avif](alpha_noispe.avif)
License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Same pixels as `color_grid_alpha_nogrid.avif` encoded with
[`cavif-rs`](https://github.com/kornelski/cavif-rs) with the
[alpha `ispe` fix](https://github.com/kornelski/avif-serialize/pull/4) removed.
## Gain Maps
### File [paris_exif_xmp_gainmap_littleendian.jpg](paris_exif_xmp_gainmap_littleendian.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Based on `paris_exif_xmp_icc.jpg` with ICC stripped out and a gain map added
using Photoshop.
Contains a MPF (Multi-Picture Format) segment with metadata pointing to a second image
at offset 33487. The MPF metadata is in little endian order, as signaled by the four bytes
'II*\0'.
| address | marker | length | data |
|--------:|-------------|-------:|----------------------------------------------|
| 0 | 0xffd8 SOI | | |
| 2 | 0xffe0 APP0 | 16 | `JFIF.....,.,.` |
| 20 | 0xffe1 APP1 | 838 | `Exif..II*......................` |
| 1156 | 0xffe1 APP1 | 2808 | `http://ns.adobe.com/xap/1.0/.<?x` |
| 3670 | 0xffe1 APP1 | 392 | `http://ns.adobe.com/xmp/extension/` |
| 4064 | 0xffe2 APP2 | 88 | `MPF..II*..... ` |
| | | | ... |
| 33487 | 0xffd8 SOI | | |
| 33489 | 0xffe0 APP0 | 16 | `JFIF.....,.,.` |
| 33507 | 0xffe1 APP1 | 571 | `http://ns.adobe.com/xap/1.0/.<?x` |
| | | | ... |
### File [paris_exif_xmp_gainmap_bigendian.jpg](paris_exif_xmp_gainmap_bigendian.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Same as `paris_exif_xmp_gainmap_littleendian.jpg` but manually edited with
a hex editor to make the MPF metadata big endian, as signaled by the four bytes
'MM\0*'.
| address | marker | length | data |
|--------:|-------------|-------:|----------------------------------------------|
| 0 | 0xffd8 SOI | | |
| 2 | 0xffe0 APP0 | 16 | `JFIF.....,.,.` |
| 20 | 0xffe1 APP1 | 838 | `Exif..II*......................` |
| 1156 | 0xffe1 APP1 | 2808 | `http://ns.adobe.com/xap/1.0/.<?x` |
| 3670 | 0xffe1 APP1 | 392 | `http://ns.adobe.com/xmp/extension/` |
| 4064 | 0xffe2 APP2 | 88 | `MPF..MM.*.... ` |
| | | | ... |
| 33487 | 0xffd8 SOI | | |
| 33489 | 0xffe0 APP0 | 16 | `JFIF.....,.,.` |
| 33507 | 0xffe1 APP1 | 571 | `http://ns.adobe.com/xap/1.0/.<?x` |
| | | | ... |
### File [apple_gainmap_old.jpg](apple_gainmap_old.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Personal photo taken on an iPhone with an older OS, resized using Preview
to save space. The XMP does not contain the HDR headroom, instead it has to be
read from Exif metadata.
### File [apple_gainmap_new.jpg](apple_gainmap_new.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Same as apple_gainmap_old.jpg, but with XMP data manually copied from a
picture taken on a more recent iPhone. The difference is that the XMP metadata
contains the <HDRGainMap:HDRGainMapHeadroom> element.
### File [paris_exif_xmp_icc_gainmap_bigendian.jpg](paris_exif_xmp_icc_gainmap_bigendian.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: same as paris_exif_xmp_gainmap_bigendian.jpg but with a DCI-P3 ICC profile added
using exiftool:
```
cp paris_exif_xmp_gainmap_bigendian.jpg paris_exif_xmp_icc_gainmap_bigendian.jpg
exiftool -icc_profile -b path/to/some_image_with_a_p3_profile.jpg > p3.icc
exiftool "-icc_profile<=p3.icc" paris_exif_xmp_icc_gainmap_bigendian.jpg
```
### File [color_grid_gainmap_different_grid.avif](color_grid_gainmap_different_grid.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
Contains a 4x3 color grid, a 4x3 alpha grid, and a 2x2 gain map grid.
### File [color_nogrid_alpha_nogrid_gainmap_grid.avif](color_nogrid_alpha_nogrid_gainmap_grid.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
Contains a single color image, single alpha image, and a 2x2 gain map grid.
### File [color_grid_alpha_grid_gainmap_nogrid.avif](color_grid_alpha_grid_gainmap_nogrid.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
Contains a 4x3 color grid, a 4x3 alpha grid, and a single gain map image.
### File [unsupported_gainmap_version.avif](unsupported_gainmap_version.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
Contains a gain map with the `version` field set to 99 in the tmap box.
Fields `minimum_version` and `writer_version` are 0.
Decoders should ignore the gain map since the `version` is unsupported.
### File [unsupported_gainmap_minimum_version.avif](unsupported_gainmap_minimum_version.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
Contains a gain map with the `minimum_version` and `writer_version` fields set to 99 in the tmap box.
Field `version` is 0.
Decoders should ignore the gain map since the `minimum_version` is unsupported.
### File [unsupported_gainmap_writer_version_with_extra_bytes.avif](unsupported_gainmap_writer_version_with_extra_bytes.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
Contains a gain map with the `writer_version` field set to 99 in the tmap box,
and some extra bytes at the end of the gain map metadata.
`version` and `minimum_version` are 0.
Decoders should decode this image including the gain map. The extra bytes should not
cause issues since the `writer_version` is unsupported.
### File [supported_gainmap_writer_version_with_extra_bytes.avif](supported_gainmap_writer_version_with_extra_bytes.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
Contains a gain map with some extra unexpected bytes at the end of the gain map metadata.
`version`, `minimum_version` and `writer_version` are 0.
Because of the extra bytes despite a supported `writer_version`, this file should be treated as invalid.
### File [seine_hdr_srgb.avif](seine_hdr_srgb.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : created from a personal photo, converted to HDR using Photoshop, see
https://helpx.adobe.com/camera-raw/using/hdr-output.html and
https://gregbenzphotography.com/hdr-images/jpg-hdr-gain-maps-in-adobe-camera-raw/
See also sources/seine.psd
HDR image using the PQ transfer curve. Contains an irrelevant gain map in
[Adobe's format](https://helpx.adobe.com/camera-raw/using/gain-map.html) that is not recognized by
libavif and ignored by the tests.
### File [seine_sdr_gainmap_srgb.jpg](seine_sdr_gainmap_srgb.jpg)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : created from a personal photo, converted to HDR using Photoshop, then saved as JPEG+gainmap,
see https://helpx.adobe.com/camera-raw/using/hdr-output.html and
https://gregbenzphotography.com/hdr-images/jpg-hdr-gain-maps-in-adobe-camera-raw/
### File [seine_hdr_rec2020.avif](seine_hdr_rec2020.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : same as seine_hdr_srgb but saved with the Rec. 2020 color space in Photoshop (Camera Raw 16.0.1.1683).
HDR image using the PQ transfer curve and Rec. 2020 color space. Contains an irrelevant gain map in
[Adobe's format](https://helpx.adobe.com/camera-raw/using/gain-map.html) that is not recognized by
libavif and ignored by the tests.
### File [seine_sdr_gainmap_srgb.avif](seine_sdr_gainmap_srgb.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : created from `seine_sdr_gainmap_srgb.jpg` converted to avif with avifenc built
with AVIF_LIBXML2 enabled, then:
```
# from libavif/mybuilddir/
./avifenc ../tests/data/seine_sdr_gainmap_srgb.jpg ../tests/data/seine_sdr_gainmap_srgb.avif --qcolor 90 --qgain-map 90 --ignore-icc
```
SDR image with a gain map to allow tone mapping to HDR.
### File [seine_sdr_gainmap_notmapbrand.avif](seine_sdr_gainmap_notmapbrand.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : same as seine_sdr_gainmap_srgb.avif before commit 10b7232
An image with a `tmap` item (i.e. a gain map) but no 'tmap' brand in the `ftyp` box.
The gain map should be ignored by the decoder since the `tmap` brand is missing.
### File [seine_hdr_gainmap_wrongaltr.avif](seine_hdr_gainmap_wrongaltr.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : same as seine_hdr_gainmap_wrongaltr.avif but edited with a hex editor
to swap the two entity ids inside the 'altr' box.
An image with a `tmap` item (i.e. a gain map) but the `altr` box does not show
it as being preferred over the primary image item so it should be ignored.
### File [seine_sdr_gainmap_gammazero.avif](seine_sdr_gainmap_gammazero.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : same as seine_sdr_gainmap_srgb.avif generated with a modified avifenc that
writes 0 instead of the gain map gamma numerator.
An image with a gain map where the gain map gamma value is zero (invalid).
### File [seine_sdr_gainmap_big_srgb.avif](seine_sdr_gainmap_big_srgb.avif)

Source : generated by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
after changing `kUpdateTestImages` to true in the `avifgainmaptest.cc`.
SDR image with a gain map to allow tone mapping to HDR. The gain map's width and height are doubled compared to the base image.
This is a valid but atypical image for testing. Typically, the gain map would be either the same size or smaller as the base image.
### File [seine_hdr_gainmap_srgb.avif](seine_hdr_gainmap_srgb.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : generated by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
after changing `kUpdateTestImages` to true in the `avifgainmaptest.cc`.
HDR image with a gain map to allow tone mapping to SDR.
### File [seine_hdr_gainmap_small_srgb.avif](seine_hdr_gainmap_small_srgb.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source : generated by running `./tests/avifgainmaptest --gtest_filter=GainMapTest.CreateGainMapImages ../tests/data/`
after changing `kUpdateTestImages` to true in the `avifgainmaptest.cc`.
SDR image with a gain map to allow tone mapping to HDR. The gain map's width and height are halved compared to the base image.
## Files colors*_hdr_*.avif and colors*_sdr_srgb.avif

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
SDR and HDR (PQ) AVIF images in various colorspaces.
The files with 'wcg' (wide color gamut) in their name have colors outside of the sRGB color space.
The files without 'wcg' in their name have sRGB colors, but expressed in various color spaces.
The files with 'text' in their name have text on them. They are not currently used in tests but can be used for manual
testing of gain maps (e.g. with `avifgainmaputil combine ...`), as they make it easy to see which version
the browser is displaying.
HDR/wide color gamut images should be viewed on an HDR display, such as on a M1+ Mac Book Pro.
Source : created with Photoshop 25.1.0 (Camera Raw 16.0.1.1683), see sources/colors.psd and
https://helpx.adobe.com/camera-raw/using/hdr-output.html,
https://gregbenzphotography.com/hdr-images/jpg-hdr-gain-maps-in-adobe-camera-raw/
Basic process: create a 32bit image, export it as png for the SDR version.
Then open the Camera Raw filter (Filter > Camera Raw Filter...), click HDR at the top right, and drag
the histogram towards the right to create brighter pixels.
Click the save icon on the top right. Select AVIF as output format and check "HDR output" then save.
To create an image with a wider color gamut, choose Edit > Assign Profile... and set the color space
to e.g. BT 2020.
To export more images from sources/colors.psd:
- For SDR, show/hide the layers as desired then export to PNG then convert to avif with avifenc
- For HDR, show/hide the layers as desired then flatten the image, (Layers > Flatten Image), open
the Camera Raw dialog, and click the save icon on the top right.
- For the wide color gamut version, choose Edit > Assign Profile... and set the color space to
Rec.ITU-R BT.2020-1
## Idat
These files use the 'idat' box instead of the 'mdat' box to store data.
### File [draw_points_idat.avif](draw_points_idat.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/idat
by running `./avifenc -q 100 ../tests/data/draw_points.png ../tests/data/draw_points_idat.avif`
### File [draw_points_idat_metasize0.avif](draw_points_idat_metasize0.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/idat
after uncommenting the line under `// uncomment to make meta size zero` and running
`./avifenc -q 100 ../tests/data/draw_points.png ../tests/data/draw_points_idat_metasize0.avif`
### File [draw_points_idat_progressive.avif](draw_points_idat_progressive.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/idat
by running `./avifenc -q 100 --progressive ../tests/data/draw_points.png ../tests/data/draw_points_idat_progressive.avif`
### File [draw_points_idat_progressive_metasize0.avif](draw_points_idat_progressive_metasize0.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/idat
after uncommenting the line under `// uncomment to make meta size zero` and running
`./avifenc -q 100 --progressive ../tests/data/draw_points.png ../tests/data/draw_points_idat_progressive_metasize0.avif`
## Animated Images
### File [colors-animated-8bpc.avif](colors-animated-8bpc.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Random colors generated with ffmpeg.
An animated AVIF image file with the following attributes:
* Width: 150
* Height: 150
* Alpha present: No
* YUV Format: 420
* Repetition Count: 0
* Frame count: 5
### File [colors-animated-8bpc-audio.avif](colors-animated-8bpc-audio.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Same as `colors-animated-8bpc.avif` but with an audio track added using MP4Box:
`MP4Box -add audio.aac colors-animated-8bpc-audio.avif`
audio.aac was recorded with QuickTime and converted/truncated to the same length as the
image sequence with ffmpeg:
`ffmpeg -i audio.m4a -t 0.17 audio.aac`
### File [colors-animated-8bpc-alpha-exif-xmp.avif](colors-animated-8bpc-alpha-exif-xmp.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `colors-animated-8bpc.avif` but translucent and with the Exif/XMP chunks of
`paris_exif_xmp_icc.jpg`. The repetition is infinite.
### File [colors-animated-8bpc-depth-exif-xmp.avif](colors-animated-8bpc-depth-exif-xmp.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: `colors-animated-8bpc-alpha-exif-xmp.avif` but with the alpha URI manually
changed to depth using a hex editor.
### File [colors-animated-12bpc-keyframes-0-2-3.avif](colors-animated-12bpc-keyframes-0-2-3.avif)

License: [same as libavif](https://github.com/AOMediaCodec/libavif/blob/main/LICENSE)
Source: Random frames generated with libavif.
### File [webp_logo_animated.y4m](webp_logo_animated.y4m)

License: [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/),
[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
Attribution: Google LLC
Source: https://en.wikipedia.org/wiki/File:WebPLogo.svg with text stripped and
animated effects.
# Other Test Files
### File [sRGB2014.icc](sRGB2014.icc)
License: [Copyright International Color Consortium, 2015](https://www.color.org/profiles2.xalter#license)
Source: https://www.color.org/srgbprofiles.xalter#v2
|