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 |
|
|
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 |
|
} |