Skip to content

Commit

Permalink
documentation formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
arrufat committed Feb 29, 2024
1 parent 66463c2 commit c97f284
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions dlib/image_loader/jxl_loader_abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ namespace dlib
);
/*!
ensures
- loads the JPEG XL from memory imgbuffer of size buffersize into this object
- loads the JPEG XL from memory imgbuffer of size buffersize into
this object
throws
- image_load_error
This exception is thrown if there is some error that prevents
Expand Down Expand Up @@ -104,7 +105,8 @@ namespace dlib
) const;
/*!
ensures
- if (this object contains a grayscale image without an alpha channel) then
- if (this object contains a grayscale image without an alpha channel)
then
- returns true
- else
- returns false
Expand Down
12 changes: 6 additions & 6 deletions dlib/image_saver/save_jxl_abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ namespace dlib
- image[image.nr()-1][image.nc()-1] will be in the lower right corner of the
image.
- This routine can save images containing any type of pixel. However,
save_jxl() can only natively store rgb_pixel, rgb_alpha_pixel and unsigned char
pixel types. All other pixel types will be converted into one of these types as
appropriate before being saved to disk.
save_jxl() can only natively store rgb_pixel, rgb_alpha_pixel and unsigned
char pixel types. All other pixel types will be converted into one of
these types as appropriate before being saved to disk.
- The quality value determines how lossy the compression is. Larger quality
values result in larger output images but the images will look better.
Although it can range from 0 to 100, the recommended range is between 68 and 96.
A value of 90 means visually lossless, while a value of 100 means mathematically
lossless.
Although it can range from 0 to 100, the recommended range is between
68 and 96. A value of 90 means visually lossless, while a value of 100
means mathematically lossless.
throws
- image_save_error
This exception is thrown if there is an error that prevents us from saving
Expand Down

0 comments on commit c97f284

Please sign in to comment.