diff options
author | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-04-08 15:32:24 +0000 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-04-11 18:13:36 +0200 |
commit | 4c2244127631da592cb4d6bbdab1d6b050ff98cb (patch) | |
tree | a3788ebd6365156bd3d48da36bc41243960d7ddd /libswscale/arm/swscale.c | |
parent | 0c79c96cf20f96dfe4b9ce429dafddd1f9ecd1c1 (diff) |
swscale/arm: add yuv2planeX_8_neon
Diffstat (limited to 'libswscale/arm/swscale.c')
-rw-r--r-- | libswscale/arm/swscale.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libswscale/arm/swscale.c b/libswscale/arm/swscale.c index 6301ac5a62..1ec360fe24 100644 --- a/libswscale/arm/swscale.c +++ b/libswscale/arm/swscale.c @@ -25,6 +25,10 @@ void ff_hscale_8_to_15_neon(SwsContext *c, int16_t *dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize); +void ff_yuv2planeX_8_neon(const int16_t *filter, int filterSize, + const int16_t **src, uint8_t *dest, int dstW, + const uint8_t *dither, int offset); + av_cold void ff_sws_init_swscale_arm(SwsContext *c) { int cpu_flags = av_get_cpu_flags(); @@ -33,5 +37,8 @@ av_cold void ff_sws_init_swscale_arm(SwsContext *c) if (c->srcBpc == 8 && c->dstBpc <= 14) { c->hyScale = c->hcScale = ff_hscale_8_to_15_neon; } + if (c->dstBpc == 8) { + c->yuv2planeX = ff_yuv2planeX_8_neon; + } } } |