digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   LegalClip Filter for Avisynth [Readme] (http://www.digitalfaq.com/archives/avisynth/14692-legalclip-filter-avisynth.html)

kvcd.net Archives 11-25-2012 09:03 PM

LegalClip Filter for Avisynth [Readme]
 
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: http://www.digitalfaq.com/archives/a...h-filters.html


All times are GMT -5. The time now is 12:34 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.