Rev 536 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 536 | Rev 550 | ||
---|---|---|---|
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.net |
3 | Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.net |
4 | Copyright (C) 2018-2022 Daniel Marschall, ViaThinkSoft |
4 | Copyright (C) 2018-2023 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 |
9 | (at your option) any later version. |
9 | (at your option) any later version. |
Line 78... | Line 78... | ||
78 | /* initialise flags for tracking special variable usage */ |
78 | /* initialise flags for tracking special variable usage */ |
79 | for(i = 0; i < 0x100; i++) |
79 | for(i = 0; i < 0x100; i++) |
80 | varused[i] = 0; |
80 | varused[i] = 0; |
81 | needall = srcrad = cnvused = state_changing_funcs_used = 0; |
81 | needall = srcrad = cnvused = state_changing_funcs_used = 0; |
82 | for(i = 0; i < nplanes; ++i){ |
82 | for(i = 0; i < nplanes; ++i){ |
83 | //char s[100];sprintf(s,"expr[%d]=%#x",i,expr[i]);dbg(s); |
83 | //char s[100];sprintf(s,"gdata->parm.szFormula[%d]=%#x",i,gdata->parm.szFormula[i]);dbg(s); |
84 | if( tree[i] || (tree[i] = parseexpr(expr[i])) ) |
84 | if( tree[i] || (tree[i] = parseexpr(gdata->parm.szFormula[i])) ) |
85 | // if src() and rad() is used => needall=1, since we need arbitary access to all pixels |
85 | // if src() and rad() is used => needall=1, since we need arbitary access to all pixels |
86 | checkvars(tree[i],varused,&cnvused,&srcrad,&state_changing_funcs_used); |
86 | checkvars(tree[i],varused,&cnvused,&srcrad,&state_changing_funcs_used); |
87 | else |
87 | else |
88 | break; |
88 | break; |
89 | } |
89 | } |