summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_scale.h
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-01-18 02:09:43 +0100
committerwm4 <wm4@mplayer2.org>2012-01-18 02:53:30 +0100
commit4e76c7514f847648cdc9740d6ef997d1653effa8 (patch)
treef0b16dbb9f98d30bfee4281fcaf2840b4262b148 /libmpcodecs/vf_scale.h
parent2e0bae181f155541922278d681185a5b84f602b4 (diff)
downloadmpv-4e76c7514f847648cdc9740d6ef997d1653effa8.tar.bz2
mpv-4e76c7514f847648cdc9740d6ef997d1653effa8.tar.xz
screenshot: improve quality by using additional swscale flags
Adding these flags improves the quality of the YUV->RGB conversion when screenshots are taken. It trades precision for performance. This doesn't affect any other swscale uses, such as vf_scale or vo_x11. Based on a patch by cantabile. Fixes #140.
Diffstat (limited to 'libmpcodecs/vf_scale.h')
-rw-r--r--libmpcodecs/vf_scale.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/vf_scale.h b/libmpcodecs/vf_scale.h
index a9b3b506d5..08d651ce16 100644
--- a/libmpcodecs/vf_scale.h
+++ b/libmpcodecs/vf_scale.h
@@ -21,6 +21,7 @@
int get_sws_cpuflags(void);
struct SwsContext *sws_getContextFromCmdLine(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat);
+struct SwsContext *sws_getContextFromCmdLine_hq(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat);
struct mp_csp_details;
int mp_sws_set_colorspace(struct SwsContext *sws, struct mp_csp_details *csp);