Rev 510 | Rev 532 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 510 | Rev 529 | ||
---|---|---|---|
Line 164... | Line 164... | ||
164 | 164 | ||
165 | // (Method 2) *DOES NOT WORK* |
165 | // (Method 2) *DOES NOT WORK* |
166 | // 2. The recommended buffer suite (kPSBufferSuite), |
166 | // 2. The recommended buffer suite (kPSBufferSuite), |
167 | // It does not work, since it causes memory corruption when the filter is invoked a second time. |
167 | // It does not work, since it causes memory corruption when the filter is invoked a second time. |
168 | // Probably the BufferSuite cannot be used to share data between filter invocations? |
168 | // Probably the BufferSuite cannot be used to share data between filter invocations? |
169 | // Also, the buffer suite is only available in a Adobe Photoshop host. |
169 | // Also, the buffer suite is only available on the Adobe Photoshop host application. |
170 | /* |
170 | /* |
171 | FFBuffer buf; |
171 | FFBuffer buf; |
172 | newBuffer(&buf, sizeof(globals_t)); |
172 | newBuffer(&buf, sizeof(globals_t)); |
173 | *data = (intptr_t)lockBuffer(&buf); |
173 | *data = (intptr_t)lockBuffer(&buf); |
174 | if (*data) memset((void*)*data, 0, sizeof(globals_t)); |
174 | if (*data) memset((void*)*data, 0, sizeof(globals_t)); |
Line 266... | Line 266... | ||
266 | simplealert(tmp); |
266 | simplealert(tmp); |
267 | free(tmp); |
267 | free(tmp); |
268 | #endif |
268 | #endif |
269 | 269 | ||
270 | if (pb->hostSig == HOSTSIG_ADOBE_PREMIERE) { |
270 | if (pb->hostSig == HOSTSIG_ADOBE_PREMIERE) { |
271 | // DM 19.07.2021 : Tried running the 8BF file in Adobe Premiere 5 + Win98 (yes, that's possible, |
271 | // DM 19.07.2021 : Tried running the 8BF file in Adobe Premiere 5 + Win98 |
272 | // and there is even a FilterFactory for Premiere!), |
272 | // (yes, that's possible, and there is even a FilterFactory for Premiere!), |
273 | // but it crashes in evalpixel() where there is write-access to the "outp". |
273 | // but it crashes in evalpixel() where there is write-access to the "outp". |
274 | // DM 24.04.2022 : On Adobe Premiere 6 + Win10, the filter opens sometimes (and sometimes crashes inside DialogBoxParam), |
274 | // DM 24.04.2022 : On Adobe Premiere 6 + Win10, the filter opens sometimes (and sometimes crashes inside DialogBoxParam), |
275 | // but the filter is not applied when you click "OK" (because it crashes internally; only the debugger sees it)... |
275 | // but the filter is not applied when you click "OK" (because it crashes internally; only the debugger sees it)... |
276 | // Probably the canvas structure is different (maybe it contains frames to achieve transitions?) |
276 | // Maybe the canvas structure is different (maybe it contains frames to achieve transitions?) |
- | 277 | // TODO: make Filter Foundry compatible with Premiere! |
|
277 | if (!premiereWarnedOnce) { |
278 | if (!premiereWarnedOnce) { |
278 | simplealert_id(MSG_PREMIERE_COMPAT_ID); |
279 | simplealert_id(MSG_PREMIERE_COMPAT_ID); |
279 | } |
280 | } |
280 | premiereWarnedOnce = true; |
281 | premiereWarnedOnce = true; |
281 | *result = errPlugInHostInsufficient; |
282 | *result = errPlugInHostInsufficient; |