[cpp] view plain copy
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#include <math.h>
#include <sys/time.h>
#include <time.h>
// jpeg庫頭文件必須放到stdio.h後面
#include "libjpeg/include/jpeglib.h"
#include "libjpeg/include/jerror.h"
typedef struct my_error_mgr * my_error_ptr;
void my_error_exit (j_common_ptr cinfo)
{
my_error_ptr myerr = (my_error_ptr) cinfo->err;