#756: import DPX and Cineon stills and sequences
Problem: the Media Browser listed .dpx files and After Effects imports DPX and Cineon scans (stills and numbered sequences), but import refused them: nothing could decode either format, and .cin was not even an image to the browser, so its runs never grouped into sequences. Fix: a small pure-Rust reader written from the public SMPTE 268M and Kodak Cineon specifications (crates/media/src/dpx.rs): luma, RGB, RGBA and ABGR at 8/10/12/16 bits, 10-bit filled method A/B, 12-bit in 16-bit words, both byte orders, lines padded to 32-bit words, unrotated orientations and the pixel aspect ratio; the codec names the transfer (log, linear, ...) and code values are shown as stored. RLE, signed, float, Y'CbCr, packed 10/12-bit and transposed files are refused with a clear error; every header field is bounds-checked and the data length verified before allocating. Probe and frame decode use it first; is_importable, the Media Browser kinds and the import dialog list .dpx/.cin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9a7d3e7699
commit
557c0bdbba
@@ -58,6 +58,10 @@ pub fn probe_model(path: &str, bytes: &[u8], resolve: &dyn Fn(&str) -> Option<Ve
|
||||
|
||||
/// Probe in-memory file contents; `path` names the footage (and is stored as `Footage::path`).
|
||||
pub fn probe_bytes(path: &str, bytes: Arc<[u8]>) -> Result<Footage> {
|
||||
// DPX / Cineon film scans (our own reader; `image` has none).
|
||||
if let Some(f) = crate::dpx::probe(path, &bytes)? {
|
||||
return Ok(f);
|
||||
}
|
||||
if let Some(f) = crate::layered::probe(path, &bytes)? {
|
||||
return Ok(f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user