资源简介
dcraw开源代码,用来对相机拍摄的raw格式进行解码,支持很多相机
代码片段和文件信息
/*
dcraw.c -- Dave Coffin‘s raw photo decoder
Copyright 1997-2012 by Dave Coffin dcoffin a cybercom o net
This is a command-line ANSI C program to convert raw photos from
any digital camera on any computer running any operating system.
No license is required to download and use dcraw.c. However
to lawfully redistribute dcraw you must either (a) offer at
no extra charge full source code* for all executable files
containing RESTRICTED functions (b) distribute this code under
the GPL Version 2 or later (c) remove all RESTRICTED functions
re-implement them or copy them from an earlier unrestricted
Revision of dcraw.c or (d) purchase a license from the author.
The functions that process Foveon images have been RESTRICTED
since Revision 1.237. All other code remains free for all uses.
*If you have not modified dcraw.c in any way a link to my
homepage qualifies as “full source code“.
$Revision: 1.449 $
$Date: 2012/06/26 02:43:41 $
*/
#define DCRAW_VERSION “9.15“
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#define _USE_MATH_DEFINES
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifdef NODEPS
#define NO_JASPER
#define NO_JPEG
#define NO_LCMS
#endif
#ifndef NO_JASPER
#include /* Decode RED camera movies */
#endif
#ifndef NO_JPEG
#include /* Decode compressed Kodak DC120 photos */
#endif /* and Adobe Lossy DNGs */
#ifndef NO_LCMS
#include /* Support color profiles */
#endif
#ifdef LOCALEDIR
#include
#define _(String) gettext(String)
#else
#define _(String) (String)
#endif
#if defined(DJGPP) || defined(__MINGW32__)
#define fseeko fseek
#define ftello ftell
#else
#define fgetc getc_unlocked
#endif
#ifdef __CYGWIN__
#include
#endif
#ifdef WIN32
#include
#include
#pragma comment(lib “ws2_32.lib“)
#define snprintf _snprintf
#define strcasecmp stricmp
#define strncasecmp strnicmp
typedef __int64 INT64;
typedef unsigned __int64 UINT64;
#else
#include
#include
#include
typedef long long INT64;
typedef unsigned long long UINT64;
#endif
#ifdef LJPEG_DECODE
#error Please compile dcraw.c by itself.
#error Do not link it with ljpeg_decode.
#endif
#ifndef LONG_BIT
#define LONG_BIT (8 * sizeof (long))
#endif
#if !defined(uchar)
#define uchar unsigned char
#endif
#if !defined(ushort)
#define ushort unsigned short
#endif
/*
All global variables are defined here and all functions that
access them are prefixed with “CLASS“. Note that a thread-safe
C++ class cannot have non-const static local variables.
*/
FILE *ifp *ofp;
short order;
const char *ifname;
char *meta_data;
char cdesc[5] desc[512] make[64] model[64] model2[64] artist[64];
float flash_used canon_ev iso_spe
- 上一篇:1U&2U; 24-48口Visio配线架
- 下一篇:FT6336 触屏驱动
相关资源
- DirectDraw 直接修改显存数据
- 金欣口服液含药血清对呼吸道合胞病
- LoRaWAN1.0.2规范中文完美翻译
- LoRaWAN规范中文版详细规范V1.0.2
- SX1301 +sx1255 GATEWAY.zip
- Laboratory investigation of the effects of str
- 使用delphi+intraweb进行微信开发1~4代码
- Experiment investigation of deep-drawing sheet
- 完整版本286.0个CameraRaw 国外大师级胶
- 单反相机的JPG和RAW文件同步删除
- 兼容unity的System.Drawing.dll
- 286.0个CameraRaw 国外大师级胶片调色A
-
TMS_IntraWeb_Component_Pack_Pro_sc
ript_Edit - AnimatedVectorDrawable.
- 简单\“(8bit)Raw图像文件转换为(
- 周立功之LwIP的rawapi接口及编程指南,
- EasyDraw软件
- lwip+udp项目
- iOS Drawing Practical UIKit Solutions 无水印
- Fiber-Optic Communication Systems 3ed--Govind
- RAW图片资源,用于图像处理与分析
- tubedrawer.rar
- 拼多多crawlerInfo获取.rar
- raw转换工具 可转换多种图片格式 好用
- Edraw Max9.4破解版破解文件.rar254994
- 网络爬虫--用来提取网页内容和URL的程
- 医学raw文件
- LoRaMac-node-develop(v4.4.2 SDK keil project)
- 原始RAW数据转换为位图
- SmartDraw 2012-2013 破解补丁
评论
共有 条评论