How to allocate 4GB in a plug-in

Hi,
I'm working on a filter plug-in which someone wants to use to process really large 32-bit files (e.g. 550+ megapixels).  Apparently they can load these info Photoshop 64-bit (I'd like to have enough RAM to be able to try this).  But the plug-in needs to allocate scratch buffers for processing, equal to more than twice the image size, and for images this size, this means allocating more than 4GB in the plug-in, and more than 2GB in one hit.
The way I'm currently doing this doesn't work for images of this size for two reasons:
1. I seem to have to set the bufferSpace field in the FilterRecord structure to the amount of buffer I want to allocate, when allocating large amounts, or calls to allocateProc fail.  However bufferSpace seems to be an int32 (typedef for long, which is 32 bits even on a 64-bit machine apparently).  How can I indicate to Photoshop that my plug-in will be asking for more than 4GB of RAM?  (Given that int32 is signed, I'm not sure I can tell it I'll be asking for more than 2GB in fact.)
2. I want to allocate, say 2.2GB using allocateProc, but it also takes a signed int32 as a parameter, suggesting that 2GB would be the maximum amount I could allocate in one go, and certainly 4GB even if it treated it as unsigned internally.
So I'd like to know if there are 64-bit friendly versions of bufferSpace and allocateProc that I can use when memory requirements are large?  If the int32 versions are all there are, it would seem like a serious limitation on the way 64-bit plug-ins can use RAM.
Thanks
                -Matthew

If you think you need to allocate the whole image at one time, much less multiple copies of the whole image -- you're doing it wrong.
Rethink the problem so you can work in strips or tiles.

