Home
RecentChanges

Search:

» AviSynth is a powerful video FrameServer for Win32.

AviSynth Links:
»Download
»Learn to script
»FAQ
»Manual
»Discussion fora
»Project page
»External filters
»FeedBack

» You can add pages to this website immediately. No login required.
Edit this document

» AboutAviSynth

 

Avisynth 
Logo

Limiter

( Diese Seite in flag-germany.gif Deutsch )

Limiter(clip 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 show_luma (shows out of bound luma), show_luma_grey (shows out of bound luma and makes the remaining pixels grey), show_chroma (shows out of bound chroma), show_chroma_grey (shows out of bound chroma and makes the remaining pixels grey). The coloring is done as follows:

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

j,k=1,2 show_luma / show_chroma show_luma_grey / show_chroma_grey
Yj < min_luma red (pj) red (pj)
Yj > max_luma green (pj) green (pj)
Yj < min_luma and Yk > max_luma yellow (pj and pk) puke (pj), olive (pk)
   
U < min_chroma yellow yellow
U > max_chroma yellow blue
V < min_chroma yellow cyan
V > max_chroma yellow red
U < min_chroma and V < min_chroma yellow green
U > max_chroma and V < min_chroma yellow teal
U < min_chroma and V > max_chroma yellow orange
U > max_chroma and V > max_chroma yellow magenta

YV12 (chroma shared between 2x2 pixels Y11UY12V; Y21UY22V):

j,k=11,12,21,22 show_luma / show_chroma show_luma_grey / show_chroma_grey
Yj<min_luma red (pj) red (pj)
Yj>max_luma green (pj) green (pj)
Yj<min_luma and Yk>max_luma yellow (pj and pk) puke (pj), olive (pk)
   
U < min_chroma yellow yellow
U > max_chroma yellow blue
V < min_chroma yellow cyan
V > max_chroma yellow red
U < min_chroma and V < min_chroma yellow green
U > max_chroma and V < min_chroma yellow teal
U < min_chroma and V > max_chroma yellow orange
U > max_chroma and V > max_chroma yellow magenta

Changes

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

SourceForge Logo

 


Edit this document | View document history
Document last modified Fri, 21 Jan 2005 18:42:08