Skip to content

Commit

Permalink
note "shift" in vips_cast_*() docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcupitt committed Feb 18, 2025
1 parent ee7f877 commit 7228c33
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions libvips/conversion/cast.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ vips_cast(VipsImage *in, VipsImage **out, VipsBandFormat format, ...)
* @out: (out): output image
* @...: %NULL-terminated list of optional named arguments
*
* Optional arguments:
*
* * @shift: %gboolean, integer values are shifted
*
* Convert @in to #VIPS_FORMAT_UCHAR. See vips_cast().
*
* Returns: 0 on success, -1 on error
Expand All @@ -626,6 +630,10 @@ vips_cast_uchar(VipsImage *in, VipsImage **out, ...)
* @out: (out): output image
* @...: %NULL-terminated list of optional named arguments
*
* Optional arguments:
*
* * @shift: %gboolean, integer values are shifted
*
* Convert @in to #VIPS_FORMAT_CHAR. See vips_cast().
*
* Returns: 0 on success, -1 on error
Expand All @@ -649,6 +657,10 @@ vips_cast_char(VipsImage *in, VipsImage **out, ...)
* @out: (out): output image
* @...: %NULL-terminated list of optional named arguments
*
* Optional arguments:
*
* * @shift: %gboolean, integer values are shifted
*
* Convert @in to #VIPS_FORMAT_USHORT. See vips_cast().
*
* Returns: 0 on success, -1 on error
Expand All @@ -672,6 +684,10 @@ vips_cast_ushort(VipsImage *in, VipsImage **out, ...)
* @out: (out): output image
* @...: %NULL-terminated list of optional named arguments
*
* Optional arguments:
*
* * @shift: %gboolean, integer values are shifted
*
* Convert @in to #VIPS_FORMAT_SHORT. See vips_cast().
*
* Returns: 0 on success, -1 on error
Expand All @@ -695,6 +711,10 @@ vips_cast_short(VipsImage *in, VipsImage **out, ...)
* @out: (out): output image
* @...: %NULL-terminated list of optional named arguments
*
* Optional arguments:
*
* * @shift: %gboolean, integer values are shifted
*
* Convert @in to #VIPS_FORMAT_UINT. See vips_cast().
*
* Returns: 0 on success, -1 on error
Expand All @@ -718,6 +738,10 @@ vips_cast_uint(VipsImage *in, VipsImage **out, ...)
* @out: (out): output image
* @...: %NULL-terminated list of optional named arguments
*
* Optional arguments:
*
* * @shift: %gboolean, integer values are shifted
*
* Convert @in to #VIPS_FORMAT_INT. See vips_cast().
*
* Returns: 0 on success, -1 on error
Expand Down

0 comments on commit 7228c33

Please sign in to comment.