Wanted support for compressed DNG

Issue #44 resolved
stevefal created an issue

I use Adobe Digital Negative Converter to convert RAWMagic-produced DNGs to losslessly compressed versions. This cuts the file size by 50%.

But MlRawViewer does not seem to support these. Upon selecting such a file, MlRawViewer silently exits.

Comments (10)

  1. Andrew Baldwin repo owner

    Agree this would be good for both playback and export.

    Problem is, right now there is no open source Jpeg (1992) lossless imlementation (that's the DNG lossless codec) code I could use easily.

    dcraw has a decoder, but it's quite embedded in the rest of the dcraw code.

    Ideally I would like to see a good encoder/decoder, and then use that for read and export. Also it wouild be good for MLV to support that codec allowing compressed frames which could be copied as-is into DNGs.

  2. stevefal reporter

    I assumed the Adobe DNG SDK would be a suitable source and license.

    /*****************************************************************************/
    
    void DecodeLosslessJPEG (dng_stream &stream,
                             dng_spooler &spooler,
                             uint32 minDecodedSize,
                             uint32 maxDecodedSize,
                             bool bug16);
    
    /*****************************************************************************/
    
    void EncodeLosslessJPEG (const uint16 *srcData,
                             uint32 srcRows,
                             uint32 srcCols,
                             uint32 srcChannels,
                             uint32 srcBitDepth,
                             int32 srcRowStep,
                             int32 srcColStep,
                             dng_stream &stream);
    
    /*****************************************************************************/
    
  3. Andrew Baldwin repo owner

    Even ignoring the license, there is no Linux version of the Adobe DNG SDK, and since I use Linux for all MlRawViewer development that's not practical for me to use.

  4. Andrew Baldwin repo owner

    Good find. Text says "Using the Adobe DNG SDK (full DNG support)".

    I'll investigate more how/if Adobe's SDK can be used with Linux after all.

  5. Andrew Baldwin repo owner

    Compressed DNG was implemented in 1.3.0

    I haven't actually tested it with this use case though, so it's possible it won't actually handle the output of Adobe's SDK.

    It does read the compressed DNGs from BMPCC cameras however.

  6. stevefal reporter

    As far as I can tell it doesn't read from Adobe. I've converted a clip using Adobe DNG Converter and it doesn't show up in the browser.

  7. Log in to comment