资源简介
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*
相关资源
- 《编译原理(第3版).pdf》
- 编译原理的实验12376
- 编译试卷.zip
- 西电编译原理大作业
- 大数库miracl 7.0.1 附带vs2010编译工程及
- openssl-1.0.1h已编译版本
- 杭电操作系统实验一--linux内核编译添
- TOSHIBA单片机调试工具及编译软件
- openssl已编译好的静态库
- PICC 9.60破解版,免费提供
- 编译原理实验指导书 河北工业大学
- 编译原理 词法和语法分析
- rtsp 服务器代码,VC可编译使用,RTS
- 清华大学--编译原理--课件,练习题及
- 反编译易语言
- 编译原理 课件 北航计算机学院
- director11.5 反编译器
- LL(1)的语法分析程序
- Parsing Techs A Practical Guide pdf
- 编译原理 南京大学计算机系
- VS2015编译的log4cpp动态库
- 基于Gh0st3.8修改编译成功的远程控制源
- CGNS工具软件安装版,不需编译
- 编译课程设计全班
- PIC CCS C编译器使用手册
- opencv3.4.3 mingw32编译
- win10 VS2017 编译成功的openssl 32位和64位
- 河北工业大学编译原理实验报告及源
- GDAL,geos联合编译的库,版本为1.8.0
- 就爱江湖专用OD.zip
评论
共有 条评论