jerr.pub.output_message = my_output_message;
if(setjmp(jerr.jb)) {
- // this will execute if libjpeg has an error
+ /* this will execute if libjpeg has an error */
jcs_valid = 0;
goto done;
}
#endif
if(setjmp(jerr.jb)) {
- // this will execute if libjpeg has an error
+ /* this will execute if libjpeg has an error */
jcs_alpha_valid = 0;
goto done2;
}
if(width<1 || height<1 || jpegSubsamp<0 || jpegSubsamp>=NUMSUBOPT)
_throw("tjBufSize(): Invalid argument");
- // This allows for rare corner cases in which a JPEG image can actually be
- // larger than the uncompressed input (we wouldn't mention it if it hadn't
- // happened before.)
+ /* This allows for rare corner cases in which a JPEG image can actually be
+ larger than the uncompressed input (we wouldn't mention it if it hadn't
+ happened before.) */
mcuw=tjMCUWidth[jpegSubsamp];
mcuh=tjMCUHeight[jpegSubsamp];
chromasf=jpegSubsamp==TJSAMP_GRAY? 0: 4*64/(mcuw*mcuh);
if(width<1 || height<1)
_throw("TJBUFSIZE(): Invalid argument");
- // This allows for rare corner cases in which a JPEG image can actually be
- // larger than the uncompressed input (we wouldn't mention it if it hadn't
- // happened before.)
+ /* This allows for rare corner cases in which a JPEG image can actually be
+ larger than the uncompressed input (we wouldn't mention it if it hadn't
+ happened before.) */
retval=PAD(width, 16) * PAD(height, 16) * 6 + 2048;
bailout: