@@ -77,7 +77,7 @@ class PhotometricInterpretation(IntEnum):
7777 "the value of the 'photometric_interpretation' parameter is not valid "
7878 "for the number of samples per pixel"
7979 ),
80- 10 : "the valid of the 'codec_format' paramter is invalid" ,
80+ 10 : "the valid of the 'codec_format' parameter is invalid" ,
8181 11 : "more than 100 'compression_ratios' is not supported" ,
8282 12 : "invalid item in the 'compression_ratios' value" ,
8383 13 : "invalid compression ratio, lowest value must be at least 1" ,
@@ -92,7 +92,7 @@ class PhotometricInterpretation(IntEnum):
9292 24 : "failed to create the output stream" ,
9393 25 : "failure result from 'opj_start_compress()'" ,
9494 26 : "failure result from 'opj_encode()'" ,
95- 27 : "failure result from 'opj_endt_compress ()'" ,
95+ 27 : "failure result from 'opj_end_compress ()'" ,
9696 50 : "the value of the 'bits_stored' parameter is invalid" ,
9797 51 : "the value of the 'samples_per_pixel' parameter is invalid" ,
9898 52 : "the value of the 'rows' is invalid, must be in [1, 65535]" ,
@@ -371,7 +371,7 @@ def get_parameters(
371371 ``{'columns': int, 'rows': int, 'colourspace': str,
372372 'samples_per_pixel: int, 'precision': int, `is_signed`: bool}``. Possible
373373 colour spaces are "unknown", "unspecified", "sRGB", "monochrome",
374- "YUV", "e-YCC" and "CYMK ".
374+ "YUV", "e-YCC" and "CMYK ".
375375
376376 Raises
377377 ------
@@ -500,7 +500,7 @@ def encode_array(
500500 * ``"YBR_RCT"`` for lossless encoding
501501 * ``"YBR_ICT"`` for lossy encoding
502502
503- If MCT is not applied then *Photometric Intrepretation * should be the
503+ If MCT is not applied then *Photometric Interpretation * should be the
504504 value corresponding to the unencoded dataset.
505505 compression_ratios : list[float], optional
506506 Required for lossy encoding, this is the compression ratio to use
@@ -665,7 +665,7 @@ def encode_buffer(
665665 * ``"YBR_RCT"`` for lossless encoding
666666 * ``"YBR_ICT"`` for lossy encoding
667667
668- If MCT is not applied then *Photometric Intrepretation * should be the
668+ If MCT is not applied then *Photometric Interpretation * should be the
669669 value corresponding to the unencoded dataset.
670670 compression_ratios : list[float], optional
671671 Required for lossy encoding, this is the compression ratio to use
0 commit comments