mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge remote-tracking branch 'qatar/master'
* qatar/master:
rgb2rgb_template: add MMX/SSE2/AVX-optimized deinterleaveBytes
Conflicts:
libswscale/x86/rgb2rgb_template.c
See: 3033cd7555
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
977abf9aed
@ -1929,19 +1929,20 @@ static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, ui
|
||||
#if !COMPILE_TEMPLATE_AVX || HAVE_AVX_EXTERNAL
|
||||
#if !COMPILE_TEMPLATE_AMD3DNOW && (ARCH_X86_32 || COMPILE_TEMPLATE_SSE2) && COMPILE_TEMPLATE_MMXEXT == COMPILE_TEMPLATE_SSE2 && HAVE_YASM
|
||||
void RENAME(ff_nv12ToUV)(uint8_t *dstU, uint8_t *dstV,
|
||||
const uint8_t *unused0,
|
||||
const uint8_t *src1,
|
||||
const uint8_t *src2,
|
||||
int w, uint32_t *unused);
|
||||
const uint8_t *unused,
|
||||
const uint8_t *src1,
|
||||
const uint8_t *src2,
|
||||
int w,
|
||||
uint32_t *unused2);
|
||||
static void RENAME(deinterleaveBytes)(const uint8_t *src, uint8_t *dst1, uint8_t *dst2,
|
||||
int width, int height, int srcStride,
|
||||
int dst1Stride, int dst2Stride)
|
||||
{
|
||||
int h;
|
||||
|
||||
for (h=0; h < height; h++) {
|
||||
for (h = 0; h < height; h++) {
|
||||
RENAME(ff_nv12ToUV)(dst1, dst2, NULL, src, NULL, width, NULL);
|
||||
src += srcStride;
|
||||
src += srcStride;
|
||||
dst1 += dst1Stride;
|
||||
dst2 += dst2Stride;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user