Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
2nd April 2003, 20:51 | #1 | Link |
Registered User
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
|
New FillMargins() filter
I just released a little quick and dirty filter for Avisynth 2.5 that will fill the margins of a clip without having to change the dimensions. Sometimes you have a few pixels of black border or garbage at the edge of the screen and you don't want to crop because you need a multiple of 16 or whatever. My local ABC station has recently been like this. But this looks ugly and doesn't compress well.
The FillMargins(left, top, right, bottom) filter will fill in these margins with the contents of the outer edges of the unfilled area. It's for Avisynth 2.5 YV12 only but doesn't require any special processor, or any numeric multiples. See: www.trbarry.com/Readme_FillMargins.txt and www.trbarry.com/FillMargins.zip (source & dll) This is pretty fast already but will probably go more than 10x faster once Avisynth is fixed so MakeWriteable doesn't need to copy the entire buffer each time. BTW, FillMargins may likely be a poor mans version of Simon Walters more versatile BorderControl. But I didn't know about that one until I was half done, so I finished it anyway. Mines just a simple one function filter. Please post any bugs. - Tom |
|
|