[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, Sat Jun 15 22:15:57 2002 UTC revision 1.4.2.1, Wed Feb 12 11:44:57 2003 UTC
# 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;
44    TRANSFER_8TO16SUBRO_PTR  transfer_8to16subro;
45  TRANSFER_8TO16SUB2_PTR transfer_8to16sub2;  TRANSFER_8TO16SUB2_PTR transfer_8to16sub2;
46  TRANSFER_16TO8ADD_PTR  transfer_16to8add;  TRANSFER_16TO8ADD_PTR  transfer_16to8add;
47    
# Line 145  Line 146 
146  }  }
147    
148    
149    void
150    transfer_8to16subro_c(int16_t * const dct,
151                                            const uint8_t * const cur,
152                                            const uint8_t * ref,
153                                            const uint32_t stride)
154    {
155            uint32_t i, j;
156    
157            for (j = 0; j < 8; j++) {
158                    for (i = 0; i < 8; i++) {
159                            uint8_t c = cur[j * stride + i];
160                            uint8_t r = ref[j * stride + i];
161                            dct[j * 8 + i] = (int16_t) c - (int16_t) r;
162                    }
163            }
164    }
165    
166    
167    
168  /*  /*
169   * C   - the current buffer   * C   - the current buffer
170   * R1  - the 1st reference buffer   * R1  - the 1st reference buffer

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

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