[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.15, Mon Aug 1 10:53:46 2005 UTC revision 1.16, Tue Sep 13 12:12:15 2005 UTC
# Line 38  Line 38 
38  TRANSFER_16TO8ADD_PTR  transfer_16to8add;  TRANSFER_16TO8ADD_PTR  transfer_16to8add;
39    
40  TRANSFER8X8_COPY_PTR transfer8x8_copy;  TRANSFER8X8_COPY_PTR transfer8x8_copy;
41    TRANSFER8X4_COPY_PTR transfer8x4_copy;
42    
43  #define USE_REFERENCE_C  #define USE_REFERENCE_C
44    
# Line 278  Line 279 
279                  }                  }
280          }          }
281  }  }
282    
283    /*
284     * SRC - the source buffer
285     * DST - the destination buffer
286     *
287     * Then the function does the 8->8 bit transfer and this serie of operations :
288     *
289     *    SRC (8bit) = SRC
290     *    DST (8bit) = SRC
291     */
292    void
293    transfer8x4_copy_c(uint8_t * const dst,
294                                       const uint8_t * const src,
295                                       const uint32_t stride)
296    {
297            uint32_t j;
298    
299            for (j = 0; j < 4; j++) {
300                    uint32_t *d= (uint32_t*)(dst + j*stride);
301                    const uint32_t *s = (const uint32_t*)(src + j*stride);
302                    *(d+0) = *(s+0);
303                    *(d+1) = *(s+1);
304            }
305    }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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