PAMMIXINTERLACE(1)
β¨ pammixinte...User Manual (1) β¨
okay bestie, welcome to the General Commands Manual for pammixinte...User Manual(1) π pull up a chair, we're de-interlacing today and it's gonna slay.
π NAME π
pammixinterlace β mix adjacent lines to merge interlaced images π¦
πΈ SYNOPSIS πΈ
pammixinterlace
[-filter={linear, fir, ffmpeg}]
[-adaptive]
[infile]
π DESCRIPTION π
okay so first thing, this program is part of Netpbm(1). π«Ά
pammixinterlace is meant to operate on an image which is the interlacing of two images, where raster rows 0, 2, 4, etc. are from one image and rows 1, 3, 5, etc. are from another. (there's a whole "why would you even have this" section below, don't worry, bestie, we get there π)
What it does: pammixinterlace makes each row of the output a mixture of the corresponding row of the input and its two neighbors. The math is giving very precise, very demure: it uses half of the main row and a quarter each of the two neighbor rows. Β½ + ΒΌ + ΒΌ = 1, the math is mathing π₯
This is lowkey so useful if the image is a video capture from an interlaced video source. In that case, each row shows the subject 1/60 second before or after the two rows that surround it. If the subject is moving, this can detract from the quality of the image. π
Now the lore, because iykyk: in video data streams, you often find each frame contains only half the rows of the image β the odd half or the even half. The displayer of the stream displays the rows in their proper positions on a CRT as they come in. When you display the rows in this order, the CRT has less flicker because a particular area of the screen gets refreshed twice as often. In the process of capturing such a stream, computers often generate the interlaced image of the type that pammixinterlace works with. But this interlaced image, when displayed on a CRT, does not look the same as if a displayer were rendering the stream directly on a CRT as it arrived, because of the timing of when the various pixels get drawn and subsequently fade. That's why you need something like pammixinterlace. periodt. π
You may prefer the effect of simply extracting one of two images. You can do that with pamdeinterlace. no judgement bestie, different vibes for different times π
β¨ OPTIONS β¨
So besides the options common to all programs based on libnetpbm (most notably -quiet, see Common Options β yep, go look, it's right there), pammixinterlace recognizes the following command line options:
-filter={linear,fir,ffmpeg}β this one picks between one of the three filtering mechanisms.linearis a linear-blend formula.firis a size-5 FIR low-pass filter, andffmpegis a formula pulled from the documentation of the programffmpeg. The default isfir. β-adaptiveβ turns on"adaptive"filtering mode. In this modepammixinterlacemodifies only pixels that are obviously part of a"comb"pattern. like, it's selective. it has taste. π
π¦ SEE ALSO π¦
pamdeinterlace(1), pam(1) pnm(1)
π§ DOCUMENT SOURCE π§
This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at
http://netpbm.sourceforge.net/doc/pammixinterlace.html
and that's the whole thing, babe π this was netpbm documentation, dated 22 February 2007, living under the Pammixinte...User Manual(1) banner β go mix some rows, you're gonna eat ππβ¨
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms