IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 16 years ago

#694 closed enhancement (fixed)

Type of psImageCopy's third argument is odd

Reported by: rhl@… Owned by: eugene
Priority: low Milestone:
Component: IPP SDRS Version: unspecified
Severity: minor Keywords:
Cc:

Description (last modified by eugene)

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 eugene, 17 years ago

Priority: highlow
Status: newassigned
Type: defectenhancement

... 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)

comment:2 by eugene, 16 years ago

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

I created the suggested macro (PS_IMAGE_GET_TYPE)

Note: See TracTickets for help on using tickets.