RangeInfo Filter for Avisynth [Readme]
RangeInfo - An Avisynth filter for pixel value range inspection
By Ross Thomas <ross@grinfinity.com> RangeInfo is a diagnostic filter for Avisynth. Its purpose is to allow fairly detailed inspection of pixel value ranges within a clip. That is to say, it will tell you various pieces of information such as the pixels with the lowest and highest values (for Y, U and V) in the frame and for the clip overall, amongst others. It can also optionally highlight pixels within a certain range in a very attractive vivid green. I wrote this filter to investigate the output from various sources to see if it conformed to the CCIR-601 specification that broadcast video be limited to using certain ranges of pixel values. It can also be useful for checking the range of a clip to help determine what levels adjustment might be necessary. Usage Code:
RangeInfo(clip clip, bool show, int ylow, int yhigh, int ulow, int uhigh, int vlow, int vhigh)
Examples Displays the range statistics, but does not highlight: Code:
RangeInfo() Code:
RangeInfo(show=false, ylow=0, yhigh=15) Code:
RangeInfo(ulow=241, uhigh=255, vlow=241, vhigh=255) To-Do: - MMX/SSE optimizations (I have to learn x86 assembler first...). Since this is a diagnostic filter this is pretty low priority. - Check parameters for sanity. - Check clip resolution to ensure statistics will fit. - Possibly compute mean, most common, mean minimum and mean maximum values for the entire clip, but I'm not sure this would be useful. History: - 0.1 - First release. Alpha code. Danger, Will Robinson! Download here: http://www.digitalfaq.com/archives/a...h-filters.html |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.