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/swscale_internal.h | |
parent | 01be03a4a0a81464aac1741bd393c09aaa8cc0e5 (diff) | |
download | ffmpeg-7c39c3c1a6f35a6b47970417b1e273141eadb856.tar.gz |
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/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index ee46092ff6..b37d650967 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -119,7 +119,8 @@ typedef void (*yuv2planarX_fn)(const int16_t *filter, int filterSize, * Write one line of horizontally scaled chroma to interleaved output * with multi-point vertical scaling between input pixels. * - * @param c SWS scaling context + * @param dstFormat destination pixel format + * @param chrDither ordered dither array of type uint8_t and size 8 * @param chrFilter vertical chroma scaling coefficients, 12 bits [0,4096] * @param chrUSrc scaled chroma (U) source data, 15 bits for 8-10-bit * output, 19 bits for 16-bit output (in int32_t) @@ -130,7 +131,7 @@ typedef void (*yuv2planarX_fn)(const int16_t *filter, int filterSize, * output, this is in uint16_t * @param dstW width of chroma planes */ -typedef void (*yuv2interleavedX_fn)(struct SwsContext *c, +typedef void (*yuv2interleavedX_fn)(enum AVPixelFormat dstFormat, const uint8_t *chrDither, const int16_t *chrFilter, int chrFilterSize, const int16_t **chrUSrc, |