Ticket #8056

Inappropriate color conversion
Open Date: 2006-02-19 13:45 Last Update: 2008-04-10 12:26

Reporter:
Owner:
(None)
Type:
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

GlueCode converts the Ghostscript color value to RGB
values. In opvp_map_color_rgb() in gdevopvp.c, it calls
gx_default_rgb_map_color_rgb() to convert the
Ghostscript color index to rgb value, and
gx_default_rgb_map_color_rgb() returns rgb values in
gx_color_value (16bit) for OPVP_cspaceStandardRGB, but
rgb values in 8bits per channel is correct, and these
color values must be converted from 16bit to 8bit color.

Ticket History (2/2 Histories)

2006-02-19 13:51 Updated by: toratani
Comment
Logged In: YES
user_id=10279

Additional comment;
This bug should be solved in opvp_set_brush_color() which calls
opvp_map_color_rgb(), because opvp_map_color_rgb() is the
function to be prepared for Ghostscript, and must returns
gx_color_value itself.
2008-04-10 12:26 Updated by: sho-otani
Comment
Logged In: YES
user_id=10270

When dev->color_info.depth is 24,
gx_default_rgb_map_color_rgb returns 8bits colors. And
gx_device_opvp's color_info.depth is 24, so using
gx_default_rgb_map_color_rgb is correct.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login