Comments (3)
Yes, all of CRW is little endian only. My plan was to change both the CIFF and TIFF parsers to use things like the get4LE macros so that they are endian-clean without special cases (the BE classes). darktable only runs on x86 though so I'd need to get a minimal test case setup to be able to test this on other architectures.
What do you think about having a minimal dcraw style program that outputs ppm or something like it inside rawspeed itself? It would make it easier to have minimal test cases for this kind of stuff.
from rawspeed.
The reason I don't use get4LE is for speed.
Right now, if endianness matches the platform (as CRW), returning an array is simply returning a pointer to memory, instead of having to go through the entire array.
However, I don't think it gives a big advantage, so I am still undecided on whether it should just be dropped for a branching version.
from rawspeed.
The annoying places are all the others (e.g., getting the number of entries in the IFD) and for those get4LE type macros can be optimized out when the architecture matches so there's nothing lost.
That just leaves the getXArray() functions and we can just do what we do now but in a single function instead of one in TiffEntry and another in TiffEntryBE. We could even do the swap in place instead of what we do now and save on the memory allocation.
from rawspeed.
Related Issues (20)
- gcc warning with strict-aliasing [-Wstrict-aliasing]
- New 5Ds R sRaw/mRaw files are broken
- Strange output from the Nikon E5700 HOT 1
- Suggestion for a safer getData() API HOT 2
- Implement a safer TiffEntry/CiffEntry way of accessing data HOT 7
- cameras.xml is invalid
- Missleading indentation warning in OrfDecoder.cpp HOT 1
- FujiFilm compressed RAF support (X-Pro2, more cameras expected) HOT 6
- Canon 80D Support HOT 2
- 'This PPA does not support xenial'
- Nikon, compressed raws: an issue with whitelevel HOT 9
- White balance coefficients are not returned for Canon G1X Mark II HOT 4
- White balance coefficients are not returned for Canon EOS M10 HOT 1
- C++ standard version? HOT 9
- Fuji X30 in a DNG container fails parsing
- getCamera() with prefix-search issue
- Coding style? HOT 1
- Bug in NikonDecompressor for "lossy after split" raws HOT 6
- Document that darktable-org/rawspeed is now the upstream. HOT 1
- Support for Sony RX1R-II HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rawspeed.