Allocating buffer for export plugin

Hi in the docs this tis stated "Unfortunately, Export modules must track the buffer for the data requested from the host even though the host allocates the buffer. This means that the Buffer suite routines do not provide much help for Export modules.".
What does this mean?
That I should not use the Buffer suite when I write an exporter, and resort to malloc type functions for memory allocation?
Or is there a special way of handling the buffers when in an export module?
Thanks
Dimi

Yep using the Pica Buffer handle callbacks, did work at least for allocating/deallocating within one function.
Here are the function pointers I used, It took me some time to find what to do since there is no straight example in the documentation.
I found the PoorMansTypeTool helpfull in showing how this can work.
//intiialize in InitGlobal
if (gStuff->sSPBasic->AcquireSuite( kPSBufferSuite, kPSBufferSuiteVersion2, (const void **)&gPSBufferSuite64)) gResult = errPlugInHostInsufficient;
//Get buffer
unsigned8 *rowBigData = (unsigned8 *) gPSBufferSuite64->New(NULL, gStuff->imageSize.h*gStuff->imageSize.v*gStuff->planes);
//Displose buffer
gPSBufferSuite64->Dispose((char**)&rowBigData);
Tom what is the difference between the kPSBufferSuiteVersion1 and kPSBufferSuiteVersion2. The buffer suite 2 seems to have both 32 and 64 bit allocating functions.
Thanks
Dimi

