[devel] Correct png_get_current_row_number documentation
This commit is contained in:
parent
9616ad9828
commit
cd11345693
@ -1563,6 +1563,14 @@ supported if user transforms are supported, secondly they may well return
|
|||||||
unexpected results unless the row is actually being processed at the moment they
|
unexpected results unless the row is actually being processed at the moment they
|
||||||
are called.
|
are called.
|
||||||
|
|
||||||
|
With interlaced
|
||||||
|
images the value returned is the row in the input sub-image image. Use
|
||||||
|
PNG_ROW_FROM_PASS_ROW(row, pass) and PNG_COL_FROM_PASS_COL(col, pass) to
|
||||||
|
find the output pixel (x,y) given an interlaced sub-image pixel (row,col,pass).
|
||||||
|
|
||||||
|
The discussion of interlace handling above contains more information on how to
|
||||||
|
use these values.
|
||||||
|
|
||||||
You can also set up a pointer to a user structure for use by your
|
You can also set up a pointer to a user structure for use by your
|
||||||
callback function, and you can inform libpng that your transform
|
callback function, and you can inform libpng that your transform
|
||||||
function will change the number of channels or bit depth with the
|
function will change the number of channels or bit depth with the
|
||||||
@ -2821,9 +2829,15 @@ libpng also supplies an information routine that may be called from
|
|||||||
your callback:
|
your callback:
|
||||||
|
|
||||||
png_get_current_row_number(png_ptr);
|
png_get_current_row_number(png_ptr);
|
||||||
|
png_get_current_pass_number(png_ptr);
|
||||||
|
|
||||||
This returns the current row passed to the transform. Even with interlaced
|
This returns the current row passed to the transform. With interlaced
|
||||||
images the value returned is the row in the final output image.
|
images the value returned is the row in the input sub-image image. Use
|
||||||
|
PNG_ROW_FROM_PASS_ROW(row, pass) and PNG_COL_FROM_PASS_COL(col, pass) to
|
||||||
|
find the output pixel (x,y) given an interlaced sub-image pixel (row,col,pass).
|
||||||
|
|
||||||
|
The discussion of interlace handling above contains more information on how to
|
||||||
|
use these values.
|
||||||
|
|
||||||
You can also set up a pointer to a user structure for use by your
|
You can also set up a pointer to a user structure for use by your
|
||||||
callback function.
|
callback function.
|
||||||
|
18
libpng.3
18
libpng.3
@ -2490,6 +2490,14 @@ supported if user transforms are supported, secondly they may well return
|
|||||||
unexpected results unless the row is actually being processed at the moment they
|
unexpected results unless the row is actually being processed at the moment they
|
||||||
are called.
|
are called.
|
||||||
|
|
||||||
|
With interlaced
|
||||||
|
images the value returned is the row in the input sub-image image. Use
|
||||||
|
PNG_ROW_FROM_PASS_ROW(row, pass) and PNG_COL_FROM_PASS_COL(col, pass) to
|
||||||
|
find the output pixel (x,y) given an interlaced sub-image pixel (row,col,pass).
|
||||||
|
|
||||||
|
The discussion of interlace handling above contains more information on how to
|
||||||
|
use these values.
|
||||||
|
|
||||||
You can also set up a pointer to a user structure for use by your
|
You can also set up a pointer to a user structure for use by your
|
||||||
callback function, and you can inform libpng that your transform
|
callback function, and you can inform libpng that your transform
|
||||||
function will change the number of channels or bit depth with the
|
function will change the number of channels or bit depth with the
|
||||||
@ -3748,9 +3756,15 @@ libpng also supplies an information routine that may be called from
|
|||||||
your callback:
|
your callback:
|
||||||
|
|
||||||
png_get_current_row_number(png_ptr);
|
png_get_current_row_number(png_ptr);
|
||||||
|
png_get_current_pass_number(png_ptr);
|
||||||
|
|
||||||
This returns the current row passed to the transform. Even with interlaced
|
This returns the current row passed to the transform. With interlaced
|
||||||
images the value returned is the row in the final output image.
|
images the value returned is the row in the input sub-image image. Use
|
||||||
|
PNG_ROW_FROM_PASS_ROW(row, pass) and PNG_COL_FROM_PASS_COL(col, pass) to
|
||||||
|
find the output pixel (x,y) given an interlaced sub-image pixel (row,col,pass).
|
||||||
|
|
||||||
|
The discussion of interlace handling above contains more information on how to
|
||||||
|
use these values.
|
||||||
|
|
||||||
You can also set up a pointer to a user structure for use by your
|
You can also set up a pointer to a user structure for use by your
|
||||||
callback function.
|
callback function.
|
||||||
|
Loading…
Reference in New Issue
Block a user