Changeset 41894 for trunk/ppImage/src/ppImageSetThreads.c
- Timestamp:
- Nov 4, 2021, 6:07:14 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageSetThreads.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageSetThreads.c
r18823 r41894 15 15 } 16 16 17 bool ppImage SetThreads () {17 bool ppImageThread_ppImageDetrendPatternApplyCell (psThreadJob *job) { 18 18 19 psThreadTask *task = NULL; 19 pmConfig *config = job->args->data[0]; 20 pmFPA *fpa = job->args->data[1]; 21 pmChip *chip = job->args->data[2]; 22 pmCell *cell = job->args->data[3]; 23 pmFPAview *view = job->args->data[4]; 24 ppImageOptions *options = job->args->data[5]; 20 25 21 task = psThreadTaskAlloc ("PPIMAGE_DETREND_READOUT", 3);22 task->function = &ppImageThread_ppImageDetrendReadout;23 psThreadTaskAdd (task); 26 bool status = ppImageDetrendPatternApplyCell (config, fpa, chip, cell, view, options); 27 return status; 28 } 24 29 30 bool ppImageSetThreads (void) { 31 32 # if (0) 33 // *** Detrend Readout (now unused : threading is done at the readout level in pmDetrend) 34 { 35 psThreadTask *task = psThreadTaskAlloc ("PPIMAGE_DETREND_READOUT", 3); 36 task->function = &ppImageThread_ppImageDetrendReadout; 37 psThreadTaskAdd (task); 38 } 39 # endif 40 41 // *** Detrend Pattern Row 42 { 43 psThreadTask *task = psThreadTaskAlloc("PPIMAGE_PATTERN_ROW_CELL", 6); 44 task->function = &ppImageThread_ppImageDetrendPatternApplyCell; 45 psThreadTaskAdd(task); 46 psFree(task); 47 } 25 48 return true; 26 49 }
Note:
See TracChangeset
for help on using the changeset viewer.
