From 4c21ad1f55c31596c32eb006b4d91fe0d036f466 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 24 Nov 2012 21:27:34 +0100 Subject: 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. --- video/filter/vf_scale.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'video/filter') 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; -- cgit v1.2.3