[svn] / branches / dev-api-4 / xvidcore / src / image / x86_asm / yv12_to_yuyv_mmx.asm Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/image/x86_asm/yv12_to_yuyv_mmx.asm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 651, Sun Nov 17 00:20:30 2002 UTC revision 851, Sat Feb 15 15:22:19 2003 UTC
# Line 1  Line 1 
1  ;/*****************************************************************************  ;/**************************************************************************
2  ; *  ; *
3  ; *  XVID MPEG-4 VIDEO CODEC  ; *  XVID MPEG-4 VIDEO CODEC
4  ; *      mmx yuv planar to yuyv/uyvy conversion  ; *     mmx yuv planar to yuyv/uyvy
5  ; *  ; *
6  ; *  Copyright(C) 2002 Peter Ross <pross@xvid.org>  ; *     This program is free software; you can redistribute it and/or modify
7  ; *  ; *     it under the terms of the GNU General Public License as published by
 ; *  This file is part of XviD, a free MPEG-4 video encoder/decoder  
 ; *  
 ; *  XviD is free software; you can redistribute it and/or modify it  
 ; *  under the terms of the GNU General Public License as published by  
8  ; *  the Free Software Foundation; either version 2 of the License, or  ; *  the Free Software Foundation; either version 2 of the License, or
9  ; *  (at your option) any later version.  ; *  (at your option) any later version.
10  ; *  ; *
# Line 19  Line 15 
15  ; *  ; *
16  ; *  You should have received a copy of the GNU General Public License  ; *  You should have received a copy of the GNU General Public License
17  ; *  along with this program; if not, write to the Free Software  ; *  along with this program; if not, write to the Free Software
18  ; *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA  ; *     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 ; *  
 ; *  Under section 8 of the GNU General Public License, the copyright  
 ; *  holders of XVID explicitly forbid distribution in the following  
 ; *  countries:  
 ; *  
 ; *    - Japan  
 ; *    - United States of America  
19  ; *  ; *
20  ; *  Linking XviD statically or dynamically with other modules is making a  ; *************************************************************************/
21  ; *  combined work based on XviD.  Thus, the terms and conditions of the  
22  ; *  GNU General Public License cover the whole combination.  ;/**************************************************************************
 ; *  
 ; *  As a special exception, the copyright holders of XviD give you  
 ; *  permission to link XviD with independent modules that communicate with  
 ; *  XviD solely through the VFW1.1 and DShow interfaces, regardless of the  
 ; *  license terms of these independent modules, and to copy and distribute  
 ; *  the resulting combined work under terms of your choice, provided that  
 ; *  every copy of the combined work is accompanied by a complete copy of  
 ; *  the source code of XviD (the version of XviD used to produce the  
 ; *  combined work), being distributed under the terms of the GNU General  
 ; *  Public License plus this exception.  An independent module is a module  
 ; *  which is not derived from or based on XviD.  
23  ; *  ; *
24  ; *  Note that people who make modified versions of XviD are not obligated  ; *     History:
 ; *  to grant this special exception for their modified versions; it is  
 ; *  their choice whether to do so.  The GNU General Public License gives  
 ; *  permission to release a modified version without this exception; this  
 ; *  exception also makes it possible to release a modified version which  
 ; *  carries forward this exception.  
25  ; *  ; *
26  ; * $Id: yv12_to_yuyv_mmx.asm,v 1.3 2002-11-17 00:20:30 edgomez Exp $  ; *     05.12.2001      initial version; (c)2001 peter ross <pross@cs.rmit.edu.au>
27  ; *  ; *
28  ; ****************************************************************************/  ; *************************************************************************/
29    
30    
31  bits 32  bits 32
32    
# Line 107  Line 81 
81                  mov ebx, [esp + 20 + 32]        ; width                  mov ebx, [esp + 20 + 32]        ; width
82                  mov eax, [esp + 20 + 8]         ; dst_stride                  mov eax, [esp + 20 + 8]         ; dst_stride
83                  sub eax, ebx                            ;                  sub eax, ebx                            ;
84                  add eax, eax                            ; eax = 2*(dst_stride - width)                  sub eax, ebx                            ; eax = dst_stride - (2 * width)
85                  push eax                                        ; [esp + 4] = dst_dif                  push eax                                        ; [esp + 4] = dst_dif
86                                                  ; STACK BASE = 24                                                  ; STACK BASE = 24
87    
# Line 250  Line 224 
224                  mov ebx, [esp + 20 + 32]        ; width                  mov ebx, [esp + 20 + 32]        ; width
225                  mov eax, [esp + 20 + 8]         ; dst_stride                  mov eax, [esp + 20 + 8]         ; dst_stride
226                  sub eax, ebx                            ;                  sub eax, ebx                            ;
227                  add eax, eax                            ; eax = 2*(dst_stride - width)                  sub eax, ebx                            ; eax = dst_stride - (2 * width)
228                  push eax                                        ; [esp + 4] = dst_dif                  push eax                                        ; [esp + 4] = dst_dif
229                                                  ; STACK BASE = 24                                                  ; STACK BASE = 24
230    

Legend:
Removed from v.651  
changed lines
  Added in v.851

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4