Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions JPEG/config/cmake/binex/example/h5ex_d_jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define DIM0 512
#define DIM1 1024
#define NUM_IMAGES 10
#define JPEG_QUALITY 100
#define JPEG_QUALITY 50
#define CHUNK0 1
#define CHUNK1 DIM0
#define CHUNK2 DIM1
Expand Down Expand Up @@ -58,7 +58,7 @@ main(void)
/* Number of columns */
/* Number of rows */
/* Color mode (0=Mono, 1=RGB) */
const unsigned int cd_values[4] = {JPEG_QUALITY, DIM0, DIM1, 0}; /* jpeg default level is 2 */
const unsigned int cd_values[4] = {JPEG_QUALITY, DIM0, DIM1, 0};
unsigned int values_out[4] = {99, 99, 99, 99};
unsigned char *wdata; /* Write buffer */
unsigned char *rdata; /* Read buffer */
Expand Down Expand Up @@ -187,7 +187,7 @@ main(void)
switch (filter_id) {
case H5Z_FILTER_JPEG:
printf("%d\n", filter_id);
printf(" Number of parameters is %d with the value %u\n", nelmts, values_out[0]);
printf(" Number of parameters is %zu with the value %u\n", nelmts, values_out[0]);
printf(" To find more about the filter check %s\n", filter_name);
break;
default:
Expand Down
6 changes: 3 additions & 3 deletions config/cmake/binex/example/h5ex_d_jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define DIM0 512
#define DIM1 1024
#define NUM_IMAGES 10
#define JPEG_QUALITY 100
#define JPEG_QUALITY 50
#define CHUNK0 1
#define CHUNK1 DIM0
#define CHUNK2 DIM1
Expand Down Expand Up @@ -58,7 +58,7 @@ main(void)
/* Number of columns */
/* Number of rows */
/* Color mode (0=Mono, 1=RGB) */
const unsigned int cd_values[4] = {JPEG_QUALITY, DIM0, DIM1, 0}; /* jpeg default level is 2 */
const unsigned int cd_values[4] = {JPEG_QUALITY, DIM0, DIM1, 0};
unsigned int values_out[4] = {99, 99, 99, 99};
unsigned char *wdata; /* Write buffer */
unsigned char *rdata; /* Read buffer */
Expand Down Expand Up @@ -187,7 +187,7 @@ main(void)
switch (filter_id) {
case H5Z_FILTER_JPEG:
printf("%d\n", filter_id);
printf(" Number of parameters is %d with the value %u\n", nelmts, values_out[0]);
printf(" Number of parameters is %zu with the value %u\n", nelmts, values_out[0]);
printf(" To find more about the filter check %s\n", filter_name);
break;
default:
Expand Down
Loading