chinedufn / psd

A Rust API for parsing and working with PSD files.
https://chinedufn.github.io/psd
Apache License 2.0
265 stars 40 forks source link

[refactor] consolidate RLE compression #38

Open scoiatael opened 2 years ago

scoiatael commented 2 years ago

Hey,

when hunting for bugs in rendering I saw that RLE compression is essentially written twice - and consolidated it when trying to find root cause. Let me know if this is helpful to you - if not, just close this PR :) If this is useful, it'd be nice to benchmark it to understand performance impact.

chinedufn commented 2 years ago

Removing duplication is definitely helpful, thanks!

I'll review once the PR is ready!

Loving your efforts, thank you!