20 |
; * Ported to nasm by Peter Ross <pross@xvid.org> |
; * Ported to nasm by Peter Ross <pross@xvid.org> |
21 |
; */ |
; */ |
22 |
|
|
23 |
bits 32 |
BITS 32 |
24 |
|
|
25 |
|
;============================================================================= |
26 |
|
; Macros and other preprocessor constants |
27 |
|
;============================================================================= |
28 |
|
|
29 |
;=========================================================================== |
%macro cglobal 1 |
30 |
; data |
%ifdef PREFIX |
31 |
;=========================================================================== |
%ifdef MARK_FUNCS |
32 |
|
global _%1:function %1.endfunc-%1 |
33 |
%ifdef FORMAT_COFF |
%define %1 _%1:function %1.endfunc-%1 |
34 |
section .data |
%else |
35 |
align 8 |
global _%1 |
36 |
|
%define %1 _%1 |
37 |
|
%endif |
38 |
|
%else |
39 |
|
%ifdef MARK_FUNCS |
40 |
|
global %1:function %1.endfunc-%1 |
41 |
%else |
%else |
42 |
section .data data align=8 |
global %1 |
43 |
%endif |
%endif |
44 |
|
%endif |
45 |
wm1010 dw 0, 0xffff, 0, 0xffff |
%endmacro |
|
d40000 dd 0x40000, 0 |
|
|
|
|
46 |
|
|
47 |
%define ROW_SHIFT 11 |
%define ROW_SHIFT 11 |
48 |
%define COL_SHIFT 20 |
%define COL_SHIFT 20 |
55 |
%define C6 8867 ;cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 = 8866.956905 |
%define C6 8867 ;cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 = 8866.956905 |
56 |
%define C7 4520 ;cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 = 4520.335430 |
%define C7 4520 ;cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 = 4520.335430 |
57 |
|
|
58 |
coeffs |
;=========================================================================== |
59 |
|
; Data (Read Only) |
60 |
|
;=========================================================================== |
61 |
|
|
62 |
|
%ifdef FORMAT_COFF |
63 |
|
SECTION .rodata |
64 |
|
%else |
65 |
|
SECTION .rodata align=16 |
66 |
|
%endif |
67 |
|
|
68 |
|
;----------------------------------------------------------------------------- |
69 |
|
; Trigonometric Tables |
70 |
|
;----------------------------------------------------------------------------- |
71 |
|
|
72 |
|
ALIGN 16 |
73 |
|
wm1010: |
74 |
|
dw 0, 0xffff, 0, 0xffff |
75 |
|
|
76 |
|
ALIGN 16 |
77 |
|
d40000: |
78 |
|
dd 0x40000, 0 |
79 |
|
|
80 |
|
ALIGN 16 |
81 |
|
coeffs: |
82 |
dw 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0, ; 0 |
dw 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0, ; 0 |
83 |
dw 1<<(ROW_SHIFT-1), 1, 1<<(ROW_SHIFT-1), 0, ; 8 |
dw 1<<(ROW_SHIFT-1), 1, 1<<(ROW_SHIFT-1), 0, ; 8 |
84 |
|
|
102 |
|
|
103 |
|
|
104 |
;=========================================================================== |
;=========================================================================== |
105 |
; text |
; Helper macros |
106 |
;=========================================================================== |
;=========================================================================== |
107 |
section .text |
|
108 |
|
;--------------------------------------------------------------------------- |
109 |
|
; DC_COND_IDCT |
110 |
|
;--------------------------------------------------------------------------- |
111 |
|
|
112 |
%macro DC_COND_IDCT 8 |
%macro DC_COND_IDCT 8 |
113 |
%define src0 %1 |
%define src0 %1 |
214 |
%undef shift |
%undef shift |
215 |
%endmacro |
%endmacro |
216 |
|
|
217 |
|
;--------------------------------------------------------------------------- |
218 |
|
; Z_COND_IDCT |
219 |
|
;--------------------------------------------------------------------------- |
220 |
|
|
221 |
%macro Z_COND_IDCT 9 |
%macro Z_COND_IDCT 9 |
222 |
%define src0 %1 |
%define src0 %1 |
313 |
%undef bt |
%undef bt |
314 |
%endmacro |
%endmacro |
315 |
|
|
316 |
|
;--------------------------------------------------------------------------- |
317 |
|
; IDCT0 |
318 |
|
;--------------------------------------------------------------------------- |
319 |
|
|
320 |
%macro IDCT0 8 |
%macro IDCT0 8 |
321 |
%define src0 %1 |
%define src0 %1 |
410 |
%undef shift |
%undef shift |
411 |
%endmacro |
%endmacro |
412 |
|
|
413 |
|
;--------------------------------------------------------------------------- |
414 |
|
; IDCT4 |
415 |
|
;--------------------------------------------------------------------------- |
416 |
|
|
417 |
%macro IDCT4 8 |
%macro IDCT4 8 |
418 |
%define src0 %1 |
%define src0 %1 |
495 |
%undef shift |
%undef shift |
496 |
%endmacro |
%endmacro |
497 |
|
|
498 |
|
;--------------------------------------------------------------------------- |
499 |
|
; IDCT6 |
500 |
|
;--------------------------------------------------------------------------- |
501 |
|
|
502 |
%macro IDCT6 8 |
%macro IDCT6 8 |
503 |
%define src0 %1 |
%define src0 %1 |
571 |
%undef shift |
%undef shift |
572 |
%endmacro |
%endmacro |
573 |
|
|
574 |
|
;--------------------------------------------------------------------------- |
575 |
|
; IDCT2 |
576 |
|
;--------------------------------------------------------------------------- |
577 |
|
|
578 |
%macro IDCT2 8 |
%macro IDCT2 8 |
579 |
%define src0 %1 |
%define src0 %1 |
659 |
%undef shift |
%undef shift |
660 |
%endmacro |
%endmacro |
661 |
|
|
662 |
|
;--------------------------------------------------------------------------- |
663 |
|
; IDCT3 |
664 |
|
;--------------------------------------------------------------------------- |
665 |
|
|
666 |
%macro IDCT3 8 |
%macro IDCT3 8 |
667 |
%define src0 %1 |
%define src0 %1 |
735 |
%undef shift |
%undef shift |
736 |
%endmacro |
%endmacro |
737 |
|
|
738 |
|
;--------------------------------------------------------------------------- |
739 |
|
; IDCT5 |
740 |
|
;--------------------------------------------------------------------------- |
741 |
|
|
742 |
%macro IDCT5 8 |
%macro IDCT5 8 |
743 |
%define src0 %1 |
%define src0 %1 |
813 |
%undef shift |
%undef shift |
814 |
%endmacro |
%endmacro |
815 |
|
|
816 |
|
;--------------------------------------------------------------------------- |
817 |
|
; IDCT1 |
818 |
|
;--------------------------------------------------------------------------- |
819 |
|
|
820 |
%macro IDCT1 8 |
%macro IDCT1 8 |
821 |
%define src0 %1 |
%define src0 %1 |
898 |
%undef shift |
%undef shift |
899 |
%endmacro |
%endmacro |
900 |
|
|
901 |
|
;--------------------------------------------------------------------------- |
902 |
|
; IDCT7 |
903 |
|
;--------------------------------------------------------------------------- |
904 |
|
|
905 |
%macro IDCT7 8 |
%macro IDCT7 8 |
906 |
%define src0 %1 |
%define src0 %1 |
950 |
%undef shift |
%undef shift |
951 |
%endmacro |
%endmacro |
952 |
|
|
953 |
|
;--------------------------------------------------------------------------- |
954 |
|
; Permutation helpers |
955 |
|
;--------------------------------------------------------------------------- |
956 |
|
|
957 |
|
%macro XLODA 2 |
958 |
|
mov bx, [srcP+2*%2] ; get src contents |
959 |
|
mov ax, [srcP+2*%1] ; get dest contents |
960 |
|
mov [srcP+2*%1], bx ; store new dest val |
961 |
|
%endmacro |
962 |
|
|
963 |
|
%macro XCHGA 2 |
964 |
|
mov ax, [srcP+2*%1] ; get dest contents |
965 |
|
mov [srcP+2*%1], bx ; store new dest val |
966 |
|
%endmacro |
967 |
|
|
968 |
%macro cglobal 1 |
%macro XCHGB 2 |
969 |
%ifdef PREFIX |
mov bx, [srcP+2*%1] ; get dest contents |
970 |
global _%1 |
mov [srcP+2*%1], ax ; store new dest val |
|
%define %1 _%1 |
|
|
%else |
|
|
global %1 |
|
|
%endif |
|
971 |
%endmacro |
%endmacro |
972 |
|
|
973 |
|
%macro XSTRA 2 |
974 |
|
mov [srcP+2*%1], bx ; store dest val |
975 |
|
%endmacro |
976 |
|
|
977 |
|
%macro XSTRB 2 |
978 |
|
mov [srcP+2*%1], ax ; store dest val |
979 |
|
%endmacro |
980 |
|
|
981 |
; void simple_idct_mmx(int16_t * const block); |
;--------------------------------------------------------------------------- |
982 |
align 16 |
; Permutation macro |
983 |
|
;--------------------------------------------------------------------------- |
984 |
|
|
985 |
|
%macro PERMUTEP 1 |
986 |
|
%define srcP %1 |
987 |
|
push ebx |
988 |
|
|
989 |
|
; XCHGA 0x00, 0x00 ; nothing to do |
990 |
|
|
991 |
|
XLODA 0x08, 0x01 |
992 |
|
XCHGB 0x10, 0x08 |
993 |
|
XCHGA 0x20, 0x10 |
994 |
|
XCHGB 0x02, 0x20 |
995 |
|
XCHGA 0x04, 0x02 |
996 |
|
XSTRB 0x01, 0x04 |
997 |
|
|
998 |
|
XLODA 0x09, 0x03 |
999 |
|
XCHGB 0x18, 0x09 |
1000 |
|
XCHGA 0x12, 0x18 |
1001 |
|
XCHGB 0x24, 0x12 |
1002 |
|
XSTRA 0x03, 0x24 |
1003 |
|
|
1004 |
|
XLODA 0x0C, 0x05 |
1005 |
|
XCHGB 0x11, 0x0C |
1006 |
|
XCHGA 0x28, 0x11 |
1007 |
|
XCHGB 0x30, 0x28 |
1008 |
|
XCHGA 0x22, 0x30 |
1009 |
|
XCHGB 0x06, 0x22 |
1010 |
|
XSTRA 0x05, 0x06 |
1011 |
|
|
1012 |
|
XLODA 0x0D, 0x07 |
1013 |
|
XCHGB 0x1C, 0x0D |
1014 |
|
XCHGA 0x13, 0x1C |
1015 |
|
XCHGB 0x29, 0x13 |
1016 |
|
XCHGA 0x38, 0x29 |
1017 |
|
XCHGB 0x32, 0x38 |
1018 |
|
XCHGA 0x26, 0x32 |
1019 |
|
XSTRB 0x07, 0x26 |
1020 |
|
|
1021 |
|
XLODA 0x14, 0x0A |
1022 |
|
XCHGB 0x21, 0x14 |
1023 |
|
XSTRA 0x0A, 0x21 |
1024 |
|
|
1025 |
|
XLODA 0x19, 0x0B |
1026 |
|
XCHGB 0x1A, 0x19 |
1027 |
|
XCHGA 0x16, 0x1A |
1028 |
|
XCHGB 0x25, 0x16 |
1029 |
|
XCHGA 0x0E, 0x25 |
1030 |
|
XCHGB 0x15, 0x0E |
1031 |
|
XCHGA 0x2C, 0x15 |
1032 |
|
XCHGB 0x31, 0x2C |
1033 |
|
XCHGA 0x2A, 0x31 |
1034 |
|
XCHGB 0x34, 0x2A |
1035 |
|
XCHGA 0x23, 0x34 |
1036 |
|
XSTRB 0x0B, 0x23 |
1037 |
|
|
1038 |
|
XLODA 0x1D, 0x0F |
1039 |
|
XCHGB 0x1E, 0x1D |
1040 |
|
XCHGA 0x17, 0x1E |
1041 |
|
XCHGB 0x2D, 0x17 |
1042 |
|
XCHGA 0x3C, 0x2D |
1043 |
|
XCHGB 0x33, 0x3C |
1044 |
|
XCHGA 0x2B, 0x33 |
1045 |
|
XCHGB 0x39, 0x2B |
1046 |
|
XCHGA 0x3A, 0x39 |
1047 |
|
XCHGB 0x36, 0x3A |
1048 |
|
XCHGA 0x27, 0x36 |
1049 |
|
XSTRB 0x0F, 0x27 |
1050 |
|
|
1051 |
|
; XCHGA 0x1B, 0x1B |
1052 |
|
|
1053 |
|
; XCHGA 0x1F, 0x1F |
1054 |
|
|
1055 |
|
XLODA 0x35, 0x2E |
1056 |
|
XSTRB 0x2E, 0x35 |
1057 |
|
|
1058 |
|
XLODA 0x3D, 0x2F |
1059 |
|
XCHGB 0x3E, 0x3D |
1060 |
|
XCHGA 0x37, 0x3E |
1061 |
|
XSTRB 0x2F, 0x37 |
1062 |
|
|
1063 |
|
; XCHGA 0x3B, 0x3B |
1064 |
|
|
1065 |
|
; XCHGA 0x3F, 0x3F |
1066 |
|
pop ebx |
1067 |
|
%undef srcP |
1068 |
|
%endmacro |
1069 |
|
|
1070 |
|
;============================================================================= |
1071 |
|
; Code |
1072 |
|
;============================================================================= |
1073 |
|
|
1074 |
|
SECTION .text |
1075 |
|
|
1076 |
|
cglobal simple_idct_mmx_P |
1077 |
cglobal simple_idct_mmx |
cglobal simple_idct_mmx |
1078 |
simple_idct_mmx |
|
1079 |
|
;----------------------------------------------------------------------------- |
1080 |
|
; void simple_idct_mmx_P(int16_t * const block) |
1081 |
|
; expects input data to be permutated |
1082 |
|
;----------------------------------------------------------------------------- |
1083 |
|
|
1084 |
|
ALIGN 16 |
1085 |
|
simple_idct_mmx_P: |
1086 |
sub esp, 128 |
sub esp, 128 |
1087 |
mov edx, [esp+128+4] |
mov edx, [esp+128+4] |
1088 |
|
|
1089 |
; src0, src4, src1, src5, dst, rndop, rndarg, shift, bt |
; src0, src4, src1, src5, dst, rndop, rndarg, shift, bt |
|
|
|
1090 |
DC_COND_IDCT edx+0, edx+8, edx+16, edx+24, esp, paddd, [coeffs+8], 11 |
DC_COND_IDCT edx+0, edx+8, edx+16, edx+24, esp, paddd, [coeffs+8], 11 |
1091 |
Z_COND_IDCT edx+32, edx+40, edx+48, edx+56, esp+32, paddd, [coeffs], 11, .four |
Z_COND_IDCT edx+32, edx+40, edx+48, edx+56, esp+32, paddd, [coeffs], 11, .four |
1092 |
Z_COND_IDCT edx+64, edx+72, edx+80, edx+88, esp+64, paddd, [coeffs], 11, .two |
Z_COND_IDCT edx+64, edx+72, edx+80, edx+88, esp+64, paddd, [coeffs], 11, .two |
1097 |
IDCT0 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
IDCT0 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1098 |
jmp .ret |
jmp .ret |
1099 |
|
|
1100 |
align 16 |
ALIGN 16 |
1101 |
.four |
.four |
1102 |
Z_COND_IDCT edx+64, edx+72, edx+80, edx+88, esp+64, paddd, [coeffs], 11, .six |
Z_COND_IDCT edx+64, edx+72, edx+80, edx+88, esp+64, paddd, [coeffs], 11, .six |
1103 |
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .five |
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .five |
1107 |
IDCT4 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
IDCT4 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1108 |
jmp .ret |
jmp .ret |
1109 |
|
|
1110 |
align 16 |
ALIGN 16 |
1111 |
.six |
.six |
1112 |
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .seven |
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .seven |
1113 |
IDCT6 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
IDCT6 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1116 |
IDCT6 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
IDCT6 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1117 |
jmp .ret |
jmp .ret |
1118 |
|
|
1119 |
align 16 |
ALIGN 16 |
1120 |
.two |
.two |
1121 |
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .three |
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .three |
1122 |
IDCT2 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
IDCT2 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1125 |
IDCT2 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
IDCT2 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1126 |
jmp .ret |
jmp .ret |
1127 |
|
|
1128 |
align 16 |
ALIGN 16 |
1129 |
.three |
.three |
1130 |
IDCT3 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
IDCT3 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1131 |
IDCT3 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
IDCT3 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1133 |
IDCT3 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
IDCT3 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1134 |
jmp .ret |
jmp .ret |
1135 |
|
|
1136 |
align 16 |
ALIGN 16 |
1137 |
.five |
.five |
1138 |
IDCT5 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
IDCT5 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1139 |
; IDCT5 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
; IDCT5 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1141 |
; IDCT5 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
; IDCT5 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1142 |
jmp .ret |
jmp .ret |
1143 |
|
|
1144 |
align 16 |
ALIGN 16 |
1145 |
.one |
.one |
1146 |
IDCT1 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
IDCT1 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1147 |
IDCT1 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
IDCT1 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1149 |
IDCT1 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
IDCT1 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1150 |
jmp .ret |
jmp .ret |
1151 |
|
|
1152 |
align 16 |
ALIGN 16 |
1153 |
.seven |
.seven |
1154 |
IDCT7 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
IDCT7 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1155 |
; IDCT7 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
; IDCT7 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1158 |
|
|
1159 |
.ret |
.ret |
1160 |
add esp, 128 |
add esp, 128 |
1161 |
|
|
1162 |
ret |
ret |
1163 |
|
.endfunc |
1164 |
|
|
1165 |
|
|
1166 |
|
;----------------------------------------------------------------------------- |
1167 |
|
; void simple_idct_mmx(int16_t * const block) |
1168 |
|
; |
1169 |
|
; simple_idct_mmx is the same function as simple_idct_mmx_P above except that |
1170 |
|
; on entry it will do a fast in-line and in-place permutation on the iDCT parm |
1171 |
|
; list. This means that same parm list will also not have to be copied on the |
1172 |
|
; way out. - trbarry 6/2003 |
1173 |
|
;----------------------------------------------------------------------------- |
1174 |
|
|
1175 |
|
ALIGN 16 |
1176 |
|
simple_idct_mmx: |
1177 |
|
sub esp, 128 |
1178 |
|
mov edx, [esp+128+4] |
1179 |
|
PERMUTEP edx ; permute parm list in place |
1180 |
|
|
1181 |
|
; src0, src4, src1, src5, dst, rndop, rndarg, shift, bt |
1182 |
|
DC_COND_IDCT edx+0, edx+8, edx+16, edx+24, esp, paddd, [coeffs+8], 11 |
1183 |
|
Z_COND_IDCT edx+32, edx+40, edx+48, edx+56, esp+32, paddd, [coeffs], 11, .fourP |
1184 |
|
Z_COND_IDCT edx+64, edx+72, edx+80, edx+88, esp+64, paddd, [coeffs], 11, .twoP |
1185 |
|
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .oneP |
1186 |
|
IDCT0 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1187 |
|
IDCT0 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1188 |
|
IDCT0 esp+16, esp+80, esp+48, esp+112,edx+8, nop, 0, 20 |
1189 |
|
IDCT0 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1190 |
|
jmp .retP |
1191 |
|
|
1192 |
|
ALIGN 16 |
1193 |
|
.fourP |
1194 |
|
Z_COND_IDCT edx+64, edx+72, edx+80, edx+88, esp+64, paddd, [coeffs], 11, .sixP |
1195 |
|
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .fiveP |
1196 |
|
IDCT4 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1197 |
|
IDCT4 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1198 |
|
IDCT4 esp+16, esp+80, esp+48, esp+112,edx+8, nop, 0, 20 |
1199 |
|
IDCT4 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1200 |
|
jmp .retP |
1201 |
|
|
1202 |
|
ALIGN 16 |
1203 |
|
.sixP |
1204 |
|
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .sevenP |
1205 |
|
IDCT6 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1206 |
|
IDCT6 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1207 |
|
IDCT6 esp+16, esp+80, esp+48, esp+112,edx+8, nop, 0, 20 |
1208 |
|
IDCT6 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1209 |
|
jmp .retP |
1210 |
|
|
1211 |
|
ALIGN 16 |
1212 |
|
.twoP |
1213 |
|
Z_COND_IDCT edx+96, edx+104,edx+112,edx+120,esp+96, paddd, [coeffs], 11, .threeP |
1214 |
|
IDCT2 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1215 |
|
IDCT2 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1216 |
|
IDCT2 esp+16, esp+80, esp+48, esp+112,edx+8, nop, 0, 20 |
1217 |
|
IDCT2 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1218 |
|
jmp .retP |
1219 |
|
|
1220 |
|
ALIGN 16 |
1221 |
|
.threeP |
1222 |
|
IDCT3 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1223 |
|
IDCT3 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1224 |
|
IDCT3 esp+16, esp+80, esp+48, esp+112,edx+8, nop, 0, 20 |
1225 |
|
IDCT3 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1226 |
|
jmp .retP |
1227 |
|
|
1228 |
|
ALIGN 16 |
1229 |
|
.fiveP |
1230 |
|
IDCT5 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1231 |
|
; IDCT5 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1232 |
|
IDCT5 esp+16, esp+80, esp+48, esp+112,edx+8, nop, 0, 20 |
1233 |
|
; IDCT5 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1234 |
|
jmp .retP |
1235 |
|
|
1236 |
|
ALIGN 16 |
1237 |
|
.oneP |
1238 |
|
IDCT1 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1239 |
|
IDCT1 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1240 |
|
IDCT1 esp+16, esp+80, esp+48, esp+112,edx+8, nop, 0, 20 |
1241 |
|
IDCT1 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1242 |
|
jmp .retP |
1243 |
|
|
1244 |
|
ALIGN 16 |
1245 |
|
.sevenP |
1246 |
|
IDCT7 esp, esp+64, esp+32, esp+96, edx, nop, 0, 20 |
1247 |
|
; IDCT7 esp+8, esp+72, esp+40, esp+104,edx+4, nop, 0, 20 |
1248 |
|
IDCT7 esp+16, esp+80, esp+48, esp+112,edx+8, nop, 0, 20 |
1249 |
|
; IDCT7 esp+24, esp+88, esp+56, esp+120,edx+12, nop, 0, 20 |
1250 |
|
|
1251 |
|
.retP |
1252 |
|
add esp, 128 |
1253 |
|
|
1254 |
|
ret |
1255 |
|
.endfunc |
1256 |
|
|