Commit graph

25 commits

Author SHA1 Message Date
Niels Martin Hansen
0e6dd47bf0 Implement \iclip (inverse rectangular clip)
Originally committed to SVN as r2286.
2008-07-25 01:33:32 +00:00
Niels Martin Hansen
94d3185170 Somewhat better workaround for \fad uglyness bug.
No more seams between border and fill when fill alpha is zero, though they still appear when fill alpha is nonzero.
It's either seams or ugly fades.

Originally committed to SVN as r2285.
2008-07-25 00:37:06 +00:00
Niels Martin Hansen
ea79951788 Added \blur tag for real gaussian blur. Blurs the same things as \be, except in a prettier way.
It is possible to combine the two, although it'd be mostly pointless.

Originally committed to SVN as r2284.
2008-07-24 02:41:53 +00:00
Niels Martin Hansen
316f1afb6e Optimise safe_subtract to avoid conditionals.
Originally committed to SVN as r2283.
2008-07-24 00:10:43 +00:00
Niels Martin Hansen
582dd39cbd Ensure Rasterizer::mWideBorder is initialized such that memory allocation in Rasterizer::Rasterize() doesn't go crazy. Also fix brainfart causing \xbord0\ybord<nonzero> to draw no border.
Originally committed to SVN as r2282.
2008-07-23 21:33:03 +00:00
Niels Martin Hansen
4e456b1abb Changes to CSRI API and project file to ease debugging.
Originally committed to SVN as r2281.
2008-07-23 20:25:52 +00:00
Niels Martin Hansen
5d3b1fe8c2 Enable variable strength 'blur edges' effect, using other values than 1 to \be, like \be20. Also allow putting \be inside \t for animating the blur effect.
The parameter is the number of passes of blur to perform.

Originally committed to SVN as r2279.
2008-07-22 23:38:22 +00:00
Niels Martin Hansen
13654219c2 Implemented four new tags: \xbord \ybord \xshad \yshad
Allows setting the border in X and Y direction separately, and the shadow displacement in X and Y direction separately.
The \xshad and \yshad tags also allow negative shadow displacement values. Negative shadow is still not allowed in any of the traditional locations.

Originally committed to SVN as r2278.
2008-07-22 21:42:36 +00:00
Niels Martin Hansen
c54cf755ac Fix "ugly fades" bug. The border colour was rendered behind the fill colour unless both primary and secondary alpha were non-zero. The \fad and \fade tags both set \alpha rather than \1a \2a \3a \4a, and \alpha is a wholly separate alpha value which wasn't considered at all in this case.
Making it never draw the fill in border colour fixes this and doesn't seem to have any adverse effects.

Originally committed to SVN as r2276.
2008-07-22 18:49:20 +00:00
Niels Martin Hansen
e504c61065 Fix rendering bug exposed with \be1, \bord smaller than 1.5 and non-zero fill alpha, causing "stray dots" to appear.
The problem was caused by an integer underflow, the fix involves spending a few more instructions per pixel to avoid that.

Originally committed to SVN as r2275.
2008-07-22 16:21:26 +00:00
Niels Martin Hansen
c6a1b9649b Stop importing msxml.dll when it's not needed anyway, and a string literal was not marked with _T() when it should.
Originally committed to SVN as r1985.
2008-03-08 23:44:51 +00:00
Rodrigo Braz Monteiro
4f4f4cc91f Moved files relevant to providers to aegisub/include. A few things might be broken.
Originally committed to SVN as r1956.
2008-03-07 21:00:20 +00:00
Rodrigo Braz Monteiro
092876d8dc Added VSFilter VS2008 project files
Originally committed to SVN as r1822.
2008-01-23 22:01:10 +00:00
Rodrigo Braz Monteiro
a45c575865 A few more project fixes...
Originally committed to SVN as r1821.
2008-01-23 21:55:23 +00:00
Rodrigo Braz Monteiro
d1dac98f62 Fixed vsfilter solution.
Originally committed to SVN as r1818.
2008-01-23 06:57:39 +00:00
Rodrigo Braz Monteiro
45f5886c2a Fixed some critical mkv loading issues.
Originally committed to SVN as r1619.
2007-10-22 20:10:35 +00:00
Niels Martin Hansen
dad1d4d02f A bit more comments on the rasteriser code.
Originally committed to SVN as r1544.
2007-08-29 21:06:09 +00:00
Niels Martin Hansen
268b6c45af Back to classic pixmix/pixmix2 architecture. Probably made some parts clearer. More and more correct documentation of the Draw code. Probably more correct (at least not less correct, it seems) alpha calculation.
Originally committed to SVN as r1543.
2007-08-29 19:57:16 +00:00
Niels Martin Hansen
35f2b7caa2 Remove unused code from experiments with using the TextSub 2.23 rasteriser code instead. (They failed.)
Originally committed to SVN as r1542.
2007-08-29 18:49:02 +00:00
Niels Martin Hansen
6465b086e7 Attempt to add some documentation for what Rasterizer::Draw does.
Originally committed to SVN as r1541.
2007-08-29 18:40:51 +00:00
Niels Martin Hansen
4cf49cf9fb Possibly fix a rounding problem that causes subtitles with \pos to move a slightly bit around even though they shouldn't.
Originally committed to SVN as r1536.
2007-08-26 15:44:15 +00:00
Niels Martin Hansen
fae778e45b Require [Script Info] line as first thing in SSA/ASS files. (Probably. This might make VSFilter fail on invalid scripts, oh no!)
Originally committed to SVN as r1406.
2007-07-10 21:31:06 +00:00
Rodrigo Braz Monteiro
1d530b82fd Added winmm.lib to vsfilter.vcproj
Originally committed to SVN as r1404.
2007-07-10 21:24:42 +00:00
Niels Martin Hansen
1fb4f58ff2 Import VSFilter from guliverkli.
Originally committed to SVN as r1399.
2007-07-09 18:33:44 +00:00
Niels Martin Hansen
5d21970bbc Added known VSFilter patches.
Originally committed to SVN as r1398.
2007-07-09 16:00:10 +00:00