schoolpost / PiDNG

Create Adobe DNG RAW files using Python. Works with any Bayer RAW Data including native support for Raspberry Pi cameras.
MIT License
199 stars 37 forks source link

Segmentation fault when compressing 16 bits RAW #64

Open lizhihao6 opened 2 years ago

lizhihao6 commented 2 years ago

Hi, thanks for your great project, I got the segmentation fault when I was converting a RAW image into 16bits compressed DNG. Seems bug from 'pack16tolj'

            tile = pack16tolj(rawFrame, int(width*2),
                              int(length/2), bpp, 0, 0, 0, "", 6)
schoolpost commented 2 years ago

I don't have the time to look at this currently, but if you just need a working DNG; you can work around this by disabling compression.