Opened 20 years ago
Closed 16 years ago
#694 closed enhancement (fixed)
Type of psImageCopy's third argument is odd
| Reported by: | Owned by: | eugene | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | IPP SDRS | Version: | unspecified |
| Severity: | minor | Keywords: | |
| Cc: |
Description (last modified by )
The third argument of psImageCopy is a psElemType, not a psType; this leads
to code such as:
psImageCopy(NULL, image, image->type->type);
It'd be cleaner to be able to use
psImageCopy(NULL, image, image->type);
Change History (2)
comment:1 by , 17 years ago
| Priority: | high → low |
|---|---|
| Status: | new → assigned |
| Type: | defect → enhancement |
comment:2 by , 16 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
I created the suggested macro (PS_IMAGE_GET_TYPE)
Note:
See TracTickets
for help on using tickets.

... but allows for code such as psImageCopy (NULL, image, PS_TYPE_F32); perhaps add a macro or function of the form PS_IMAGE_GET_TYPE (psImage *image)