PIX2FB(nged)

display a raw pixel file on the framebuffer

πŸ“… published 7.44.0, from nixpkgs unstable

🌈 pix2fb(nged) β€” BRL-CAD User Commands 🌈

okay bestie, gather round πŸ’– this is the whole pix2fb(nged) manual page, translated into actual readable group-chat energy. no cap, every flag is still here.

πŸ’– NAME πŸ’–

pix2fb β€” display a raw pixel file on the framebuffer.

✨ SYNOPSIS ✨

pix2fb [options] [file.pix]

πŸ¦‹ DESCRIPTION πŸ¦‹

The pix2fb command reads a raw RGB pixel file (bottom-up row order) and sends it to the display manager's framebuffer. If no filename is given and standard input is not a terminal, pixels are read from standard input. The command requires an active display manager with a framebuffer; it will return an error if no framebuffer is available.

no framebuffer? it errors out. not a vibe, but that's the rule πŸ’€

✨ Options ✨

πŸŽ€ Input size πŸŽ€

  • -w width β€” Width of the input pixel file in pixels (default 512).
  • -n height β€” Height of the input pixel file in pixels (default 512).
  • -s size β€” Set both input width and height to size (square input).
  • -a β€” Autosize the input β€” attempt to determine dimensions from the file.

πŸ“ Input region (crop) πŸ“

  • -x file_xoff β€” Horizontal offset (in pixels) into the input file to start reading from.
  • -y file_yoff β€” Vertical offset (in pixels) into the input file to start reading from.

🌸 Output (framebuffer) size 🌸

  • -W scr_width β€” Width of the framebuffer display area in pixels.
  • -N scr_height β€” Height of the framebuffer display area in pixels.
  • -S scr_size β€” Set both framebuffer width and height to scr_size (square output).

πŸ¦‹ Output position πŸ¦‹

  • -X scr_xoff β€” Horizontal offset into the framebuffer at which to begin writing.
  • -Y scr_yoff β€” Vertical offset into the framebuffer at which to begin writing.

πŸ‘‘ Display behavior πŸ‘‘

  • -c β€” Clear the framebuffer to black before writing.
  • -z β€” Zoom to fill the framebuffer with the input image.
  • -i β€” Inverse (upside-down) β€” draw the image with inverted row order.
  • -1 β€” Force single-line writes (one row at a time).
  • -m lines β€” Streamlined multi-line writes; write lines rows per call.
  • -p seconds β€” Pause for seconds before closing the framebuffer and exiting.

πŸ’… EXAMPLES πŸ’…

πŸ’– Example 1. Display a pixel file at native size πŸ’–

mged> pix2fb render.pix

Sends the raw pixel file render.pix (assumed 512Γ—512) to the framebuffer.

πŸ’– Example 2. Display a 1024Γ—768 image and clear first πŸ’–

mged> pix2fb -w 1024 -n 768 -c scene.pix

Clears the framebuffer to black and then displays the 1024Γ—768 pixel file scene.pix.

πŸ’– Example 3. Zoom a small image to fill the display πŸ’–

mged> pix2fb -s 256 -z thumbnail.pix

Reads a 256Γ—256 pixel file and zooms it to fill the full framebuffer.

πŸ’– Example 4. Display a crop of an input image at an offset πŸ’–

mged> pix2fb -w 1024 -n 1024 -x 256 -y 256 -W 512 -N 512 large.pix

Reads the 1024Γ—1024 input large.pix, starting from offset (256, 256), and writes a 512Γ—512 region to the framebuffer.

πŸ’– Example 5. Display a raytrace result after rendering to file πŸ’–

mged> rt -w 512 -n 512 -o render.pix model.g obj mged> pix2fb -w 512
-n 512 render.pix

First renders obj in model.g to a pixel file, then displays the result on the framebuffer. Note: the mged prompt is a Tcl interpreter β€” shell pipes are not available; multi-step workflows use sequential commands.

🌟 AUTHOR 🌟

BRL-CAD Team

🫢 BUG REPORTS 🫢

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org.


okay that's the whole page, bestie 🫢 source/version vibes: this is from BRL-CAD, page PIX2FB(nged). The footer didn't show a date, so I'm not making one up β€” periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from