Comments (4)
Thank you. This has helped very much.
from rawspeed.
Yup, docs are not up to date.
For example, I used to use the
RawImageData->getData()
andRawImageData->getData(int, int)
apis, but those are gone. I don't know how to update my code.
You want get{U16,F32}DataAs{Uncropped,Cropped}Array2DRef()
, which returns a thin 2d view.
from rawspeed.
Yup, docs are not up to date.
For example, I used to use the
RawImageData->getData()
andRawImageData->getData(int, int)
apis, but those are gone. I don't know how to update my code.You want
get{U16,F32}DataAs{Uncropped,Cropped}Array2DRef()
, which returns a thin 2d view.
Hi @LebedevRI. Thank you for the guidance. I could use a little more help.
The API I'm integrating with requires a linear uint16_t*
buffer (of the decoded raw data), similar to what RawImageData->getData()
provided. Is it still possible to get the underlying uint8_t*
or uint16_t*
from the new API?
If not, what would you recommend as the most efficient way to alloc and populate a uint16_t*
from the values returned by getU16DataAs{Uncropped,Cropped}Array2DRef()
?
Thank you.
from rawspeed.
See e.g. https://github.com/darktable-org/darktable/blob/6cfcb0b5344a75d2b51e683abbe0c5bd8ffcbda2/src/imageio/imageio_rawspeed.cc#L395-L405
Just taking address of the first column gives that address.
from rawspeed.
Related Issues (20)
- Crop setting for Olympus M1 Mark III HOT 10
- Crop for Olympus E-M1MarkII
- Website died
- Looking for bits per sample HOT 12
- Using the ColorFilterArray API to get the filter color for a row/col HOT 4
- DNG opcode level 2 support HOT 8
- Support for the new Sony A6700 (ILCE-6700) please :) HOT 9
- Support JPEG XL compression in DNG HOT 5
- On the use of dithering when decompressing lossless NEF files HOT 1
- Probable overscanning of sony ILCE-7M4 APS-C cropped RAWs HOT 13
- Required compiler too strict HOT 1
- WXS schema failed to compile HOT 2
- How to help for developing new decompressor? HOT 9
- OM SYSTEM OM1 Mark II "14-bit" raw support HOT 1
- Support for Canon Powershot S100 (.CR2) HOT 3
- [Vendors] Will a move to Rust pose an impossible issue to you? HOT 13
- question: Difference for embedded lens-correction for OM-System Mark II between DNG and ORF HOT 3
- Bad columns in left optical black area Canon EOS 2000D
- Phase One decode error 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.