Quantcast Legalclip Filter for Avisynth [Readme] - digitalFAQ.com Forums [Archives]
  #1  
11-25-2012, 09:03 PM
kvcd.net Archives's Avatar
kvcd.net Archives kvcd.net Archives is offline
Free Member
 
Join Date: May 2012
Posts: 84
Thanks: 0
Thanked 1 Time in 1 Post
LegalClip - An Avisynth filter for clipping levels to within CCIR-601 range

By Ross Thomas <ross@grinfinity.com>

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. This filter clips (or "clamps") pixels under 16 to 16 and over 235 (or 240) to 235 (or 240). It's very complicated .

If your CPU supports integer SSE operations (Intel Pentium III and better, AMD Athlon and better) and the width of the clip is a multiple of four, then SSE-optimized code will be used.

Usage
Code:
LegalClip(clip clip)
ParameterMeaningDefault
clipSpecifies the clip to affect.last
   

Acknowledgements: Thanks go to assembly-language guru Tom Barry for his patience .

Known Issues: None.

History
- 0.2 - Now two versions of main loop, one plain assembler and one SSE.
- 0.1 - First release. Alpha code. Danger, Will Robinson!

Download here: SansGrip's Avisynth Filters [DOWNLOADS]
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
RangeInfo Filter for Avisynth [Readme] kvcd.net Archives Avisynth Scripting 0 11-25-2012 09:07 PM
Ghostbuster Filter for Avisynth [Readme] kvcd.net Archives Avisynth Scripting 0 11-25-2012 09:00 PM
Blockbuster Filter for Avisynth [Readme] kvcd.net Archives Avisynth Scripting 0 11-25-2012 07:38 PM
NoMoSmooth Filter for Avisynth [Readme] kvcd.net Archives Avisynth Scripting 0 11-25-2012 07:00 PM
RemoveBorders filter for Avisynth [Readme] kvcd.net Archives Avisynth Scripting 0 10-28-2012 08:04 AM

Thread Tools



 
All times are GMT -5. The time now is 03:08 PM  —  vBulletin © Jelsoft Enterprises Ltd