當前位置:編程學習大全網 - 網站源碼 - 怎麽獲取libjpeg中的頭文件

怎麽獲取libjpeg中的頭文件

libjpeg使用十分簡單,而且源碼帶有例子程序,下面的代碼基本上就是該例子。所以沒什麽技術含量。

[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;

  • 上一篇:如何把壹個軟件進程偽裝成系統進程
  • 下一篇:Phpstudy源代碼
  • copyright 2024編程學習大全網