#111 closed defect (fixed)
psImageCopy and maintaining type if output parameter is NULL
| Reported by: | Owned by: | eugene | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PSLib SDRS | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
In the latest SDRS, the following was added to the description for psImageCopy:
"If the output target pointer is NULL, the original data type must be maintained"
Why wouldn't the type parameter specify the resulting datatype in this case? It
seems to be a needless exception to the functionality where the parameter 'type'
dictates the resulting image's type.
Note:
See TracTickets
for help on using tickets.

this must be a relic. ignore that sentence.
perhaps psElemType needs to have a value which means 'keep the original type' so
you can use psImageCopy to copy an image without caring what the type is.
I guess in that case you just specify the type to be input->type. that is easy
enough, so let's just use that