|
|
|
@ -273,11 +273,13 @@ 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, 12, 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, 12, 19, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 14, 19, opt); \
|
|
|
|
|
SCALE_FUNC(filter_n, 16, 19, opt) |
|
|
|
|
|
|
|
|
@ -387,6 +389,9 @@ void ff_sws_init_swScale_mmx(SwsContext *c) |
|
|
|
|
} else if (c->srcBpc == 10) { \
|
|
|
|
|
hscalefn = c->dstBpc <= 14 ? ff_hscale10to15_ ## filtersize ## _ ## opt2 : \
|
|
|
|
|
ff_hscale10to19_ ## filtersize ## _ ## opt1; \
|
|
|
|
|
} else if (c->srcBpc == 12) { \
|
|
|
|
|
hscalefn = c->dstBpc <= 14 ? ff_hscale12to15_ ## filtersize ## _ ## opt2 : \
|
|
|
|
|
ff_hscale12to19_ ## filtersize ## _ ## opt1; \
|
|
|
|
|
} 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 <= 14 ? ff_hscale14to15_ ## filtersize ## _ ## opt2 : \
|
|
|
|
|
ff_hscale14to19_ ## filtersize ## _ ## opt1; \
|
|
|
|
|