Skip to content

Commit

Permalink
fix lossless encoding of RGB input (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Dec 21, 2023
1 parent 94c3b21 commit 41dd0a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/heif_enc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ int main(int argc, char** argv)
heif_encoder_set_lossless(encoder, true);

if (heif_image_get_colorspace(primary_image.get()) == heif_colorspace_RGB) {
nclx_matrix_coefficients = 0;
nclx_full_range = true;
nclx->matrix_coefficients = heif_matrix_coefficients_RGB_GBR;
nclx->full_range_flag = true;
raw_params.emplace_back("chroma=444");
}
else {
Expand Down

0 comments on commit 41dd0a4

Please sign in to comment.