Giter VIP home page Giter VIP logo

buffpeep's Introduction

drawing

buffpeep

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.

Planned Changes

  • 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?

Controls

Mouse

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).

Up/Down (or K/J)

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).

Left/Right (or H/L)

Same as up and down, but for width.

Space

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.

Shift + Space

Raw mode only, cycles between 8-bit and 16-bit mode. This can be used to view single-channel 16-bit images, for example.

C

Toggle compressed/raw mode.

Q

Exit.

Why a buff Peep?

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.

buffpeep's People

Contributors

torphedo avatar

Stargazers

DartPower avatar

Watchers

DartPower avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.