Similar Messages

  • Any Flickr Export plugin available for Aperture 3?

    I was happy to see Flickr included in Aperture 3, but to say the least, it really *****.
    The worst thing is that it applies my own keywords to all the uploaded images. I don't want the (full) names of peoples in my pictures to display at Flickr and having my local-language keywords on my images probably doesn't help Flickr where most users are speaking english (compared to my local language).
    Basically I wish the Flickr export feature would allow me to either "not sync keywords" or modify my keywords to determine if I want them exported or not - like Lightroom does.

    Thanks for the warning Martin. I already know from iPhoto's flickr export that you gotta be careful. I guess the iPhoto/Aperture flickr export is great for those wanting REAL simplicity, but if you want to adjust just one or two settings, it's a no-go and it kinda *****
    I hope there's an AP3 flickr export plugin out there? I would be willing to spend $10 on it.

  • Low Hit Ratio for Export/Import Buffer

    Hi,
    Do low hit ratio (less than 70%) for Export/Import buffer causes performance issue?
    I didnt get any Note related to this.
    Any help will be appreciated.
    Thanks,
    Saurabh

    Thanks everyone,
    Basicaly all the buffers(Program/Nametab/CUA/Screen/Genric Key/Single record) has hit ratio around 99% , but for export/import buffer its 60%. which is indeed less.
    This is what i intended to ask, if this low hit ratio for export/import buffer has much impact ?
    Any note if anyone remembers?
    Thanks,
    Saurabh

  • Flash Video Exporter plugin for FInal Cut Pro

    Does anybody know how to install the Flash Video Exporter
    plugin for Final Cut Pro so it shows up as an option in FCP?
    I want to create FLVs directly from FCP.
    Thanks

    http://www.adobe.com/devnet/flash/articles/flv_exporter_03.htm
    Scroll Down - its about mid page
    This is on the intro page:
    Note: You must have Flash MX Professional 2004 installed on
    your machine to use the Flash Video Exporter with your video
    editing application. The only exception is using the exporter in
    Demo Mode.

  • Pixelpost export plugin for Aperture

    I found an export plugin for Aperture to send photos to Pixelpost blogs. I'm posting this here in case someone searches the discussion forums looking for one. The link is:
    http://www.pixelpost.org/extend/addons/aperture-pixelpost-plugin/
    or from the developer's site:
    http://www.macroni.be/index.php?x=plugin
    His comments:
    "APP (Aperture Pixelpost Plugin) uploads the selected picture from your Aperture library to you pixelpost blog without having to export the picture first, and then uploading it manually."
    I've tested it with APP v 1.3, Aperture v 2.1.4, OS X 10.6.1, Pixelpost v 1.7.3. The plugin does work, but when you export more than one photo, they all have identical metadata information. You'll have to rename and retag in the Pixelpost control panel. The plugin also does not remember your Pixelpost login information between sessions. In spite of these problems, it is a useful plugin for us Pixelpost users.

    Hey - I downloaded it and sent $ the day he put up the note EXCELLENT implementation, flawless installation and FAST uploading. Do yourself a favor if you're a Smugger. As said above, a marriage of two great products!!
    david
    MP, PB12   Mac OS X (10.4.8)  

  • The buffer manager failed a memory allocation call for 10485760 bytes

    I have a for each loop container which executes for each row in the recordset destination.
    In the for each loop container i have a dataflow task where in source is a oracle server and it performs two ookups before inserting the data into the destination.
    There are around 270k records coming from source...that means and around when 38k records are inserted in the destination the packages stops its execution and it says "The buffer manager failed a memory allocation call for 10485760 bytes".
    Can anyone help me in fixing this issue??
    TIA

    Hi Abhinav530,
    According to your description, when you execute the SSIS package, you got the error message: "The buffer manager failed a memory allocation call for 10485760 bytes".
    According to the error message, the machine has run out of physical memory (i.e. RAM) and is unable to swap out to hard disk. To troubleshoot the problem, please pay attention to these points:
    Add more physical memory to the computer.
    If you are running the SSIS  package on a computer that is running an instance of SQL Server, when you run the package, set the Maximum server memory option for the SQL Server instance to a smaller value. This behavior increases available memory.
    Exit applications that consume lots of memory when you run the SSIS package that contains dataflow tasks.
    Run the SSIS package and the dataflow tasks in series instead of in parallel to decrease memory usage.
    For more information about Data Flow Performance Features, please refer to the following document:
    https://msdn.microsoft.com/en-us/library/ms141031.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • How to get the destination path in an photoshop sdk export plugin when using a batch action?

    Hello,
    I've written an exporter plugin (not save-as) that exports a given file to a custom format.
    I was able to open a file selector dialog and choose a path that is then transported to the saving location.
    Now my problem is: Another intended use is batch exporting many files. The user records an action with the export step and then applies a batch on it.
    The PS batch window allows you to select the destination to be a directory where the exporter should write the data. Fine.
    Now how do I get this path? When running in batch mode the silent flag is set for my plugin so I do not spawn a file selector dialog to annoy the user.
    But I am also unable to obtain the path which was selected by the user in the batch window.
    The SDK automation plugin Getter has some code to retrieve the path of the file and even that fails as it cannot obtain anything.
    PropertyUtils.h has some PIGetWorkPathIndex and PIGetPathName functions but I always get 0 when asking PIGetNumberPaths, and get -1 with PIGetWorkPathIndex.
    I would be thankful if somebody could hint me how I can retrieve directories.
    It even seems impossible for me to get the path where the file is actually saved. The filter plugin called Propertizer utilizes a function called PIGetDocumentName but this only outputs the file name, not the full path.
    (Just to be sure: The file on which the tests run is already saved to disk, if that matters)
    Another fun part is: When I record an export step, what is the directory I am exporting into?

    Ok, after lots of reading the sdk sample outbound I've realized that or plugin is broken.
    When recording an action the outbound plugin stores the current path to gAliasHandle which is then recorded as a scripting parameter. Now when I execute the action I get the alias handle.
    However how is this supposed to work with an export plugin and batch processing with a "destination" set to a target? Is this even possible or do I need to double click the export step in the action and "reset" the location even if that causes the entire exporter to run again?

  • Play from an Export plugin?

    Hi,
    From a complete novice at Photoshop plugins...
    I am wondering if there is any underlying reason why I can't call sPSActionControl->Play() from an Import or Export plugin.
    I have a very simple import and export plugin pair to port from Windows to Mac, and both call a third Listener plugin to keep track of open images. The Windows code creates a hidden window (HWND) in the Listener and messages that from Import and Export. I was thinking that I could replace this by calling Play to send a custom event to the Listener, but can't get it to work.
    In fact any call to sPSActionControl fails. [The actual failure is sSPBasic->AcquireSuite in PIUSuites.h returns error 'Parm' when called for the sPSActionControl suite. sSPBasic has been set up, looks ok and sSPBasic->AcquireSuite works when called for sPSActionDescriptor suite].
    As a test (to remove other sources of error), I pasted the following lines into the PluginMain function of the History plugin in the SDK sample code and this fails in the same way:
    // TEMP code to test use of SPActionControl.
    SPErr error = kSPNoError;
    DescriptorTypeID typeID;
    error = sPSActionControl->StringIDToTypeID("Save Prestige Image dictionary", &typeID);
    So I'm wondering (a) is there some underlying reason why this doesn't work, or (b) is there some extra bit of initialisation or setup I need to do before calling sPSActionControl functions?
    Tearing out what little hair I have left!! Any help or suggestions most welcome.
    Thanks
    Terry Smyth
    PS Is there another way (apart from Play) to communicate from one plugin to another?

    Yes, there are many reasons.
    But the biggest reason is that it's an export plugin, and not an automation plugin.

  • CS6 Exporter Plugin doesn't open in Premiere Elements 11 (Windows)

    I want to make my (Windows) exporter-plugin compatible with Premeire Elements 11.
    So far, I have been gotten my exporter-plugin to appear in Adobe Premiere Pro CS6 and Media Encoder CS6, and the plugin runs there correctly.
    I then followed the directions for running Premeire CS6 to create an export a preset file (*.epr).  I copied copied  that exported *.epr file to "OTHERS/MyCompany/MyPreset.epr" in my Premere 11 [App installation folder].  (As well as copying the plugin-binary *.prm to Plug-ins/common
    In the <Publish:Share> tab, when I use the mouse to highlight 'OTHERS', I receive an error-dialog-box :
    "Premiere Elements has encountered an error.
    [..\..\Src\Exporter_Accessors.cpp-213]"   [Continue]
    After I click continue, I don't get the dialog-box for my exporter-plugin.  In the <Publish:Share> tab, I now see the warning-triangle and some text next to it: "Export Settings Invalid"

    Hmm, I forgot about using Visual Studio's debugger.  After some debugging, the error was triggered the first time the SDK_Exporter plugin called anything involving the <exportParamSuite>.
    After a little more digging, I found that Adobe Premiere Elements 11 doesn't support the latest version of the exportParamSuite (kPrSDKExportParamSuiteVersion4).
    In the CS6 SDK sample project SDK_Exporter, the function exSDKBeginInstance() grabs all of the suiteAPIs.  The following call fails:
         spError = spBasic->AcquireSuite(
             kPrSDKExportParamSuite,
             kPrSDKExportParamSuiteVersion, // CS6 supports v4,  but crashes in Premiere Elements 11
             const_cast<const void**>(reinterpret_cast<void**>(&(mySettings->exportParamSuite))));
    The original-call returns an spError code of <kSPSuiteNotFoundError>, which is actually misleading. I changed the version-argument to v3, and the error-call went away.
         spError = spBasic->AcquireSuite(
             kPrSDKExportParamSuite,
             kPrSDKMemoryManagerSuiteVersion3, // compatible with Premiere Elements 11
             const_cast<const void**>(reinterpret_cast<void**>(&(mySettings->exportParamSuite))));
    so it looks like Premiere Pro CS6 SDK's sample SDK_Exporter project requires a few tweaks to run with Premiere elements 11.

  • IPhoto 08 and the missing Shutterfly button for exporting

    Does any know what happened to the shutterfly button that was in iPhoto 06 for exporting, it seems to be gone in the 08 version???
    Help my wife is giving me grief about upgrading to Leopard and iPhoto 08!!

    If shutterfly has an export plugin for iPhoto '08 it typically would need to be installed from Shutterfly (it is not an Apple product) and then would appear as a tab in the file menu ==> export pager
    Check out the Shutterfly page for iPhoto '08 (version 7.x.x) assistance
    LN

  • Workflow for Aperture plugins in series.

    Hi there,
    I have been looking for an answer to this for a few months, and can't figure it out.
    I have a number of Aperture plugins, borderfx, and flickrexport being the two main.
    When I have finished working on a photograph, I normally do one of three things:
    1. export it to flickr.com with flickrexport, or
    2. file it in the relevant project or
    3. export it to a jpeg with borderfx for emailing/etc.
    I have been trying, but can't see if it is possible to do the following:
    1. use borderfx to put a border around the photograph then
    2. export it to flickr using flickrexport
    So, my question: is it possible to run a number of aperture plugins, in a series, to create a workflow, without having to export/import images?
    If it requires Automator, I am proficient in creating simple workflows with it.
    Any help is appreciate.
    thanks
    bernard
    www.runningwithbulls.com/blog / www.flickr.com/photos/runningwithbulls/

    As those are both export plugins, the only way you are going to be able to run them consecutively is to export using the border plugin, import the resulting images then then export the new files via flickrexport. Unless there's an image adjustment version of the border plugin?
    Ian

  • FM CRM_BUPA_SALES_AREA_GET_ALL returns 0 entries for export parameter

    Hi Expert:
    When I used BAPI BAPI_BUPA_FRG0010_ADD to create sales area data ,it will call function module  CRM_BUPA_SALES_AREA_GET_ALL to get all active sales areas,but it returns 0 entries for export parameter ET_SALES_AREAS. So the sales area data check is failed,then the sales area data is not created. So did anyone have faced this problem before? And how to solve this problem?

    I finally find out the reason. It because the buffer. After I executed the program HRBCI_ATTRIBUTES_BUFFER_UPDATE, the function will return a sales area list.
    Regards
    Nika

  • Useful code for exporting to Excel xlsx

    I wanted to "give back" by posting this little code sample for exporting a query into Excel xlsx
    Kudos to Charlie Arehart for helping me increase the server memory and java heap size.
    This code works for me using CF 9 on Windows Server 2008 R2. By the way, CFSpreadsheet seems to consume a lot of memory on larger exports. For this reason, we increased the server's physical memory, then used CF Administrator to increase the jvm heap size in the Administrator -> Java and JVM settings. My max java heap size is now 3072.
    Need help? I recommend you contact Charlie Arehart on server issues: [email protected]
    Code:
    Example query is called "Myquery" Spreadsheet is called "Myspreadsheet" I export the spreadsheet to a subdirectory called "xlsx" I use cflocation to direct the browser to the spreadsheet. The browser prompts the user to open, save or cancel.
    <cfset var_filenameis = "Myspreadsheet.xlsx">
    <cfset SpreadsheetObj = spreadsheetNew("true")>
    <cfset SpreadsheetObj = spreadsheetNew("#var_filenameis#","yes")>
    <cfspreadsheet action="write" filename="./xlsx/#var_filenameis#" query="Myquery" overwrite="true">
    <cflocation url = "./xlsx/#var_filenameis#">    

    An inline DataTable is not the same thing as exporting data in a standardized XLSX format.  (I'll post the script I use in another comment.
    Regarding inline tables, here are some other worth scripts:
    Handsontable - minimalistic Excel-like data grid editor
    http://handsontable.com/
    TableSorter 2 (forked) - sorting, filtering, grouping, pagination, inline editing, sticky header
    http://mottie.github.io/tablesorter/docs/
    jQuery Grid Plugin
    http://paramquery.com/
    jQuery table to CSV
    http://www.kunalbabre.com/projects/table2CSV.php
    jQuery Pivot - presenting table data in pivot form
    http://metalogic.dk/jquery.pivot/demo.htm

  • "Authorize" on Flickr export plugin doesn't open browser

    I'm trying to authorize Lightroom to export to my Flickr account, but when I click "Authorize" nothing appears in my browser.
    I am using Lightroom 4.1, and upgrading to 4.2 RC1 didn't resolve the issue. I've tried clearing my temporary files and re-installing Lightroom. I tried deleting my catalog and starting again. My default browser is currently Chrome, but when I make IE the default, I see the same behavior.
    Any suggestions on getting Lightroom to show me the authorization dialog box so I can export to Flickr?

    [Edit: skip down to my other reply to this thread.  The problem was that the system clock and time zone were incorrect.]
    I am experiencing the same symptom.  In the Flickr Publish service configuration dialog, the Authorize button pops up a dialog that explains "Lightroom needs your permission to upload images to Flickr," but when I click that dialog's Authorize button, it appears to do nothing (no browser, no error message, etc.). 
    I am currently running Windows 8 Pro 64-bit and Lightroom 4.3 64-bit.
    Here's a history of this problem. 
    I was using Windows Vista 64-bit with an updated Lightroom 3 (version 3.6?).  I was publishing to Flickr using the built-in Flickr publish plugin.  That worked flawlessly, and I never had a problem.
    I then upgraded to Windows 8 Pro 64-bit.  Unfortunately, I did not test Lightroom 3 at this point.
    I then upgraded to Lightroom 4.3 64-bit. 
    After these upgrades, I tried to publish two photos to Flickr using my existing Flickr publish configuration.  I believe that I got some error the first time, which I did not write down.  I wasn't sure that the Flickr publish service would upgade correctly, and I did some searching online. 
    I'm familiar with the Flickr APIs, and I thought that after the upgrade, I probably needed to re-authorize the plug-in.  I went to my Flickr account in my browser and revoked Lightroom's permissions.  I may have also clicked "Remove Authorization" in the Flickr publish plugin's settings page.  After that, I started hitting the problem described above.  When I click the Authorize button, I never get a browser pop up.
    I then tried a few things. 
    1) I verified the registry entries had the values described in this thrad: http://forums.adobe.com/message/3121076#3121076
    2) I removed the old Flickr publish service that had been migrated from Lightroom 3.6.
    3) I uninstalled Lightroom 3.6.
    4) I ran the "repair installation" for Lightroom 4.
    5) I ran lightroom.exe -register as the administrator.
    6) I ran Lightroom 4 as the administrator.
    Between each of those steps, I rebooted the machine.  When the machine came back up, I opened Lightroom 4 and clicked the Flickr publish service's "Set up" button.  I then when to the plugin manager and reloaded the Flickr plugin.  Finally, I clicked "Authorize" in the Flickr plugin's settings.  Every time, I get the same behavior.  "Not authorized" in the settings dialog changes to "Authorizing..." while it shows me a dialog.  I click the Authorize button in that dialog.  I briefly see a different message in Flickr publish service settings page (Waiting for response...).  Then it changes to "Not Authorized."  I never see a browser or an error.
    With each experiment, I tried with both IE and Firefox set as my default browser.  I get the same behavior with both browsers. 
    I verified that running "start lightroom://www.flickr.com" from the Windows command prompt opens Lightroom 4.3.  Therefore, I believe that the registry settings for the lightroom URL protocol are correct.
    I have never used the Facebook publish service in the past, but I cilcked on the set up button for that plugin.  When I click Authorize on Facebook, it launches my browser (or opens a new tab) for Facebook.  Therefore, it looks like Lightroom plugins are able to launch the browser.
    It seems like there's something wrong with the Flickr publish service plug-in itself.  I'm not sure how to get any additional diagnostic information from the plugin.  I'd be happy to try something else, but at this point, I'm out of ideas for troubleshooting.
    Message was edited by: t_bryan

  • Installed LR 3.2, and export does not show any options for exporting to Smugmug, Facebook etc

    I fresh installed LR 3.2 on a Windows 7 computer to try out tethering (which worked fine), but then tried to export the photos, but I don't have any options for exporting to non-harddrive based locations. The "export to" drop down at the top of the export page only has "hard drive" in it. The plugin manager says that plugins for SmugMug, Facebook, etc are all enabled.
    Anyone have any ideas?
    Thanks!
    Mike

    I found too that the publishing services work differently than the plug-ins.  Not as intuitive, but work well just the same,  For me I had to do the "set-up" for the Facebook publishing service a couple of times.  I think this may have more to do with the Facebook security settings than with LR.

Maybe you are looking for

  • Using a different wifi card in a Photosmart C309A

    I'm one of the many people that has a Photosmart C309a that the wifi card died shortly after warranty.  I found a C309 at a recycle place and pulled the card (hey, they only charged me $5 for it).  The number on the card is 1150-7936, not 1150-7931 t

  • How to handle a comma in a field in CSV file during FCC ?

    Hi, I am having a requirement where we have to convert a CSV file into XML using File Content Conversion . The issue is one of the field in the file is having a comma inside. So the XML parser is taking it as a field separator and throwing an error.

  • Vendor's Lease Expiring

    Hi ,      I've  a requirement of reporting to find out the Vendors whose Leases are getting expired in a certain Period of Time. Its related to Recurring Entries (Business Process Procedure). Appreciating your efforts, Jyoti Shankar

  • NON CUMMULATIVE KEYFIGURE

    hi everybody & kalpana,   i need brief notes regarding Non-Cumulative keyfigure.start routines & update routines.    plz help me in this issue.

  • Opening .mp4 files using flvplayback component 2.5 in Air 3.2

    I've publishing the package using the extended desktop profile and captive runtime. When I run the published .exe file from a hard disk (either on my local machine or other test machines) it works fine, so I know that I have my code at least partiall