PPMTOYUVSPLIT(1)

๐Ÿ“ฆ
version 11.13.03 ยท 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

๐Ÿ’– ppmtoyuvsplit โ€” the user manual, but make it cute โœจ

okay bestie, gather round, because today we're talking about ppmtoyuvsplit from the Netpbm family, and it's lowkey iconic. it's a General Commands Manual page, and yes, it's giving "niche but powerful." ๐ŸŽ€


โœจ NAME โœจ

ppmtoyuvsplit โ€” convert a PPM image to 3 subsampled raw YUV files ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

ppmtoyuvsplit basename [ppmfile]

likeโ€ฆ that's it. that's the whole summoning ritual. basename is required, ppmfile is optional, and she'll tell you why in a sec. ๐Ÿ’…


๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

so first things first: this program is part of Netpbm(1). family reunion, everyone's here. ๐ŸŒˆ

Here's the tea: ppmtoyuvsplit reads a PPM image as input. then it produces 3 raw files as output, and their names are:

  • basename.Y
  • basename.U
  • basename.V

(so if you ran it with basename cutie, you'd get cutie.Y, cutie.U, and cutie.V. not me naming my files like that. ๐Ÿ™ˆ)

These output files are the subsampled raw YUV representation of the input PPM image โ€” exactly as required by the Stanford MPEG codec. it's giving "very specific audience, but they're obsessed." ๐Ÿ‘‘

Now the details, because the details are everything:

  • The Y output file contains a byte for each pixel in the image. the rows go from top to bottom, and the columns within each row go left to right. very orderly, very booktok organized. ๐Ÿ“š
  • The U and V output files are arranged similarlyโ€ฆ except each byte represents a square of 4 pixels of the image. and that byte's value is the arithmetic mean of the value of each of those 4 pixels. math girlies rise up. ๐Ÿงฎโœจ
  • Hence (yes, hence, we're being fancy): the Y file is 4 times the size of the U file or the V file. four whole times. ๐Ÿ˜ญ

And the YUV values are scaled according to CCIR.601, as assumed by MPEG. no cap. that's the standard and she's sticking to it. ๐Ÿ’€


๐ŸŽ€ OPTIONS ๐ŸŽ€

plot twist: there are no command line options defined specifically for ppmtoyuvsplit. nope. none. she's a simple girl. ๐Ÿ™ˆ

BUT โ€” she does recognize the options common to all programs based on libnetpbm. so if you wanna know those, go check out Common Options. iykyk. ๐Ÿ’…


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

the whole friendship group, obviously:

go say hi, they don't bite. ๐Ÿซถ


๐ŸŒŸ AUTHOR ๐ŸŒŸ

Copyright (C) 1993 by Andre Beck. (Andre_Beck@IRS.Inf.TU-Dresden.de) โ€” legend behavior, honestly. ๐Ÿ‘‘

Based on ppmtoyuv.c. ๐Ÿ“


๐Ÿ“œ DOCUMENT SOURCE ๐Ÿ“œ

This manual page was generated by the Netpbm tool makeman from HTML source. the master documentation lives at:

http://netpbm.sourceforge.net/doc/ppmtoyuvsplit.html

โš ๏ธ friendly reminder bestie: this whole page is netpbm documentation, dated 06 March 2003, and it's the user manual for Ppmtoyuvsp... (aka ppmtoyuvsplit) in section 1. that's the vibe. that's the source. periodt. ๐Ÿ’–

now go forth and split those YUVs, you main character. ๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from