cosmigo / pmotion-purebasic Goto Github PK
View Code? Open in Web Editor NEWCosmigo Pro Motion NG plugins interfaces in PureBasic
License: Other
Cosmigo Pro Motion NG plugins interfaces in PureBasic
License: Other
Missing info on DLL functions.
Is the canExtractPalette()
a generic DLL function gathering info about the plug-in supported features (e.g. like isReadSupported()
) or does it apply to the specific files being processed? In other words, is it a plug-in registration function or is called on a per-file basis?
For more info, see also:
In the PureBasic File I/O plug-in template progressCallback()
needs to be defined in the main body, and then Shared
inside setProgressCallback()
(either that or just define it as Global),
otherwise it won't be available to other procedures.
Also, the following line need to be fixed:
progressCallback.ProtoProgressCallback = @*progressCallback
it should be = *progressCallback
!
I've noticed that windows created by file i/o plug-in tend to partially inheriting PMNG's skin (e.g. the dark/light theme) while partially adopting the Win 10 look-&-feel of modern windows.
I should try to disable the "Use modern XP themes" option in the PBCompiler, and see if this allow custom windows to fully inherit PMNG's skins.
Missing info on DDE plugins.
In his Pro Motion DDE Interface in C, Thiadmer Riemersma brings up the issue of wether asynchronous execution of DDE plugins is mandatory or not:
My implementation of a DDE “execute” is asynchronous. I do not know whether Pro Motion requires this. A few other applications for which I implemented DDE conversations required asynchronous execution, so I left it that way. Note that the Delphi implementation also does an asynchronous execution.
For more info, see also:
Missing info on DLL functions.
I need to understand if DLL functions specifically targeting import or export functionality can be left out entirely in those plug-ins that won't use them — i.e. if these functions still require defining DLLProcedure
s that do nothing, or if they can simply be omitted since PM wouldn't try to call them after having acknowledged the plug-in supported features via the registration functions.
For example, an import plug-in shouldn’t expect any calls to beginWrite()
or
writeNextImage()
, and an export plug-in shouldn’t expect any calls to getTransparentColor()
or isAlphaEnabled()
.
For more info, see also:
When Travis CI is correctly setup and working, and the build status badge is green again (See cosmigo/pmotion2svg#1):
Fix a typo in PoC/file-io/fake/FakePlugin.pb
:
logger::Settings\WinTitle = "FAKE Puglin v" + #PLUGIN_VER$
... the window title should be "FAKE Plugin", not "FAKE Puglin".
I need a clarification about the plugin function getImageCount()
.
This function is documented as being able to return error, but it's the only function of those that can set error that is also expected to return a value (i.e. the number of frames).
I'm assuming that in case of error the function is also to return false (0), and that it's not enough to just set the error. I'm assuming that, since at least 1 image is expected by PM, a return value of 0 would be considered an error.
If this is the case, it should be mentioned in the Procedure comments.
Se also:
Currently, whenever an image containing an Alpha layer is exported, the plugin is invoked twice (for image.ext
and image.alpha.ext
). This occurs regardless of whether isWriteTrueColorSupported()
returns true or false.
This seems connected to PM NG native behaviour when saving to file formats that don't support alpha channels, for which PM created and additional .alpha.<ext>
file to store the Alpha layer in order to reconstruct it when loading that image again.
This is either a bug or an undocumented feature — the former suggests that PM should be handling creation of the extra file.
For more details, see also:
Ownership of this repository was transfered to the newly created @cosmigo organization:
Replace all references to the old repository URL, form the @tajmone user account to the @cosmigo organization in:
TRAVIS CI NOTE — Travis CI validation will not work until @cosmigo enables Travis on the repository (See cosmigo/pmotion2svg#1). Since the badge is already broken on
master
branch, there's no need to wait for Travis enabling before merging these fixes.
PB CODE NOTE — I probably shouldn't change the version info in the PB sources after fixing the URLs. These are minor changes, mostly to comment lines, so they shouldn't affect their version number. Furthermore, it's all in Alpha stage, and there are no tagged releases at the moment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.