[devel] Changed pngvalid to work when floating point APIs are disabled
This commit is contained in:
parent
b5b38edf30
commit
15333cd28d
1
ANNOUNCE
1
ANNOUNCE
@ -383,6 +383,7 @@ Version 1.5.0beta45 [August 24, 2010]
|
|||||||
what it calls an "authoring error". The change to make pnglibconf.h
|
what it calls an "authoring error". The change to make pnglibconf.h
|
||||||
simply copies the file; in the future it may actually generate the
|
simply copies the file; in the future it may actually generate the
|
||||||
file from scripts/pnglibconf.dfa as the other build systems do.
|
file from scripts/pnglibconf.dfa as the other build systems do.
|
||||||
|
Changed pngvalid to work when floating point APIs are disabled
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
1
CHANGES
1
CHANGES
@ -3020,6 +3020,7 @@ Version 1.5.0beta45 [August 24, 2010]
|
|||||||
what it calls an "authoring error". The change to make pnglibconf.h
|
what it calls an "authoring error". The change to make pnglibconf.h
|
||||||
simply copies the file; in the future it may actually generate the
|
simply copies the file; in the future it may actually generate the
|
||||||
file from scripts/pnglibconf.dfa as the other build systems do.
|
file from scripts/pnglibconf.dfa as the other build systems do.
|
||||||
|
Changed pngvalid to work when floating point APIs are disabled
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
@ -3078,7 +3078,15 @@ gamma_test(png_modifier *pmIn, PNG_CONST png_byte colour_typeIn,
|
|||||||
pp = set_modifier_for_read(d.pm, &pi, d.this.id, name);
|
pp = set_modifier_for_read(d.pm, &pi, d.this.id, name);
|
||||||
|
|
||||||
/* Set up gamma processing. */
|
/* Set up gamma processing. */
|
||||||
|
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
||||||
png_set_gamma(pp, d.screen_gamma, d.file_gamma);
|
png_set_gamma(pp, d.screen_gamma, d.file_gamma);
|
||||||
|
#else
|
||||||
|
{
|
||||||
|
png_fixed_point s = floor(d.screen_gamma*100000+.5);
|
||||||
|
png_fixed_point f = floor(d.file_gamma*100000+.5);
|
||||||
|
png_set_gamma_fixed(pp, s, f);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Introduce the correct read function. */
|
/* Introduce the correct read function. */
|
||||||
if (d.pm->this.progressive)
|
if (d.pm->this.progressive)
|
||||||
|
Loading…
Reference in New Issue
Block a user