Bug 693191 - no member named 'flags'
Summary: no member named 'flags'
Status: RESOLVED DUPLICATE of bug 693010
Alias: None
Product: MuPDF
Classification: Unclassified
Component: fitz (show other bugs)
Version: unspecified
Hardware: PC Linux
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-19 07:15 UTC by YuGiOhJCJ
Modified: 2012-07-19 07:17 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description YuGiOhJCJ 2012-07-19 07:15:05 UTC
Hello,

I report a little bug in source code.
In the 'fitz/image_jpx.c' file at line 54, I must comment :

/*
if (indexed)
	params.flags |= OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG;
*/

The reason is you use the 'flags' member which is not a member of the 'opj_dparameters_t' type ('params' is a variable of type 'opj_dparameters_t').

If you want to use the 'flags' member, you must use the 'opj_cparameters_t' which contains this member. You can find it in '/usr/include/openjpeg.h'.

The error at compile time is :
fitz/image_jpx.c: In function ‘fz_load_jpx’:
fitz/image_jpx.c:54: error: ‘opj_dparameters_t’ has no member named ‘flags’
fitz/image_jpx.c:54: error: ‘OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG’ undeclared (first use in this function)
fitz/image_jpx.c:54: error: (Each undeclared identifier is reported only once
fitz/image_jpx.c:54: error: for each function it appears in.)

Regards.
Comment 1 YuGiOhJCJ 2012-07-19 07:17:55 UTC
http://bugs.ghostscript.com/show_bug.cgi?id=693010

*** This bug has been marked as a duplicate of bug 693010 ***