This is a simple image viewer intended for raw image buffers. This means it targets image data with no formatting header, where the image format/size is unknown.
It's mainly intended for use with the resource_x.bin
image files dumped from my alr tool. (But you can use it
on any raw or block-compressed image data with no header.
buffpeep
lets me try out lots of resolution and format settings, without needing to manually hex edit DDS files. The main benefit is not having to manually
recalculate pitch/linear size or fix DDS header flags when switching formats.
- The panning and zooming controls are still a bit awkward, so I want to fix these
- Add a way to shuffle channels around, in case a format orders them differently
- Add a way to view single-channel data as greyscale?
Click and drag to pan around the image. The cursor won't hit the monitor borders and can pan infinitely. For some reason the vertical movement is much slower than horizontal in some situations,and doesn't move linearly (even though the math is the same). Scroll to zoom. This is implemented by scaling the image, so it's relative to the image center and not the window center (which can be awkward to use).
Increase / decrease height by 1 pixel at a time. If in compressed mode, increase/decrease 4 pixels at a time (compressed size must be a multiple of 4).
Same as up and down, but for width.
In compressed mode, cycle through compressed texture formats. Available options are DXT1 (BC1), DXT3 (BC2), and DXT5 (BC3).
In raw mode, cycle the number of channels from 1 to 4. Channel combinations are R, RG, RGB, and RGBA.
Raw mode only, cycles between 8-bit and 16-bit mode. This can be used to view single-channel 16-bit images, for example.
Toggle compressed/raw mode.
Exit.
It lets you peep on unknown image buffers. I was going to name it bufview
, but my roommate suggested Peeping Tom
, so I combined them.