mirror of https://git.ffmpeg.org/ffmpeg.git
Merge remote-tracking branch 'qatar/master'
* qatar/master: swscale: fix crashes in yuv2yuvX on x86-32. sunrast: Add fate test for gray8. Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
1fbd905bbb
|
@ -59,7 +59,7 @@ SECTION .text
|
||||||
%macro yuv2planeX_fn 3
|
%macro yuv2planeX_fn 3
|
||||||
|
|
||||||
%if ARCH_X86_32
|
%if ARCH_X86_32
|
||||||
%define cntr_reg filterq
|
%define cntr_reg fltsizeq
|
||||||
%define movsx mov
|
%define movsx mov
|
||||||
%else
|
%else
|
||||||
%define cntr_reg r11
|
%define cntr_reg r11
|
||||||
|
@ -146,7 +146,7 @@ cglobal yuv2planeX_%1, %3, 7, %2, filter, fltsize, src, dst, w, dither, offset
|
||||||
mova m1, [yuv2yuvX_%1_start]
|
mova m1, [yuv2yuvX_%1_start]
|
||||||
mova m2, m1
|
mova m2, m1
|
||||||
%endif ; %1 == 8/9/10/16
|
%endif ; %1 == 8/9/10/16
|
||||||
movsx cntr_reg, fltsizem
|
movsx cntr_reg, r1m ; FIXME should be fltsizem, but the assembler does the wrong thing b/c of SUB above
|
||||||
.filterloop_ %+ %%i:
|
.filterloop_ %+ %%i:
|
||||||
; input pixels
|
; input pixels
|
||||||
mov r6, [srcq+gprsize*cntr_reg-2*gprsize]
|
mov r6, [srcq+gprsize*cntr_reg-2*gprsize]
|
||||||
|
|
|
@ -16,6 +16,9 @@ fate-sunraster-1bit-rle: CMD = framecrc -i $(SAMPLES)/sunraster/lena-1bit-rle.su
|
||||||
FATE_SUNRASTER += fate-sunraster-8bit-raw
|
FATE_SUNRASTER += fate-sunraster-8bit-raw
|
||||||
fate-sunraster-8bit-raw: CMD = framecrc -i $(SAMPLES)/sunraster/lena-8bit-raw.sun -pix_fmt rgb24
|
fate-sunraster-8bit-raw: CMD = framecrc -i $(SAMPLES)/sunraster/lena-8bit-raw.sun -pix_fmt rgb24
|
||||||
|
|
||||||
|
FATE_SUNRASTER += fate-sunraster-8bit_gray-raw
|
||||||
|
fate-sunraster-8bit_gray-raw: CMD = framecrc -i $(SAMPLES)/sunraster/gray.ras
|
||||||
|
|
||||||
FATE_SUNRASTER += fate-sunraster-8bit-rle
|
FATE_SUNRASTER += fate-sunraster-8bit-rle
|
||||||
fate-sunraster-8bit-rle: CMD = framecrc -i $(SAMPLES)/sunraster/lena-8bit-rle.sun -pix_fmt rgb24
|
fate-sunraster-8bit-rle: CMD = framecrc -i $(SAMPLES)/sunraster/lena-8bit-rle.sun -pix_fmt rgb24
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
#tb 0: 1/25
|
||||||
|
0, 0, 0, 1, 786432, 0x5859b48e
|
Loading…
Reference in New Issue