mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Corrected information recently added to the man page about row
pointer usage.
This commit is contained in:
parent
ed3543679a
commit
f0341bae80
6
CHANGES
6
CHANGES
@ -5011,7 +5011,11 @@ Version 1.7.0beta51 [February 17, 2015]
|
|||||||
with a method that prevents overflow and does not increase cpu usage
|
with a method that prevents overflow and does not increase cpu usage
|
||||||
significantly.
|
significantly.
|
||||||
|
|
||||||
Version 1.7.0beta52 [February 17, 2015]
|
Version 1.7.0beta52 [February 18, 2015]
|
||||||
|
Added information about setjmp/simplified API interaction in the
|
||||||
|
manual page and INSTALL file. Added information about using
|
||||||
|
row_pointers with a single height*width*bpp allocated block
|
||||||
|
to the manual page.
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@ -1185,13 +1185,10 @@ row_pointers prior to calling png_read_png() with
|
|||||||
png_set_rows(png_ptr, info_ptr, &row_pointers);
|
png_set_rows(png_ptr, info_ptr, &row_pointers);
|
||||||
|
|
||||||
Alternatively you could allocate your image in one big block and define
|
Alternatively you could allocate your image in one big block and define
|
||||||
row_pointers[i] to point into the proper places in your block. Allocate
|
row_pointers[i] to point into the proper places in your block. If
|
||||||
extra memory after the last row to leave working room for reading the
|
you do this, be sure to call png_read_update_info() described below,
|
||||||
entire row if you are doing reductions such as 16-to-8 or rgb-to-gray.
|
to update the "rowbytes" value to account for any transformations that
|
||||||
In the worst case, reducing 16-bit RGBA to 8-bit gray, you'd need to
|
change the number of bytes per row before you use it to allocate your block.
|
||||||
allocate seven extra rows worth of memory (you don't need extra memory
|
|
||||||
for any but the last row, because for other rows the working space just
|
|
||||||
overlaps the next row(s).
|
|
||||||
|
|
||||||
If you use png_set_rows(), the application is responsible for freeing
|
If you use png_set_rows(), the application is responsible for freeing
|
||||||
row_pointers (and row_pointers[i], if they were separately allocated).
|
row_pointers (and row_pointers[i], if they were separately allocated).
|
||||||
|
|||||||
11
libpng.3
11
libpng.3
@ -1679,13 +1679,10 @@ row_pointers prior to calling png_read_png() with
|
|||||||
png_set_rows(png_ptr, info_ptr, &row_pointers);
|
png_set_rows(png_ptr, info_ptr, &row_pointers);
|
||||||
|
|
||||||
Alternatively you could allocate your image in one big block and define
|
Alternatively you could allocate your image in one big block and define
|
||||||
row_pointers[i] to point into the proper places in your block. Allocate
|
row_pointers[i] to point into the proper places in your block. If
|
||||||
extra memory after the last row to leave working room for reading the
|
you do this, be sure to call png_read_update_info() described below,
|
||||||
entire row if you are doing reductions such as 16-to-8 or rgb-to-gray.
|
to update the "rowbytes" value to account for any transformations that
|
||||||
In the worst case, reducing 16-bit RGBA to 8-bit gray, you'd need to
|
change the number of bytes per row before you use it to allocate your block.
|
||||||
allocate seven extra rows worth of memory (you don't need extra memory
|
|
||||||
for any but the last row, because for other rows the working space just
|
|
||||||
overlaps the next row(s).
|
|
||||||
|
|
||||||
If you use png_set_rows(), the application is responsible for freeing
|
If you use png_set_rows(), the application is responsible for freeing
|
||||||
row_pointers (and row_pointers[i], if they were separately allocated).
|
row_pointers (and row_pointers[i], if they were separately allocated).
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
.TH LIBPNGPF 3 "February 17, 2015"
|
.TH LIBPNGPF 3 "February 18, 2015"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0beta52
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0beta52
|
||||||
(private functions)
|
(private functions)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user