summaryrefslogtreecommitdiffstats
path: root/DOCS/OUTDATED-tech/swscaler_methods.txt
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-07-28 18:15:33 +0200
committerwm4 <wm4@mplayer2.org>2012-07-28 20:44:59 +0200
commit5368c46453223acf87de7ef89a35a37402c2d8eb (patch)
tree051bf39b80c5fbbb5212ecc93ef3531031194640 /DOCS/OUTDATED-tech/swscaler_methods.txt
parentf606bb6d97cfdfb8f740259eb4ea683adddfd06b (diff)
downloadmpv-5368c46453223acf87de7ef89a35a37402c2d8eb.tar.bz2
mpv-5368c46453223acf87de7ef89a35a37402c2d8eb.tar.xz
Rename DOCS/tech/ to DOCS/OUTATED-tech/
While DOCS/tech/ contains lots of documentation about mplayer's internals, most of it seems outdated, and hasn't been touched in many years. On the other hand, there still might be useful things in there, but it's hard to tell which parts. Instead of deleting all it, rename the directory to "warn" potential developers that the documentation is completely outdated.
Diffstat (limited to 'DOCS/OUTDATED-tech/swscaler_methods.txt')
-rw-r--r--DOCS/OUTDATED-tech/swscaler_methods.txt68
1 files changed, 68 insertions, 0 deletions
diff --git a/DOCS/OUTDATED-tech/swscaler_methods.txt b/DOCS/OUTDATED-tech/swscaler_methods.txt
new file mode 100644
index 0000000000..24d2b11835
--- /dev/null
+++ b/DOCS/OUTDATED-tech/swscaler_methods.txt
@@ -0,0 +1,68 @@
+
+artifact types:
+---------------------------------------------------------------------
+ringing
+ wave or noise like patterns around sharp edges
+ bad: sinc, lanczos (with high filter length)
+ acceptable: lanczos (with low filter length), cubic, spline
+ ok: area, (fast)blinear, gauss, point
+
+blur
+ loss of detail / high frequency
+ bad: gauss with high variance
+ acceptable: (fast)bilinear, area
+ ok: others
+
+aliasing (only downscale)
+ straight lines look like staircases
+ areas of high detail look worse
+ regular patterns turn into a funny looking mess (moire patterns)
+ bad: fast bilinear, point, gauss with low variance
+ acceptable: area
+ ok: others
+
+blocky (upscale only)
+ looks like the image is made of rectangular blocks like a mosaic
+ bad: point
+ ok: others
+
+recommendations: (based upon my personal opinion many ppl might disagree ...)
+---------------------------------------------------------------------
+
+the recommended scalers for upscaling:
+fast_bilinear, point if speed is important
+cubic, spline, lanczos if quality is important
+
+the recommended scalers for downscaling:
+fast_bilinear, point if speed is important
+gauss, bilinear if quality is important
+cubic, spline, lanczos if a sharper picture is important
+
+note: when encoding at a limited amount of bits (not constant quantizer)
+then a slightly blurred input might look better after decoding than a slightly
+sharpened one, especially for lower bitrates
+
+sws numbers / names / artifact types
+-------------------------------------------------------------------------
+r ringing
+b blurry
+a aliasing (downscale only)
+m mosaic (blocky) (upscale only)
+
+-sws 0 fast bilinear bA
+-sws 1 bilinear b
+-sws 2 bicubic high sharpness r
+ low sharpness b
+-sws 3 experimental ????
+-sws 4 nearest neighbour AM
+-sws 5 area ba
+-sws 6 luma bicubic / chroma bilinear r
+-sws 7 gauss low sharpness B
+ high sharpness AM
+-sws 8 sinc R
+-sws 9 lanczos long filter R
+ short filter b
+-sws 10 bicubic spline r
+
+Notes:
+ area upscale is identical to bilinear