Closed applecuckoo closed 1 month ago
This pvrtextool dialog is for wrapping existing raw data with the pvr header... tacentview does not yet support saving pvr files. However, it may be reasonable to allow display of 'raw' pixel data if you happen to know the pixel-format, dimensions, mipmaps etc. Will leave this request open but may not get to it for a while. Thx for the suggestion.
Tentative plan here is to make a 'raw import' dialog. The dialog would allow specification of the filetype to create (only lossless filetypes much like the paste filetypes).
Fields of the raw-import dialog would include:
Note: Updating display 'live' would be needed so different dimensions / offsets could be experimented with on the fly. Note: Care would have to be taken that we don't ever overrun the available data by pre-computing the needed buffer size given the width/height/mips/pixel-format. This would then be compared to the actual size of the data being imported (filesize - offset) and if too little data not performing an import. Would need a warning message of some kind.
Still ToDo:
This is the final version of the import dialog. Will close this issue after testing a few more raw files.
Commit ee73529ed9d1bad6e72c18b0143dac7e9dc4c0fd includes various raw test images.
Basically something like this:![raw](https://github.com/bluescan/tacentview/assets/113647417/d1e9104f-d5be-4496-933c-0b6e25f5e07d)