M13.6: PSD smart objects apply perspective quads and placed-layer warps
nonAffineTransform and the warp descriptor (named styles with bend / distortion, custom envelope quilt meshes via ObAr meshPoints) are baked as placed over the placed bounds (SourceLayer::placed), at up to 4x resolution. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7d944ca494
commit
7b0a449c5f
@@ -30,6 +30,9 @@ pub enum DValue {
|
||||
Class(String, String),
|
||||
Raw(Vec<u8>),
|
||||
Reference(Vec<RefItem>),
|
||||
/// An object array (`ObAr`): `count` objects of one class stored column-wise, each item a
|
||||
/// list of `count` values (unit floats).
|
||||
ObjectArray(u32, Descriptor),
|
||||
}
|
||||
|
||||
/// An item of a reference (`obj `).
|
||||
@@ -161,6 +164,10 @@ fn read_value(r: &mut Reader, ty: &[u8; 4], depth: usize) -> Result<DValue> {
|
||||
}
|
||||
DValue::List(v)
|
||||
}
|
||||
b"ObAr" => {
|
||||
let n = r.u32()?;
|
||||
DValue::ObjectArray(n, read_descriptor(r)?)
|
||||
}
|
||||
b"doub" => DValue::Double(r.f64()?),
|
||||
b"UntF" => {
|
||||
let unit = String::from_utf8_lossy(&r.tag()?).into_owned();
|
||||
@@ -280,6 +287,11 @@ fn write_value(out: &mut Vec<u8>, v: &DValue) {
|
||||
write_value(out, x);
|
||||
}
|
||||
}
|
||||
DValue::ObjectArray(n, d) => {
|
||||
out.extend_from_slice(b"ObAr");
|
||||
put_u32(out, *n);
|
||||
write_descriptor(out, d);
|
||||
}
|
||||
DValue::Double(x) => {
|
||||
out.extend_from_slice(b"doub");
|
||||
out.extend_from_slice(&x.to_be_bytes());
|
||||
|
||||
Reference in New Issue
Block a user