[cvs] / xvidcore / src / utils / mem_transfer.c Repository:
ViewVC logotype

Diff of /xvidcore/src/utils/mem_transfer.c

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

revision 1.4.2.1, Wed Feb 12 11:44:57 2003 UTC revision 1.5, Thu Sep 5 20:42:47 2002 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - 8bit<->16bit transfer  -   *  - 8bit<->16bit transfer  -
5   *   *
6     *  Copyright(C) 2001-2002 Peter Ross <pross@cs.rmit.edu.au>
7     *
8     *  This program is an implementation of a part of one or more MPEG-4
9     *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending
10     *  to use this software module in hardware or software products are
11     *  advised that its use may infringe existing patents or copyrights, and
12     *  any such use would be at such party's own risk.  The original
13     *  developer of this software module and his/her company, and subsequent
14     *  editors and their companies, will have no liability for use of this
15     *  software or modifications or derivatives thereof.
16     *
17   *  This program is free software ; you can redistribute it and/or modify   *  This program is free software ; you can redistribute it and/or modify
18   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
19   *  the Free Software Foundation ; either version 2 of the License, or   *  the Free Software Foundation ; either version 2 of the License, or
# Line 17  Line 28 
28   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
29   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
30   *   *
  ****************************************************************************/  
 /*****************************************************************************  
  *  
  *  History  
  *  
  *  - 14.06.2002 Changed legal header with the new FSF address  
  *      - 14.04.2002 added transfer_8to16sub2  
  *      - 07.01.2002 merge functions from compensate; rename functions  
  *      - 22.12.2001 transfer_8to8add16 limit fix  
  *      - 07.11.2001 initial version; (c)2001 peter ross <pross@cs.rmit.edu.au>  
  *  
31   *  $Id$   *  $Id$
32   *   *
33   ****************************************************************************/   ****************************************************************************/
# Line 41  Line 41 
41  TRANSFER_16TO8COPY_PTR transfer_16to8copy;  TRANSFER_16TO8COPY_PTR transfer_16to8copy;
42    
43  TRANSFER_8TO16SUB_PTR  transfer_8to16sub;  TRANSFER_8TO16SUB_PTR  transfer_8to16sub;
 TRANSFER_8TO16SUBRO_PTR  transfer_8to16subro;  
44  TRANSFER_8TO16SUB2_PTR transfer_8to16sub2;  TRANSFER_8TO16SUB2_PTR transfer_8to16sub2;
45  TRANSFER_16TO8ADD_PTR  transfer_16to8add;  TRANSFER_16TO8ADD_PTR  transfer_16to8add;
46    
# Line 146  Line 145 
145  }  }
146    
147    
 void  
 transfer_8to16subro_c(int16_t * const dct,  
                                         const uint8_t * const cur,  
                                         const uint8_t * ref,  
                                         const uint32_t stride)  
 {  
         uint32_t i, j;  
   
         for (j = 0; j < 8; j++) {  
                 for (i = 0; i < 8; i++) {  
                         uint8_t c = cur[j * stride + i];  
                         uint8_t r = ref[j * stride + i];  
                         dct[j * 8 + i] = (int16_t) c - (int16_t) r;  
                 }  
         }  
 }  
   
   
   
148  /*  /*
149   * C   - the current buffer   * C   - the current buffer
150   * R1  - the 1st reference buffer   * R1  - the 1st reference buffer

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.5

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