PSD integration test: deep groups + NaN text, damaged layer section, huge header under a small budget, on a 2 MiB stack
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Brandon Thomas
co-authored by
Claude Sonnet 5.5
parent
f2d481ce20
commit
5f4b3aee86
@@ -265,7 +265,7 @@ fn pixels_match_the_one_buffer_per_channel_reference() {
|
||||
}
|
||||
|
||||
/// A copy of `bytes` with a different size, depth and merged-image section (`comp`, then `body`).
|
||||
fn with_merged(bytes: &[u8], size: Option<(u32, u32)>, depth: Option<u16>, comp: u16, body: &[u8]) -> Vec<u8> {
|
||||
pub(crate) fn with_merged(bytes: &[u8], size: Option<(u32, u32)>, depth: Option<u16>, comp: u16, body: &[u8]) -> Vec<u8> {
|
||||
let offset = Psd::parse(bytes.to_vec()).unwrap().merged_offset;
|
||||
let mut v = bytes[..offset].to_vec();
|
||||
if let Some((w, h)) = size {
|
||||
|
||||
Reference in New Issue
Block a user