Limiter

Limiter (clip, int "min_luma", int "max_luma", int "min_chroma", int "max_chroma", string "show")

This filter is present in v2.5. The standard known as CCIR-601 defines the range of pixel values considered legal for presenting on a TV. These ranges are 16-235 for the luma component and 16-240 for the chroma component.

Pixels outside this range are known to cause problems with some TV sets, and thus it is best to remove them before encoding if that is your intended display device. By default this filter clips (or "clamps") pixels under 16 to 16 and over 235 (or 240) to 235 (or 240).

Prior to v2.53 the (incorrect) default value was 236. Use Limiter(16, 235, 16, 240) for CCIR-601 compliant digital video.

In  v2.56, an option show is added. If set, it colors the pixels outside the specified [min_luma,max_luma] or [min_chroma,max_chroma] range.

show can be "luma" (shows out of bounds luma in red/green), "luma_grey" (shows out of bounds luma and makes the remaining pixels greyscale), "chroma" (shows out of bounds chroma in yellow), "chroma_grey" (shows out of bounds chroma and makes the remaining pixels greyscale). The coloring is done as follows:

YUY2 (chroma shared between two horizontal pixels p1 and p2: Y1UY2V):

YV12 (chroma shared between 2x2 pixels Y11uY12v;/Y21uY22v):

j,k=1,2 or j,k=11,12,21,22lumaluma_grey
Yj < min_lumared (pj)red (pj)
Yj > max_lumagreen (pj)green (pj)
Yj < min_luma and Yk > max_lumayellow (all)puke (pj), olive (pk)
 chromachroma_grey
U < min_chromayellowyellow
U > max_chromayellowblue
V < min_chromayellowcyan
V > max_chromayellowred
U < min_chroma and V < min_chromayellowgreen
U > max_chroma and V < min_chromayellowteal
U < min_chroma and V > max_chromayelloworange
U > max_chroma and V > max_chromayellowmagenta

Changelog:

v2.56added show to show out of bounds luma/chroma

$Date: 2005/06/01 17:42:26 $