Re:Show HN: Polarr.co, a WebGL photo editor
by twombly on Monday October 27, 2014 @03:22PM
(#8517574)
Have you thought about compiling dcraw to javascript with emscripten? I'm not sure what the performance would be like, but I've seen this work in the past.
[ Parent
| on HN ]
Re:Show HN: Polarr.co, a WebGL photo editor
by pedrocr on Monday October 27, 2014 @04:00PM
(#8517825)
I'd try rawspeed instead of dcraw. Much faster and cleaner code and the latest version supports almost all cameras.
Re:Show HN: Polarr.co, a WebGL photo editor
by twombly on Monday October 27, 2014 @04:10PM
(#8517878)
rawspeed won't let you extract the thumbnail. Also, the reason I suggested dcraw is because it's one C file and that makes things a lot easier, especially when compiling to javascript.
Re:Show HN: Polarr.co, a WebGL photo editor
by pedrocr on Tuesday October 28, 2014 @07:07PM
(#8524250)
If you want to do raw processing then you don't really care about the thumbnails. No idea about the javascript compile process.
Re:Show HN: Polarr.co, a WebGL photo editor
by bwang29 on Monday October 27, 2014 @04:10PM
(#8517875)
Thanks! Will try this out!
Re:Show HN: Polarr.co, a WebGL photo editor
by bwang29 on Monday October 27, 2014 @04:21PM
(#8517943)
We tried it. It works with modification to emscripten and compiled code. Performance is acceptable and I think there is a much larger space using GPU to do the decoding as well. But I think the user won't just want to edit the thumbnail though I think many of them didn't know that.
Re:Show HN: Polarr.co, a WebGL photo editor
by pedrocr on Tuesday October 28, 2014 @07:12PM
(#8524283)
>I think there is a much larger space using GPU to do the decoding as well.
I doubt that very much. Raw processing is very fast these days and I don't think you could make it faster with the GPU given the memory copying overhead. Look at darktable for an example of how the GPU is used intensively for the pipeline but the raw processing is all done by the CPU and is very fast.