diff options
author | wm4 <wm4@mplayer2.org> | 2012-01-18 02:09:43 +0100 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-01-18 02:53:30 +0100 |
commit | 4e76c7514f847648cdc9740d6ef997d1653effa8 (patch) | |
tree | f0b16dbb9f98d30bfee4281fcaf2840b4262b148 /libmpcodecs/vf_scale.h | |
parent | 2e0bae181f155541922278d681185a5b84f602b4 (diff) | |
download | mpv-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.h | 1 |
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); |