mirror of https://github.com/FFmpeg/FFmpeg.git
PFM (aka Portable FloatMap) encodes its scanlines from bottom-to-top, not from top-to-bottom, unlike other NetPBM formats. Without this patch, FFmpeg ignores this exception and decodes/encodes PFM images mirrored vertically from their proper orientation. For reference, see the NetPBM tool pfmtopam, which encodes a .pam from a .pfm, using the correct orientation (and which FFmpeg reads correctly). Also compare ffplay to magick display, which shows the correct orientation as well. See: http://www.pauldebevec.com/Research/HDR/PFM/ and see: https://netpbm.sourceforge.net/doc/pfm.html for descriptions of this image format. Signed-off-by: Leo Izen <leo.izen@gmail.com> Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>pull/388/head
parent
64007595dc
commit
cd9dd03006
6 changed files with 24 additions and 12 deletions
@ -1,3 +1,3 @@ |
|||||||
6d470f8d6018b95b45afafc14b7d161a *tests/data/images/gbrpf32be.pfm/02.gbrpf32be.pfm |
4ac5ecc53ff2ca0c9360031ea4c13236 *tests/data/images/gbrpf32be.pfm/02.gbrpf32be.pfm |
||||||
1216532 tests/data/images/gbrpf32be.pfm/02.gbrpf32be.pfm |
1216532 tests/data/images/gbrpf32be.pfm/02.gbrpf32be.pfm |
||||||
tests/data/images/gbrpf32be.pfm/%02d.gbrpf32be.pfm CRC=0x4b73053f |
tests/data/images/gbrpf32be.pfm/%02d.gbrpf32be.pfm CRC=0x4b73053f |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
892c5a05e1cbb3d2f7761d51e18b9c4c *tests/data/images/gbrpf32le.pfm/02.gbrpf32le.pfm |
887bd04126ce36509578c51e692f3d62 *tests/data/images/gbrpf32le.pfm/02.gbrpf32le.pfm |
||||||
1216533 tests/data/images/gbrpf32le.pfm/02.gbrpf32le.pfm |
1216533 tests/data/images/gbrpf32le.pfm/02.gbrpf32le.pfm |
||||||
tests/data/images/gbrpf32le.pfm/%02d.gbrpf32le.pfm CRC=0x95e1053f |
tests/data/images/gbrpf32le.pfm/%02d.gbrpf32le.pfm CRC=0x95e1053f |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
0f6df0d68d7dd30e67386b1255f443c9 *tests/data/images/grayf32be.pfm/02.grayf32be.pfm |
d2c3a37f7bf52be25f3f56239b5fdd92 *tests/data/images/grayf32be.pfm/02.grayf32be.pfm |
||||||
405524 tests/data/images/grayf32be.pfm/02.grayf32be.pfm |
405524 tests/data/images/grayf32be.pfm/02.grayf32be.pfm |
||||||
tests/data/images/grayf32be.pfm/%02d.grayf32be.pfm CRC=0xe3fda443 |
tests/data/images/grayf32be.pfm/%02d.grayf32be.pfm CRC=0xe3fda443 |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
145715872a894b1fde0105d8a0106191 *tests/data/images/grayf32le.pfm/02.grayf32le.pfm |
ea7aad8650d06c7cc8c80cc57cbac672 *tests/data/images/grayf32le.pfm/02.grayf32le.pfm |
||||||
405525 tests/data/images/grayf32le.pfm/02.grayf32le.pfm |
405525 tests/data/images/grayf32le.pfm/02.grayf32le.pfm |
||||||
tests/data/images/grayf32le.pfm/%02d.grayf32le.pfm CRC=0x5443a443 |
tests/data/images/grayf32le.pfm/%02d.grayf32le.pfm CRC=0x5443a443 |
||||||
|
Loading…
Reference in new issue