MCPcopy Create free account
hub / github.com/davisking/dlib / jpeg_saver_error_exit

Function jpeg_saver_error_exit

dlib/image_saver/save_jpeg.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 };
33
34 void jpeg_saver_error_exit (j_common_ptr cinfo)
35 {
36 /* cinfo->err really points to a jpeg_saver_error_mgr struct, so coerce pointer */
37 jpeg_saver_error_mgr* myerr = (jpeg_saver_error_mgr*) cinfo->err;
38
39 /* Return control to the setjmp point */
40 longjmp(myerr->setjmp_buffer, 1);
41 }
42
43// ----------------------------------------------------------------------------------------
44

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected