Coder Social home page Coder Social logo

Comments (3)

pedrocr avatar pedrocr commented on September 21, 2024

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.

klauspost avatar klauspost commented on September 21, 2024

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.

pedrocr avatar pedrocr commented on September 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.