資源簡介
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 觸屏驅動
評論
共有 條評論