Skip to content

Commit

Permalink
Use standard name for JPEG 2000
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Nov 2, 2023
1 parent c469dcb commit 47265d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/heif_convert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void list_all_decoders()
std::cout << "JPEG decoders:\n";
list_decoders(heif_compression_JPEG);

std::cout << "JPEG-2000 decoders:\n";
std::cout << "JPEG 2000 decoders:\n";
list_decoders(heif_compression_JPEG2000);

#if WITH_UNCOMPRESSED_CODEC
Expand Down
6 changes: 3 additions & 3 deletions examples/heif_enc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void show_help(const char* argv0)
<< " -p set encoder parameter (NAME=VALUE)\n"
<< " -A, --avif encode as AVIF (not needed if output filename with .avif suffix is provided)\n"
<< " --jpeg encode as JPEG\n"
<< " --jpeg2000 encode as JPEG-2000 (experimental)\n"
<< " --jpeg2000 encode as JPEG 2000 (experimental)\n"
#if WITH_UNCOMPRESSED_CODEC
<< " -U, --uncompressed encode as uncompressed image (according to ISO 23001-17) (EXPERIMENTAL)\n"
#endif
Expand Down Expand Up @@ -362,7 +362,7 @@ static const char* get_compression_format_name(heif_compression_format format)
return "JPEG";
break;
case heif_compression_JPEG2000:
return "JPEG-2000";
return "JPEG 2000";
break;
case heif_compression_uncompressed:
return "Uncompressed";
Expand Down Expand Up @@ -392,7 +392,7 @@ static void show_list_of_all_encoders()
std::cout << "JPEG";
break;
case heif_compression_JPEG2000:
std::cout << "JPEG-2000";
std::cout << "JPEG 2000";
break;
case heif_compression_uncompressed:
std::cout << "Uncompressed";
Expand Down
2 changes: 1 addition & 1 deletion libheif/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ Error HeifContext::Image::get_preferred_decoding_colorspace(heif_colorspace* out
return err;
}

// TODO: this should be codec specific. JPEG-2000, for example, can use RGB internally.
// TODO: this should be codec specific. JPEG 2000, for example, can use RGB internally.

*out_colorspace = heif_colorspace_YCbCr;
*out_chroma = heif_chroma_undefined;
Expand Down

0 comments on commit 47265d3

Please sign in to comment.