Changeset 28405 for trunk/psLib/src/imageops
- Timestamp:
- Jun 18, 2010, 2:25:38 PM (16 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageConvolve.c (modified) (7 diffs)
-
psImageCovariance.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageConvolve.c
r28136 r28405 864 864 PS_ARRAY_ADD_SCALAR(job->args, stop, PS_TYPE_S32); 865 865 if (!psThreadJobAddPending(job)) { 866 psFree(job);867 866 psFree(gaussNorm); 868 867 psFree(out); 869 868 return NULL; 870 869 } 871 psFree(job);872 870 } 873 871 if (!psThreadPoolWait(true)) { … … 1213 1211 if (!psThreadJobAddPending(job)) { 1214 1212 psError(PS_ERR_UNKNOWN, false, "Unable to smooth image"); 1215 psFree(job);1216 1213 psFree(calculation); 1217 1214 psFree(calcMask); … … 1219 1216 return false; 1220 1217 } 1221 psFree(job);1222 1218 } 1223 1219 // wait here for the threaded jobs to finish (NOP if threading is not active) … … 1261 1257 if (!psThreadJobAddPending(job)) { 1262 1258 psError(PS_ERR_UNKNOWN, false, "Unable to smooth image"); 1263 psFree(job);1264 1259 psFree(calculation); 1265 1260 psFree(calcMask); … … 1267 1262 return false; 1268 1263 } 1269 psFree(job);1270 1264 } 1271 1265 … … 1580 1574 PS_ARRAY_ADD_SCALAR(job->args, 0x00, PS_TYPE_U8); // specify rows 1581 1575 if (!psThreadJobAddPending(job)) { 1582 psFree(job);1583 1576 psFree(conv); 1584 1577 psFree(out); 1585 1578 return NULL; 1586 1579 } 1587 psFree(job);1588 1580 } 1589 1581 if (!psThreadPoolWait(true)) { … … 1617 1609 PS_ARRAY_ADD_SCALAR(job->args, 0xff, PS_TYPE_U8); // specify cols 1618 1610 if (!psThreadJobAddPending(job)) { 1619 psFree(job);1620 1611 psFree(conv); 1621 1612 psFree(out); 1622 1613 return NULL; 1623 1614 } 1624 psFree(job);1625 1615 } 1626 1616 if (!psThreadPoolWait(true)) { -
trunk/psLib/src/imageops/psImageCovariance.c
r28152 r28405 169 169 return NULL; 170 170 } 171 psFree(job);172 171 } else { 173 172 out->kernel[y][x] = imageCovarianceCalculate(covar, kernel, x, y); … … 334 333 return NULL; 335 334 } 336 psFree(job);337 335 } else { 338 336 out->kernel[y][x] = imageCovarianceBin(covar, bin, binVal, x, y);
Note:
See TracChangeset
for help on using the changeset viewer.
