Skip to content

Commit

Permalink
Support setting enumcs for CMYK and EYCC color space
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 5, 2024
1 parent 2c0823c commit 76d39b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/openjp2/jp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1995,6 +1995,10 @@ OPJ_BOOL opj_jp2_setup_encoder(opj_jp2_t *jp2,
jp2->enumcs = 17; /* greyscale */
} else if (image->color_space == 3) {
jp2->enumcs = 18; /* YUV */
} else if (image->color_space == 4) {
jp2->enumcs = 24; /* EYCC */
} else if (image->color_space == 5) {
jp2->enumcs = 12; /* CMYK */
}
}

Expand Down

0 comments on commit 76d39b7

Please sign in to comment.