-
-
Save clementgpro/eee443cacd172aa51fd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint8_t *pSource = process_data->source_bitmap + ((process_data->y0 * process_data->source_header.width) + process_data->x0); | |
uint8_t *pDestination = process_data->destination_bitmap; | |
uint32_t counterLine = process_data->y1 - process_data->y0; | |
uint32_t counterColumn = process_data->x1 - process_data->x0; | |
uint32_t reste = (process_data->source_header.width - process_data->x1) + process_data->x0; | |
while(counterLine--){ | |
while(counterColumn--){ | |
*pDestination++ = *pSource++; | |
} | |
while(reste--){ | |
pSource++; | |
} | |
counterColumn = process_data->x1 - process_data->x0; | |
reste = process_data->source_header.width - process_data->x1 + process_data->x0; | |
// memcpy(pDestination, pSource, process_data->x1 - process_data->x0); | |
// pSource += process_data->source_header.width; | |
// pDestination += process_data->destination_header.width; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment