|
|
|
@ -187,10 +187,12 @@ extern void ff_hscale ## from_bpc ## to ## to_bpc ## _ ## filter_n ## _ ## opt( |
|
|
|
|
SCALE_FUNC(filter_n, 8, 15, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 9, 15, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 10, 15, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 14, 15, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 16, 15, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 8, 19, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 9, 19, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 10, 19, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 14, 19, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 16, 19, opt) |
|
|
|
|
|
|
|
|
|
#define SCALE_FUNCS_MMX(opt) \ |
|
|
|
@ -233,7 +235,10 @@ void ff_sws_init_swScale_mmx(SwsContext *c) |
|
|
|
|
} else if (c->srcBpc == 10) { \
|
|
|
|
|
hscalefn = c->dstBpc <= 10 ? ff_hscale10to15_ ## filtersize ## _ ## opt2 : \
|
|
|
|
|
ff_hscale10to19_ ## filtersize ## _ ## opt1; \
|
|
|
|
|
} else if(c->srcBpc == 16 && !((c->srcFormat==PIX_FMT_PAL8||isAnyRGB(c->srcFormat)) && av_pix_fmt_descriptors[c->srcFormat].comp[0].depth_minus1<15)) { \
|
|
|
|
|
} else if (c->srcBpc == 14 || ((c->srcFormat==PIX_FMT_PAL8||isAnyRGB(c->srcFormat)) && av_pix_fmt_descriptors[c->srcFormat].comp[0].depth_minus1<15)) { \
|
|
|
|
|
hscalefn = c->dstBpc <= 10 ? ff_hscale14to15_ ## filtersize ## _ ## opt2 : \
|
|
|
|
|
ff_hscale14to19_ ## filtersize ## _ ## opt1; \
|
|
|
|
|
} else { /* c->srcBpc == 16 */ \
|
|
|
|
|
hscalefn = c->dstBpc <= 10 ? ff_hscale16to15_ ## filtersize ## _ ## opt2 : \
|
|
|
|
|
ff_hscale16to19_ ## filtersize ## _ ## opt1; \
|
|
|
|
|
} \
|
|
|
|
|