Just wanted to know if I'm the right track by using c for the following:
I wanted to get an image and do multiple different cropping ops on it .. as fast as possible.
I have done it with shell+imagemagick up till now, but obviously can't expect performance to be too hot there.
So I thought of c ... just open the image with some library (prob libgd) and then fseek to the place I want cropping to begin ... then read in the first row of pixels/values, then fseek to the beginning of the next row, read it in, etc.
The idea being not to read in the whole image, but using fseek bounce around it.
All this in order to get performance. Probably there'd be some complexities I'll hit, but I thought I'd check in here to see if the concept made sense. Comments?