diff options
author | wm4 <wm4@nowhere> | 2012-11-24 21:27:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-24 21:27:34 +0100 |
commit | 4c21ad1f55c31596c32eb006b4d91fe0d036f466 (patch) | |
tree | 1798988ce5847876823820e352c5decc056255d5 /video/filter | |
parent | e6ed0b1d3c21c2fc39d0c602829014590d6d99de (diff) | |
download | mpv-4c21ad1f55c31596c32eb006b4d91fe0d036f466.tar.bz2 mpv-4c21ad1f55c31596c32eb006b4d91fe0d036f466.tar.xz |
sws_utils: remove unused helper
sws_getContextFromCmdLine_hq() was used by the screenshot code, which
now uses mp_image_swscale().
Also move the mp_sws_set_colorspace() declaration from sws_utils.h to
vf_scale.c.
Diffstat (limited to 'video/filter')
-rw-r--r-- | video/filter/vf_scale.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c index 2ff9d82e8b..58664b8ae1 100644 --- a/video/filter/vf_scale.c +++ b/video/filter/vf_scale.c @@ -64,6 +64,9 @@ static struct vf_priv_s { NULL }; +static int mp_sws_set_colorspace(struct SwsContext *sws, + struct mp_csp_details *csp); + //===========================================================================// static const unsigned int outfmt_list[]={ @@ -541,7 +544,8 @@ static const int mp_csp_to_swscale[MP_CSP_COUNT] = { // do nothing or return an error. // The csp argument is set to the supported values. // Return 0 on success and -1 on error. -int mp_sws_set_colorspace(struct SwsContext *sws, struct mp_csp_details *csp) +static int mp_sws_set_colorspace(struct SwsContext *sws, + struct mp_csp_details *csp) { int *table, *inv_table; int brightness, contrast, saturation, srcRange, dstRange; |