6 |
; * Copyright(C) 2004 Peter Ross <pross@xvid.org> |
; * Copyright(C) 2004 Peter Ross <pross@xvid.org> |
7 |
; * 2004 Dcoder <dcoder@alexandria.cc> |
; * 2004 Dcoder <dcoder@alexandria.cc> |
8 |
; * |
; * |
9 |
; * XviD is free software; you can redistribute it and/or modify it |
; * Xvid is free software; you can redistribute it and/or modify it |
10 |
; * under the terms of the GNU General Public License as published by |
; * under the terms of the GNU General Public License as published by |
11 |
; * the Free Software Foundation; either version 2 of the License, or |
; * the Free Software Foundation; either version 2 of the License, or |
12 |
; * (at your option) any later version. |
; * (at your option) any later version. |
37 |
; Code |
; Code |
38 |
;============================================================================= |
;============================================================================= |
39 |
|
|
40 |
SECTION .rotext align=SECTION_ALIGN |
TEXT |
41 |
|
|
42 |
cglobal image_brightness_sse2 |
cglobal image_brightness_sse2 |
43 |
|
|
67 |
ALIGN SECTION_ALIGN |
ALIGN SECTION_ALIGN |
68 |
image_brightness_sse2: |
image_brightness_sse2: |
69 |
%ifdef ARCH_IS_X86_64 |
%ifdef ARCH_IS_X86_64 |
70 |
movsx _EAX, prm5d |
XVID_MOVSXD _EAX, prm5d |
71 |
%else |
%else |
72 |
mov eax, prm5 ; brightness offset value |
mov eax, prm5 ; brightness offset value |
73 |
%endif |
%endif |
128 |
ENDFUNC |
ENDFUNC |
129 |
;////////////////////////////////////////////////////////////////////// |
;////////////////////////////////////////////////////////////////////// |
130 |
|
|
131 |
%ifidn __OUTPUT_FORMAT__,elf |
NON_EXEC_STACK |
|
section ".note.GNU-stack" noalloc noexec nowrite progbits |
|
|
%endif |
|
|
|
|