How to use lz4 compression for RAW file inside DNG ?

I know DNG supports zip compression. However, I want to use lz4 compression, as I am saving the file in realtime, and I cannot see any zip library matching the performance of lz4 for 16-bit RAW.
In my case this is 12-bit data with 4 bits set to zero.

Is there a study that compared the encoding speeds of the 3 algorithms available for RAW files ?
LZW, Packbits, Deflate.
I think Lossless JPEG can also work with 1 plane setting.
Also, looking at the dng_validate code, and the calls to relevant libraries, I see that the code seems to deal only with byte boundaries.
Are any of these algorithms optimized for 10,12,14-bit RAW data ?
I am trying to encode 203 MBps of data. Intel IPP would be an option, but its obviously nicer if DNG SDK can provide whats needed for free with some tweaking.

Similar Messages

  • How to use download listener for xml files?

    Hi all,
    In my usecase I should write the xml contents to the file using Output Stream writer.
    As of now I am using the below lines of code in the download listener method.
    String s = myDoc.getContent().toString();
    w.write(s);
    myDoc is my xml document. I can see the file but there is no content.
    Kindly come out with your help in which I could achieve this.
    Thanks,
    Phani.

    Hi john,
    What all I am trying to ask is how could I write xml data to external file by clicking a button or a link etc.. which is in the JSF page.
    Now for that I created a button and dragged the <af:fileDownloadActionListener> into the button.
    I binded the listener with the backing bean method.
    public void sayHello(FacesContext context, OutputStream out) throws IOException
    OutputStreamWriter w = new OutputStreamWriter(out, "UTF-8");
    IDocument myDoc = new Document2004();
    myDoc.addEle("sai");
    w.write(myDoc.getContent().toString());
    w.flush();
    in the method you can see IDocument that is an interface which I have in the external JAR files that I am using to write data to MS Word.
    The myDoc which I created as an object of IDocument has lot of methods in which I am using addEle(String) which writes a string to word document.
    in the writer object writer I am getting the content of the myDoc inorder to convert that to string as it will be in xml format.
    When I am writing every thing I can download and save the document but unable to see the data that I have written that is "*sai*" instead a blank page is getting opened.
    When I do the same with Creating a file object in the local disc using File f = new File(path) rather than downloading it using the listener I can see the contents what I have written.
    This is what all I mean to ask. Kindly come up with your help
    Thanks,
    Phani.

  • How to use one variable for 2 datatype inside class

    Dear all
    i have create 2 class GDI and OGL need use use in M_VIEW as per condition
    in the class M_VIEW (example below)
    #define M_FLAG 1
    class GDI {public: int z;};
    class OGL{public: double z;};
    // in class M_VIEWi need to use GDI or OGL as per user condition
    class M_VIEW{
    public:
    #if (M_FLAG == 1)
    GID UseThis;
    #else
    OGL UseThis;
    #endif
    this is work but it always it take OGL. of if i change condition it take GDI only. but i need to use it runtime as per user choice.
    how to switch GDI to OGL, and OGL to GDI on runtime ;
    is that possible to change M_FLAG  value on run time or is there any other way to achieve it.
    i have try with polymorphism also. switch is ok but all function does not work with dll. when call function on mouse move or some other event it take base class virtual function. it doesn't goes to derived class function. don't know why?
    base class function like this and does not have any variable. all function are virtual.
    virtual void MoveLine(POINT pt1, POINT pt2){};
    virtual void DrawLine(POINT pt1, POINT pt2){};
    please help.
    Thanks in Advance.

    Well, #define, and #if are compile time only constructs.  Technically they are processed before you program is compiled (that is why they are called preprocessor directives).  If you need to support both flavors at runtime you will need a different
    approach.
    Inheritance/polymorphism could be a good approach here, but I don't really understand what you are trying to do well enough to say for sure.  Based on guesses about what you want, here are some thoughts.
    class GDI {public: int z;};
    class OGL{public: double z;};
    class M_VIEW_BASE {
    virtual void MoveLine(POINT pt1, POINT pt2) = 0;
    virtual void DrawLine(POINT pt1, POINT pt2) = 0;
    class M_VIEW_GDI {
    GDI UseThis;
    void MoveLine(POINT pt1, POINT pt2) override {}
    void DrawLine(POINT pt1, POINT pt2) override {}
    class M_VIEW_OGL {
    OGL UseThis;
    void MoveLine(POINT pt1, POINT pt2) override {}
    void DrawLine(POINT pt1, POINT pt2) override {}
    std::unique_ptr<M_VIEW_BASE> drawBase;
    enum DrawMode { DrawGdi, DrawOgl };
    extern "C" __declspec(dllexport) void Init(DrawMode whichMode) {
    if (drawMode == DragGdi) {
    drawBase.reset(new M_VIEW_GDI);
    } else if (drawMode == DrawOgl) {
    drawBase.reset(new M_VIEW_OGL);
    } else {
    throw std::runtime_exception("whoops");
    extern "C" __declspec(dllexport) void MoveLine(POINT pt1, POINT pt2) {
    drawBase->MoveLine(pt1, pt2);
    extern "C" __declspec(dllexport) void DrawLine(POINT pt1, POINT pt2) {
    drawBase->DrawLine(pt1, pt2);

  • How to use methods from a JAR file inside my springcontext (Oracle fusion 12c) class file?

    Dear Friends,
    I have a jar file, which has executed classes and methods in it. I want to make use of these methods inside my springcontext piece of code.
    Can someone please share an example  of how to write spingcontext code which is accessing classes/methods from  JAR files along with the any setup?
    Thanks,

    I have found the answer... as described in:
    http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
    the problem was that the properties are loaded with the getResource & getResourceAsStream methods and I didn't know that one. I thought that is was loaded through findClass because I saw the property files trying to be loaded through findClass.
    The truth is that it tries to load with the getRessources methods and if it fails tries with the findClass/loadClass.
    To Fix the problem, I have simply overriden the getRessourceAsStream to do my magic and that was it.
    Thanks

  • How do i use parallel compression for 4 drum tracks in Logic pro 7.2.3 Please

    how do i use parallel compression for 4 drum tracks in Logic pro 7.2.3 Please. my version is 7.2.3 and my son did his drums on 4 tracks. 2 OH's 1 Kick and 1 Snare. Were confused because we cant figure out how to do parallel compression on the older logic version 7.2.3?

    I can't remember when the Aux tracks became the new buss tracks, so I'll spell this out using busses.
    The way I do it, is I assign all my drum tracks to a buss, say buss 1.
    Then, on buss 2, I assign it's INPUT to buss 1.
    So buss 1 (all the drums) are feeding into buss 2 simultaneously.
    Put a compressor on buss 2, turn the fader down all the way, then as the track is playing, bring buss 2's fader up slowly, until you hear the effect you're after.
    You could also do this using sends on the 4 drum tracks, set to feed the buss with the compressor on it.
    I hope I haven't forgotten anything particular to that version of Logic. See if this helps...

  • I can't open the RAW files from my new Nikon D4s camera in photoshop? How do I download the latest software for RAW files?

    I can't open the RAW files from my new Nikon D4s camera in photoshop? How do I download the latest software for RAW files? Cheers!

    What version of Photoshop are you running?  You will need at CS5, CS6, CC or CC2014.  Each version needs a different ACR-plug-in to open files from that camera.
    If you are on CS4 or earlier, you'll need to upgrade—or, in the alternative; look for, download, instal, launch and run the free, stand-alone DNG Converter 8.6 on each file of raw NEF files to convert them to raw DNGs first so you can open them in your version of Photoshop and ACR plug-in higher than 2.4.

  • Nikon D750 can you tell me when you launch a camera plug in for Raw file, Then I can use photoshop elements 13. I have now a trail version

    can you tell me when you launch a camera plug in for Raw file, Then I can use photoshop elements 13. I have now a trail version

    For that Nikon model you need ACR 8.3 that means CS6 or CC.  Or you can download the DNG converter convert your Nikon RAW files to Adobe RAW files. And then process the Adobe RAW files with CS5 ACR version  6.7
    Camera Raw plug-in | Supported cameras

  • Is there any system level support for RAW files from an Olympus XZ-10 camera.  I use Lion and iPhoto version 9.4.2

    Is there any system level support for RAW files from an Olympus XZ-10 camera.  I use Lion and iPhoto version 9.4.2

    If there is I can not find it - Google provides a list of possible methods form Adobe and others
    LN

  • How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    Jeannot7 wrote:
    I'm interested in seeing who gets the D7100 support first? Apple or Adobe!! I will go with the one that gets it out first.
    FWIW,
    Adobe keeps a quarterly release schedule for RAW updates. The current Lightroom 4.4 RC expires on 5/31/2013 which typically is an indication that the official release will be close to that date. According to the current list of new supported cameras, the Nikon D7100 is not slated to be supported (but that could change on release).
    http://labs.adobe.com/technologies/lightroom4-4/?tabID=details#tabTop
    The most likely time frame for Adobe support of the D7100 will be sometime in August or September 2013 (although there will probably be a Lightroom 4.5 RC available prior to that for testing purposes).

  • I need to find the download for ACR 7.3 to use my nikon d600 raw files. i have cs5 running on macboo

    i need to find the download for ACR 7.3 to use my nikon d600 raw files. i have cs5 running on macbook pro with mountain lion OS.

    Hi,
    Unfortunatly the 7.x series of camera raw plugin is not compatible with photoshop cs5.
    You could download the 7.4 DNG Converter and convert your d600 files to dng copies which then photoshop cs5 will open.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5568

  • HT4007 I have just transferred all my raw, jpeg & tiff files into LR4 and using to opportunity to delete old raw files to free up disc space. How can i completely remove a raw file from my msc disc??

    I have just transferred all my raw, jpeg & tiff files into LR4 and using the  opportunity to delete old raw files to free up disc space. How can i completely remove a raw file from my mac disc??

    I'd be careful here: LR references files. It can copy them, like from an SD card to your hard drive, but it doesn't necessarily make duplicates. So when you say you "transferred" those files "into" LR it just means you referenced existing files. And if you delete those they're gone, unless you've made copies. LR does not import files by copying them into a managed library like Aperture does.

  • How do I open .CR2 Canon Raw Files in PS Elements 8 for iMac

    When I open a .CR2 Canon Raw File (Canon T3i camera) in PSE 8 for iMac, I get all greys - no color.  It is showing as color as a .CR2 on my desktop - when I bring it into PSE, it is grey.  I chose first 16 bit, then 8 bit.  Same result.  What am I doing wrong?  Thanks.  George

    Thank you Barbara for pointing this out. Since I'm new to forum stuff so missed the catch here. Got exactly same information as you posted. Got to know that ACR 6.2 doesn't support T3i files. It's ACR 6.4 which supports them but is incompatible with PSE8 ( http://kb2.adobe.com/cps/407/kb407111.html ).
    So the solution seems to be either upgrade to a newer version of Elements or download the free DNG Converter ( http://www.adobe.com/products/photoshop/extend.displayTab2.html ) and convert the raw files to DNG.
    Thanks again for correcting me here
    Regards
    andaleeb

  • How can I view my 6D raw files before I open them in post processing?

    How can I view my 6D raw files after I load them on my computer & before I open them on a post processing Program?
    I have no problem doing that with my 1DX,1DIV or 5Dmk III. This problem exist with any sdhc card I use on the 6D, but not on any other camera with the same cards.
    Solved!
    Go to Solution.

    Your computer doesn't have camera RAW support installed for a 6D.  RAW isn't really a standard-format... it's more of a concept.  Every individual camera has it's own unique RAW format (even though they all have the same .CR2 extension).
    Each time a new camera comes out, companies that make RAW processing software will make an update available that adds that camera.  You'll need to get that update and install it.
    Tim Campbell
    5D II, 5D III, 60Da

  • How can I transfer my edited RAW files to a flash drive?

    I have 30 RAW files (NEF) from a holiday party that I have edited, and would like to give to a friend for further editing. We both work on Macs. I selected the 30 photos in Bridge, went to "Copy to" and selected the flash drive. The raw files along with their xmp files show up. But unfortunately when I bring up the files on the flash drive using the "View as Cover Flow" option in Preview, they show up in the original RAW form - as if I'd just downloaded them off my camera again - without edits.
    Many people have mentioned exporting and DNG conversion. With regard to the first: when I select photos, right click, and go to "export to" my only option is "hard drive". Once I select that, nothing appears to happen. No new folders or files seem to appear in my hard drive. With regard to the second: I am nervous about losing information via the DNG conversion. I want to make sure my friend has all the information pertaining to each photo in the event that she needs to do a more significant round of second edits.
    How can I achieve this transfer? Also, should the fact that my friend plans on using Lightroom for edits bear any significance on my decisions? Thank you...

    The Save as DNG is not in Bridge, It is only available in Camera Raw.
    Open your file in ACR, at the lower left click the SAVE IMAGE button. From there you can select several different formats.
    Select DNG and adjust the options. You can also embed the original raw file inside the DNG (but gives larger file size)
    It's not clear if you are opening the files directly from the flash drive or saving them first to the hard drive.
    I would recommend always saving files to the hard drive, eject the flash drive, and then open from there rather than directly from flash drive
    We've all had flash drives that go bad or act wonky.
    Not trying to work on the files while they still reside on the flash drive is just one less problem to worry about.
    Good Luck

  • How can i open Nikon D610 RAW files in Element 12 ?

    How can i open Nikon D610 RAW files in Element 12 ?

    You need the ACR 8.3 plug-in to open D610 NEF files.
    Check what Help / About Plug-ins / Camera Raw reports for the version number. 
    If it is something less than 8.3, update to the ACR 8.3 plug-in using Help / Updates from the Editor.  If that says there are no updates, then uninstall and re-install and try again.
    If it is already ACR 8.3 then the files are likely corrupted by using an obsolete version of Nikon Transfer or ViewNX with them.
    You can fix that corruption using a utility from the following webpage, where 14-bits is likely what you’d want to specify, and only use Nikon utilities that are as new as your camera:
    http://owl.phy.queensu.ca/~phil/exiftool/fix_corrupted_nef.html

Maybe you are looking for