91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.67MB
    文件類型: .gz
    金幣: 1
    下載: 0 次
    發布日期: 2023-10-15
  • 語言: 其他
  • 標簽: libjpeg??openwrt??編譯??

資源簡介

openwrt編譯報錯,提示無法連接該文件的地址,編譯出錯,把這個openwrt編譯依賴庫文件放入dl文件夾中就可以了

資源截圖

代碼片段和文件信息

/*
?*?Copyright?(C)2011?D.?R.?Commander.??All?Rights?Reserved.
?*
?*?Redistribution?and?use?in?source?and?binary?forms?with?or?without
?*?modification?are?permitted?provided?that?the?following?conditions?are?met:
?*
?*?-?Redistributions?of?source?code?must?retain?the?above?copyright?notice
?*???this?list?of?conditions?and?the?following?disclaimer.
?*?-?Redistributions?in?binary?form?must?reproduce?the?above?copyright?notice
?*???this?list?of?conditions?and?the?following?disclaimer?in?the?documentation
?*???and/or?other?materials?provided?with?the?distribution.
?*?-?Neither?the?name?of?the?libjpeg-turbo?Project?nor?the?names?of?its
?*???contributors?may?be?used?to?endorse?or?promote?products?derived?from?this
?*???software?without?specific?prior?written?permission.
?*
?*?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS?“AS?IS“
?*?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE
?*?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE
?*?ARE?DISCLAIMED.??IN?NO?EVENT?SHALL?THE?COPYRIGHT?HOLDERS?OR?CONTRIBUTORS?BE
?*?LIABLE?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR
?*?CONSEQUENTIAL?DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF
?*?SUBSTITUTE?GOODS?OR?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS
?*?INTERRUPTION)?HOWEVER?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN
?*?CONTRACT?STRICT?LIABILITY?OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)
?*?ARISING?IN?ANY?WAY?OUT?OF?THE?USE?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE
?*?POSSIBILITY?OF?SUCH?DAMAGE.
?*/

#include?
#include?
#include?
#include?
#include?“cdjpeg.h“
#include?
#include?
#include?“tjutil.h“
#include?“bmp.h“


/*?This?duplicates?the?functionality?of?the?VirtualGL?bitmap?library?using
???the?components?from?cjpeg?and?djpeg?*/


/*?Error?handling?(based?on?example?in?example.c)?*/

static?char?errStr[JMSG_LENGTH_MAX]=“No?error“;

struct?my_error_mgr
{
struct?jpeg_error_mgr?pub;
jmp_buf?setjmp_buffer;
};
typedef?struct?my_error_mgr?*my_error_ptr;

static?void?my_error_exit(j_common_ptr?cinfo)
{
my_error_ptr?myerr=(my_error_ptr)cinfo->err;
(*cinfo->err->output_message)(cinfo);
longjmp(myerr->setjmp_buffer?1);
}

/*?based?on?output_message()?in?jerror.c?*/

static?void?my_output_message(j_common_ptr?cinfo)
{
(*cinfo->err->format_message)(cinfo?errStr);
}

#define?_throw(m)?{snprintf(errStr?JMSG_LENGTH_MAX?“%s“?m);??\
retval=-1;??goto?bailout;}
#define?_throwunix(m)?{snprintf(errStr?JMSG_LENGTH_MAX?“%s\n%s“?m??\
strerror(errno));??retval=-1;??goto?bailout;}


static?void?pixelconvert(unsigned?char?*srcbuf?int?srcpf?int?srcbottomup
unsigned?char?*dstbuf?int?dstpf?int?dstbottomup?int?w?int?h)
{
unsigned?char?*srcptr=srcbuf?*srcptr2;
int?srcps=tjPixelSize[srcpf];
int?srcstride=srcbottomup??-w*srcps:w*srcps;
unsigned?char?*dstptr=dstbuf?*dstptr2;
int?dstps=tjPixelSize[dstpf];
int?dststride=dstbottomup??-w*

評論

共有 條評論