#24 closed defect (fixed)
psImageAlloc() arguments
| Reported by: | Owned by: | eugene | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PSLib SDRS | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Page 23 of the SDR specifies that an argument to the psImageAlloc() function is
of type "psType". The psType struct itself contains two members
data dimension
data element type
I think the data dimension type member is redundant, since it will always be
IMAGE for this function. Is that correct? If so, I think it will be easier to
change this argument to be of type psElemType.
By doing so, psImageAlloc() can simply be called with one of the elementary data
types. Otherwise we will have to create a dummyDataType variable and fill it
with PS_FLOAT, and PS_IMAGE, or whatever, whenever we call psImageAlloc().

made the change to the SDRS