Similar Messages

  • How do I update my Nik Plug Ins for LR 5 to the latest release?

    Nik has a new release (1.1.1.1) and the Plug In version I have in LR 5 is 1.1.1.0.  How do I update the Nik Plug In's?  I have Lightroom through the Creative Cloud and usually get my updates there.

    Yep, I just checked my version of the plugins and they have all been updated in the background. I wasn't even aware there was a new version until this thread.

  • How to install and use a plug-in downloaded from the apple site?

    how to install and use a plug-in downloaded from the apple site?

    Emelie,
    which plug-in do you want to install?
    some of the plug-ins come with an installer on the disk image, you click the installer and it will install it in its proper location.
    For others you move the plug-in into to System Library or your User Library:
      Your Hard disk  > Library > Application Support >Aperture > Plug-Ins > Edit
    or
    Your Home Folder > Library > Application Support >Aperture > Plug-Ins > Edit
    If it is an "Edit" plug-in, it goes into the "Edit" subfolder, "Export" plug-ins into the "Export" subfolder.
    You can tell by the extension, what kind of plug-in it is.
    E.G. BorderFX.ApertureExport is an export plug-in, BorderFXEditPlugin.ApertureEdit an edit plug-in.
    Regards
    Léonie
    P.S. In OS Lion the Libraries are hidden by default: To reveal your User Library activate the Finder and select from the main Finder menu:
        Finder >  Go , then hold down the ⌥-option-key, untill the Library appears in the drop.down menu.
    To show the System Library:
         Finder >  Go > Go to Folder
    then enter   / Library

  • How do I transfer all my plug-in filters, etc. from CS6 to PS-CC?

    How do I transfer all my plug-in filters, etc. from CS6 to PS-CC?

    Read this article - http://www.myfirstmac.com/index.php/mac/articles/how-do-i-move-my-itunes-library -from-pc-to-mac-and-keep-my-settings-intact
    Your .wma (proprietary to Windows format) will not play or convert in iTunes Mac so convert them in iTunes Windows to .mp3 before moving your library. There are other converters on the Internet - do a search.
    MJ

  • How do I can install TWAIN plug-in for Adobe Photoshop CS5

    I like photoshop cs5 and some plug in but I can not install them so you can show me how to set up to use ... so When I installed Adobe Photoshop CS5, I noticed that scanner selection is not there. I contacted Epson technical support and they said Adobe Photoshop CS5 does not automatically install the TWAIN plug-in

    Thanks for your response.
    I downloaded the "Photoshop CS5 Optional Plugins" file (PSCS5OptionalPlugins_Win_en_US.zip). I unzipped it and read the "ReadMeCS5_OptionalPlugin.pdf" file. In that file, the only section that discusses TWAIN is entitled "TWAIN (Mac only)". There is no section for how to install TWAIN for Windows.
    How do I install the TWAIN plug-in for Windows?
    On a side note: Before I posted the question to the form, I changed my Adobe account email from [email protected] to [email protected] I then logged in as [email protected] and posted the question. The notification email for your posting a response to my questions was sent to my old email address (not tye new one). My Abobe account and my forum profile both show my new email address. Where is the settings that controls the email notification for the posting responses?
    Wikipedia
    Wictionary
    Chambers (UK)
    Google images
    Google define
    The Free Dictionary
    Join example
    WordNet
    Google
    Urban Dictionary
    Answers.com
    rhymezone.com
    Merriam-Webster<>0
    wvcidfjoguarm

  • How do I access Camera Raw Plug-in for PSE 11?

    I can't figure out how to access the Camera Raw plug-in for Photoshop Elements 11 ( on a Macbook Pro OSX.)  I recently installed  PSE 11, and when I select "about plug-in" within the app, it brings up a box that shows version 7.1.0.354.  Does that mean it's already installed?  If so, how do I access it to edit a photo? In past PSE versions I simply chose "Open file / as Camera Raw" but that option doesn't come up.

    In the File Open dialog ensure you have All Readable Documents selected for Enable.
    Click on the file you want to open
    Change the Format to Camera Raw

  • How to install the camera raw plug in?

    how to install the camera raw plug in?

    Hi Andreaid,
    An easy way is to go to Help>Updates in whatever program you have that includes camera raw like Photoshop or Bridge.
    Thanks,
    - Dave

  • How IDE knows which third-party plug-in to invoke at run time?

    I always wonder how Java IDE loads 3rd party plug-ins to the IDE's menu bar??
    IDE should have a menu item that associates with each 3rd party plug-ins, so
    that programmers can choose whatever plug-in they prefer easily.
    In the plug-in JAR file, it should have a configuration that indicates the name
    of this plug-in, so that Java IDE can create a menu item with this name.
    Before IDE starts, IDE application should do the following things at run time.
    If the following tasks are done at compile time, it is very easy to code. But
    when it is done at run time, then I have problems to figure it out #2.
    1) loads the plug-in JAR file and create a menu item in IDE menu bar.
    2) add action listener to the menu item. When programmers click
    the menu item, Java IDE can identify which plug-in to invoke.
    Please advise!

    Try looking at the source code for the opensource project jEdit. The do a good job of managing plugins.
    Josh

  • How to detect the Acrobat Browser Plug-in version installed on a users system for non-IE browsers?

    How to detect the *Acrobat Browser Plug-in version* installed on a users system, on Firefox, Safari, Opera, etc?
    Or one script for detecting Plug-in version for major browsers. Need full example code.

    Wrote an article on this with code samples (Javascript + HTML) - basically there are differences between IE and other browsers. Chrome natively comes with the Chrome PDF Viewer so I've incorporated that in my detection script.
    The script detects the browser type, and the installed acrobat version...
    Have a look here:
    Detect the Adobe Reader Plugin

  • How can i remove a blank Plug-in?

    I cant get to my EQ easily with this.  it happens every now and then. sometimes I will have only three plug-in slots then sometimes I have to many like this.  i click on no plug-in but it still leaves a blank spot like this.  How do I remove a blank plug-in spot!  This is driving me MAD!

    One of your other channels has either that many plug-ins or a plug-in in the next-to-last slot.  look at the mixer and it should be clear.  and watch your gain structure.

  • How do I unblock a blocked plug in on a web site

    how do I "unblock" a blocked plug in on a website?

    When you have installed the latest version of Flash, relaunch Safari and test.
    If you're getting a "blocked plug-in" error, then in System Preferences… ▹ Flash Player ▹ Advanced
    click Check Now. Quit and relaunch your browser, but check this also:
    http://support.apple.com/kb/HT5655?viewlocale=en_US&locale=en_US  which also covers ‘blocked plug-in’.

  • How to allocate memory and to get the start address

    im just trying to allocate a memory of 8MB and to get the start address of that mem,  by getting the address i will access that memory by dll function..  so i want to know how to allocate the memory and to get the address.. any one knows then pls tell me

    duplicate post
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • How to allocate more ram to T410 IntelHD graphics? CONFUSED

    Hello There
    I have a T410 Thinkpad, and I would like to know how  to allocate more ram to the IntelHD graphics so that I can run my video games a lot better. I have searched through the bios and cannot find how 
    Sorry for my English
    -Jack

    If you're running Windows 7 or later, Windows should automatically allocate up to 1.5GB of system RAM to the integrated graphics.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • How do I delete/remove interent plug-ins from the security preferences of safari

    How do I delete/remove interent plug-ins from safari

    Hi Joe ..
    You can disable plug-ins.
    From your Safari menu bar click Safari > Preferences then select the Security tab.
    Deselect:  Allow Plug-ins
    To remove internet plug-ins is another process altogether.
    How to uninstall thrid party add ons here.

  • How to allocate space for headers in reports through line size r line count

    hi ,
    may i know how to allocate space for a header ( we do the same for footer through line-count ( footer space ) ) through line size or line count in reports...
    thanks in advance..

    Hi..,
    There is no need to reserve any space for the header. TOP-OF-PAGE can by default allocates the space for the header.
    If you still having confusion just  go ahead with this link. This is the research on same thing in defferent way.
    [Link|lines reservation for TOP-OF-PAGE & END-OF-PAGE;
    Thanks,
    Naveen.I

Maybe you are looking for

  • Problems transferring to new computer.  Is Win 8.1 problem?

    Problems transferring to new computer.  Is Win 8.1 problem?

  • 9.2.2 install/move problem with G4 QS 2002

    I have a G4 QS 2002 with two 500GB HD's. One is partitioned into six unequal partitions, Leopard, Tiger, Panther, System 8.6 - 9.2.2, Yellow Dog, and Scratch. The Leopard has a bootable System 9.2.2 and as soon I have 10.5 in my hands AND my problem

  • Mail does not display in viewing window. Please help

    Hi, I have been told to come and post this here.... I think I put it on the wrong board. I am receiving my mail into inbox but it will not show on the screen. I have a pop account for myself and a secondary account for my partner. His mail is showing

  • Laptop keeps turning off (T500)

    I have a Lenovo T500 with 6GB RAM,  320GB HDD and an intel T9600 @ 2.8 GHZ. I installed Windows a few weeks ago and haven't used the laptop. Upon turning it on, when I logged in, it said there was a startup error. So, I restarted, did startup repair,

  • Dell PC help with DVD itunes download

    I have a dell PC. I need to download a DVD (video) to iTunes. I have the iTunes app already installed. I am having trouble importing the playlist. When the DVD is in, it shows up on iTunes. When I remove the DVD it says file not found. How do I impor