There is one more part in different functon, having same type struct jpeg_decompress_struct* cDecompresInfo which I don't know how to change - original code:
Remember that the dot operator (.) has a higher precedence than the dereference operator (*). So this line is trying to dereference 'err', not your cDecompresInfo pointer.
Instead, if you want to access a member via a pointer, it's typical to use the arrow operator (->) instead of the dot operator:
Oh man, this is what I tried already but it tells me:
error: incompatible types when assigning to type 'struct jpeg_error_mgr' from type 'struct jpeg_error_mgr *'|
I can try this:
1 2 3 4 5
(*cDecompresInfo).err = jpeg_std_error(&jerr.pub);
jerr.pub.error_exit = my_error_exit;
if (setjmp(jerr.setjmp_buffer)) {
jpeg_destroy_decompress(&cinfo); // LINE 41 - &cinfo not changed yet
...
The line 41 yet need change
Should I type:
&*cDecompresInfo or &DecompresInfo ? I try first one and error disapears
Last error:
1 2
GLOBAL(int)
int read_JPEG_file_rgb2hsv(unsignedchar ** image_buffer, struct jpeg_decompress_struct* cDecompresInfo)
Last line which is crashing: (void) jpeg_finish_decompress(&*cDecompresInfo); // Finish decompression, no errors possible how to correct? http://paste.ofcode.org/jC5TXVGqKJVDeu9xwr3nTr