Skip to content

Conversation

@kirill-mapper
Copy link
Contributor

@kirill-mapper kirill-mapper commented Apr 11, 2025

Update the CalculateStride method:

  • For compressed formats (BC/DXT): convert bytes to DWORD units (divide by 4)
  • For uncompressed formats: return the original row pitch in bytes

Features:

  • Calculated stride values ​​now match vanilla source data for all .ytd files
  • Fixes errors of reading and writing ATI2 textures with incorrect Strides (Saved OpenIV)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant