Subversion Repositories filter_foundry

Rev

Rev 505 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 505 Rev 536
Line 1... Line 1...
1
/*
1
/*
2
        This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop
2
        This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop
3
        Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.com.au
3
        Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.net
4
        Copyright (C) 2018-2022 Daniel Marschall, ViaThinkSoft
4
        Copyright (C) 2018-2022 Daniel Marschall, ViaThinkSoft
5
 
5
 
6
        This program is free software; you can redistribute it and/or modify
6
        This program is free software; you can redistribute it and/or modify
7
        it under the terms of the GNU General Public License as published by
7
        it under the terms of the GNU General Public License as published by
8
        the Free Software Foundation; either version 2 of the License, or
8
        the Free Software Foundation; either version 2 of the License, or
Line 301... Line 301...
301
                (pSBufferSuite64 != NULL) &&
301
                (pSBufferSuite64 != NULL) &&
302
                (pSBufferSuite64 != (PSBufferSuite2*)gpb->bufferProcs /*Implementation mistake in old Photoshop versions! (see note below)*/)
302
                (pSBufferSuite64 != (PSBufferSuite2*)gpb->bufferProcs /*Implementation mistake in old Photoshop versions! (see note below)*/)
303
                )
303
                )
304
        {
304
        {
305
                // PICA Buffer Suite 2.0 (64 bit)
305
                // PICA Buffer Suite 2.0 (64 bit)
306
                // 
306
                //
307
                // Note: Windows Photoshop 7 and CS 2 (Other Photoshop versions were not tested) accept
307
                // Note: Windows Photoshop 7 and CS 2 (Other Photoshop versions were not tested) accept
308
                // kPSBufferSuiteVersion2, but dont't correctly implement it:
308
                // kPSBufferSuiteVersion2, but dont't correctly implement it:
309
                // Instead of returning a pointer to a PSBufferSuite2 structure,
309
                // Instead of returning a pointer to a PSBufferSuite2 structure,
310
                // they return the pointer RecordPtr->bufferProcs (structure BufferProcs)!
310
                // they return the pointer RecordPtr->bufferProcs (structure BufferProcs)!
311
                // 
311
                //
312
                // Side note:  64-bit support for Windows was established in Photoshop CS 4,
312
                // Side note:  64-bit support for Windows was established in Photoshop CS 4,
313
                //             PSBufferSuite2 was first documented in SDK CS 6,
313
                //             PSBufferSuite2 was first documented in SDK CS 6,
314
                //             pb->bufferProcs->allocateProc64 and spaceProc64 were documented in SDK CS 6,
314
                //             pb->bufferProcs->allocateProc64 and spaceProc64 were documented in SDK CS 6,
315
                //             pb->bufferSpace64 and pb->maxSpace64 were documented in SDK CC 2017.
315
                //             pb->bufferSpace64 and pb->maxSpace64 were documented in SDK CC 2017.
316
                unsigned32 siz = (unsigned32)nBytes;
316
                unsigned32 siz = (unsigned32)nBytes;