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

Function jpeg_loader_error_exit

dlib/image_loader/jpeg_loader.cpp:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 };
101
102 void jpeg_loader_error_exit (j_common_ptr cinfo)
103 {
104 /* cinfo->err really points to a jpeg_loader_error_mgr struct, so coerce pointer */
105 jpeg_loader_error_mgr* myerr = (jpeg_loader_error_mgr*) cinfo->err;
106
107 /* Create the message */
108 ( *( cinfo->err->format_message ) ) ( cinfo, myerr->jpegLastErrorMsg );
109
110 /* Return control to the setjmp point */
111 longjmp(myerr->setjmp_buffer, 1);
112 }
113
114// ----------------------------------------------------------------------------------------
115 FILE * jpeg_loader::check_file( const char* filename )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected