This is a rewrite of the Avisynth plugin VScope: http://forum.doom9.org/showthread.php?t=76238
It is similar to Avisynth's built-in Histogram() filter.
Some details are slightly different, compared to the original:
- The luma in the histograms is clamped to 16-235 (as opposed to seemingly arbitrary upper limits of 255, 240, 232, depending on the function)
- The chroma in the colormap is more saturated.
- The tick marks are not coloured.
- The full frame histograms in the corner are not coloured. I couldn't see the colours there anyway.
vscope.Scope(clip clip[, string mode="both", bint tickmarks=1, string side="Y", string bottom="Y", string corner="blank"])
- Draw a histogram on the right side.
- Draw a histogram below the image.
- Draw both histograms.
- Draw dotted lines over the histograms.
- Draw histogram of luma.
- Draw histogram of chroma channel U
- Draw histogram of chroma channel V.
- Draw histograms of both chroma channels, side by side.
- Draw histograms of chroma channels, on top of histogram of luma channel.
- See side.
- Keep the corner blank.
- Chroma map.
- Full frame histogram of luma.
- Full frame histogram of chroma channel U.
- Full frame histogram of chroma channel V.
./autogen.sh ./configure make
The license is WTFPL.
The original code processes YUY2 directly, so none of it could be copied.