diff options
author | Nelson Gomez <nelson.gomez@microsoft.com> | 2020-04-25 19:37:01 -0700 |
---|---|---|
committer | Josh de Kock <josh@itanimul.li> | 2020-06-14 16:34:07 +0100 |
commit | 7c39c3c1a6f35a6b47970417b1e273141eadb856 (patch) | |
tree | e46b220d6ec2463cbd242551ef7fa9d6ece7cfe3 /libswscale/vscale.c | |
parent | 01be03a4a0a81464aac1741bd393c09aaa8cc0e5 (diff) |
swscale: make yuv2interleavedX more asm-friendly
Extracting information from SwsContext in assembly is difficult, and
rearranging SwsContext just for asm access didn't look good. These
functions only need a couple of fields from it anyway, so just make
them parameters in their own right.
Signed-off-by: Nelson Gomez <nelson.gomez@microsoft.com>
Diffstat (limited to 'libswscale/vscale.c')
-rw-r--r-- | libswscale/vscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/vscale.c b/libswscale/vscale.c index 9ed227e908..500217239c 100644 --- a/libswscale/vscale.c +++ b/libswscale/vscale.c @@ -92,7 +92,7 @@ static int chr_planar_vscale(SwsContext *c, SwsFilterDescriptor *desc, int slice uint16_t *filter = inst->filter[0] + (inst->isMMX ? 0 : chrSliceY * inst->filter_size); if (c->yuv2nv12cX) { - inst->pfn.yuv2interleavedX(c, filter, inst->filter_size, (const int16_t**)src1, (const int16_t**)src2, dst1[0], dstW); + inst->pfn.yuv2interleavedX(c->dstFormat, c->chrDither8, filter, inst->filter_size, (const int16_t**)src1, (const int16_t**)src2, dst1[0], dstW); } else if (inst->filter_size == 1) { inst->pfn.yuv2planar1((const int16_t*)src1[0], dst1[0], dstW, c->chrDither8, 0); inst->pfn.yuv2planar1((const int16_t*)src2[0], dst2[0], dstW, c->chrDither8, 3); |