1 |
|
;/***************************************************************************** |
2 |
|
; * |
3 |
|
; * XVID MPEG-4 VIDEO CODEC |
4 |
|
; * - colorspace conversions - |
5 |
|
; * |
6 |
|
; * Copyright(C) 2002-2003 Peter Ross <pross@xvid.org> |
7 |
|
; * 2008 Michael Militzer <michael@xvid.org> |
8 |
|
; * |
9 |
|
; * This program is free software ; you can redistribute it and/or modify |
10 |
|
; * it under the terms of the GNU General Public License as published by |
11 |
|
; * the Free Software Foundation ; either version 2 of the License, or |
12 |
|
; * (at your option) any later version. |
13 |
|
; * |
14 |
|
; * This program is distributed in the hope that it will be useful, |
15 |
|
; * but WITHOUT ANY WARRANTY ; without even the implied warranty of |
16 |
|
; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 |
|
; * GNU General Public License for more details. |
18 |
|
; * |
19 |
|
; * You should have received a copy of the GNU General Public License |
20 |
|
; * along with this program ; if not, write to the Free Software |
21 |
|
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
|
; * |
23 |
|
; ****************************************************************************/ |
24 |
|
|
25 |
;------------------------------------------------------------------------------ |
;------------------------------------------------------------------------------ |
26 |
; |
; |
27 |
; MAKE_COLORSPACE(NAME,STACK, BYTES,PIXELS,ROWS, FUNC, ARG1) |
; MAKE_COLORSPACE(NAME,STACK, BYTES,PIXELS,ROWS, FUNC, ARG1) |
72 |
%define shadow 0 |
%define shadow 0 |
73 |
%else |
%else |
74 |
%define pushsize 4*PTR_SIZE |
%define pushsize 4*PTR_SIZE |
75 |
%define shadow 32 + 16 |
%define shadow 32 + 2*PTR_SIZE |
76 |
%endif |
%endif |
77 |
|
|
78 |
%define prm_vflip dword [_ESP + localsize + pushsize + shadow + 4*PTR_SIZE] |
%define prm_vflip dword [_ESP + localsize + pushsize + shadow + 4*PTR_SIZE] |
81 |
%define prm_uv_stride dword [_ESP + localsize + pushsize + shadow + 1*PTR_SIZE] |
%define prm_uv_stride dword [_ESP + localsize + pushsize + shadow + 1*PTR_SIZE] |
82 |
|
|
83 |
%ifdef WINDOWS |
%ifdef WINDOWS |
84 |
%define prm_y_stride dword [_ESP + localsize + pushsize + shadow - 1*PTR_SIZE] |
%define prm_y_stride dword [_ESP + localsize + pushsize + shadow + 0*PTR_SIZE] |
85 |
%define prm_v_ptr [_ESP + localsize + pushsize + shadow - 2*PTR_SIZE] |
%define prm_v_ptr [_ESP + localsize + pushsize + shadow - 1*PTR_SIZE] |
86 |
|
|
87 |
push _ESI ; esp + localsize + 8 |
push _ESI ; esp + localsize + 8 |
88 |
push _EDI ; esp + localsize + 4 |
push _EDI ; esp + localsize + 4 |