FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge remote-tracking branch 'origin/main' into apv-105
Brandon Thomas005745d9ece6
diff --cc crates/codecs/src/mp4.rsindex b36aa9042,110926af9..1ac8dacac--- a/crates/codecs/src/mp4.rs+++ b/crates/codecs/src/mp4.rs@@@ -154,8 -148,7 +154,8 @@@ impl Mp4Sourcecodec: codec_label(&entry.codec),pixel_format: pixfmt_label(&entry.codec),color,- has_alpha: matches!(&entry.codec, CodecConfig::ProRes { fourcc } if fourcc.0 == *b"ap4h" || fourcc.0 == *b"ap4x")- || matches!(&entry.codec, CodecConfig::Apv(a) if a.chroma_format_idc == 4),- has_alpha: false,++ // ProRes 4444 alpha comes from its first frame header (`open_reader`)++ has_alpha: matches!(&entry.codec, CodecConfig::Apv(a) if a.chroma_format_idc == 4),bitrate,hdr: entry.video.as_ref().and_then(|v| hdr_metadata(v.mastering_display.as_ref(), v.content_light)),};@@@ -480,11 -497,8 +508,12 @@@ fn pixfmt_label(c: &CodecConfig) -> Str};format!("YUV {sub} {}-bit", c.bit_depth.max(8))}+ CodecConfig::Apv(a) => {+ let chroma = filmcraft_apv::ChromaFormat::from_idc(a.chroma_format_idc).unwrap_or(filmcraft_apv::ChromaFormat::Yuv422);+ crate::apv::apv_pixfmt_label(chroma, a.bit_depth_minus8.saturating_add(8))+ }- CodecConfig::ProRes { fourcc } if fourcc.0[2] == b'4' => "YUVA 4:4:4 12-bit".into(),+ // 4444 until the first frame header says whether it codes alpha (`open_reader`)+ CodecConfig::ProRes { fourcc } if fourcc.0[2] == b'4' => "YUV 4:4:4 12-bit".into(),CodecConfig::ProRes { .. } => "YUV 4:2:2 10-bit".into(),CodecConfig::Jpeg { .. } => "YUV 4:2:x 8-bit".into(),_ => String::new(),