I'm stuck since a while in the 'resize' task. Don't fully get my head around the padding.
// read scanline pixel/pixel from infile
// write pixels to outfile
// skip padding
// add padding back
1) My understanding is that lines are executed in order. Why would I position 'skip padding' only after the reading and writing commands as it happens in copy.c?
2) given '00ff00 ffff 00ff00 0000 00ff00 ffff 00ff00 0000': fseek skipps over every 0000 and continue from the following 00ff00 ?
3) Is the skipped padding stored somehow or is it necessary that fputc() follows immediately after the fseek() command?
Hope my questions make sense.
Best Wishes