LegalClip - An Avisynth filter for clipping levels to within CCIR-601 range
By Ross Thomas <email@example.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.
|clip||Specifies the clip to affect.||last|
| || || |
: Thanks go to assembly-language guru Tom Barry for his patience
- 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]