Media: Targa/HDR stills keep their Exif orientation; DPX test accepts a stated transfer
#755 decoded stills of an extension-decided format with load_from_memory_with_format, bypassing #827's oriented decode: load_oriented now takes the format. The DPX ffmpeg oracle test expected the bare codec name; ffmpeg builds that write the transfer characteristic make it "DPX 8-bit RGB, linear". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
42ef79a2fd
commit
6d4e721d2c
@@ -943,7 +943,9 @@ fn dpx_stills_match_ffmpeg() {
|
||||
assert!(effectcraft_media::is_importable(&p));
|
||||
let f = probe(&p).expect(pf);
|
||||
assert_eq!(f.kind, FootageKind::Still);
|
||||
assert_eq!((f.width, f.height, f.codec.as_str()), (250, 100, codec), "{pf}");
|
||||
assert_eq!((f.width, f.height), (250, 100), "{pf}");
|
||||
// Some ffmpeg builds state the transfer (", linear"), which the codec name then carries.
|
||||
assert!(f.codec == codec || f.codec.starts_with(&format!("{codec}, ")), "{pf}: {}", f.codec);
|
||||
assert_eq!(f.alpha, if alpha { AlphaMode::Straight } else { AlphaMode::Ignore }, "{pf}");
|
||||
let img = MediaPool::new().frame_at(&f, Tick::ZERO).expect(pf);
|
||||
let want = ffmpeg_rgba(&p, !codec.contains("8-bit"));
|
||||
|
||||
Reference in New Issue
Block a user