资源简介
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 触屏驱动
相关资源
- CorelDraw X4面积和周长计算
- SmartDraw 2008 keygen
- edraw v8.4版本破解版.txt
- vmware15+macos10.14+unlocker3.0+darwin
- 在UniGUI中使用百度Echarts作为数据展示
- 佳能官网的DPP,专用于CR2格式照片编
- Corel.All.Products.Universal.Keygens.by.CORE.v
- 博客-Windows窗体原理及控件WM_DRAWITEM和
- 事故树绘制软件easydraw免费V2.19
- QGraphicsView Draw
- ProDrawCallOptimizer 4.2
- MagicDraw.UML
- ArcGIS js api 4+版本 draw measure legend扩展
- bmp转换成raw格式: bmp2raw
- 画图程序Graphic
- RAW CR2文件完全解析
- Draw2DLine.rar
- OV5647_MIPI_RAW for MTK
- 高通救黑砖8064_msimage.mbn MPRG8064.hex r
- RawCap.exe
- kitti百度云.txt
- raw转bmp文件raw2bmp
- 利用CorelDraw制作专题地图的一些方法
- Node.js-wechatcrawler一个微信文章抓取爬
- CSharp_Region类的方法使用图解
- draw_qwidget.zip
- DrawBorad.tar.xz
- DrawLine.rar
-
Openla
yers 3 地图框选 画多边形 获取 - 示范了Unix和Linux下如何利用Raw Socket构
评论
共有 条评论