Skip to content

Commit

Permalink
README.md: fixed int->size_t change
Browse files Browse the repository at this point in the history
\+ fixed a typo
  • Loading branch information
MartinPulec committed Mar 18, 2024
1 parent 9e3bb6f commit 3d79985
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ already allocated and encoder will used them for every image. Now we need
raw image data that we can encode by encoder, for example we can load it
from file:

int image_size = 0;
size_t image_size = 0;
uint8_t* input_image = NULL;
if ( gpujpeg_image_load_from_file("input_image.rgb", &input_image,
&image_size) != 0 )
Expand Down Expand Up @@ -337,7 +337,7 @@ even the first image:

If you want to specify output image color space and/or subsampling factor,
you can use following two parameters. You can specify them though the
param structure befor passing it to `gpujpeg_decoder_init`. But if you
param structure before passing it to `gpujpeg_decoder_init`. But if you
postpone this initialization process to the first image, you have no
other option than specify them in this way:

Expand All @@ -348,7 +348,7 @@ other option than specify them in this way:
Next we have to load JPEG image data from file and decoded it to raw
image data:

int image_size = 0;
size_t image_size = 0;
uint8_t* image = NULL;
if ( gpujpeg_image_load_from_file("input_image.jpg", &image,
&image_size) != 0 )
Expand Down

0 comments on commit 3d79985

Please sign in to comment.