Skip to content

Commit

Permalink
kvazaar: force chroma to 4:2:0 (#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 12, 2024
1 parent 65b0e04 commit 1a7f674
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libheif/plugins/encoder_kvazaar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,8 @@ static void kvazaar_query_input_colorspace2(void* encoder_raw, heif_colorspace*
}
else {
*colorspace = heif_colorspace_YCbCr;
if (*chroma != heif_chroma_420 &&
*chroma != heif_chroma_422 &&
*chroma != heif_chroma_444) {
if (*chroma != heif_chroma_420) {
// Encoding to 4:2:2 and 4:4:4 currently does not work with Kvazaar (https://github.com/ultravideo/kvazaar/issues/418).
*chroma = heif_chroma_420;
}
}
Expand Down

0 comments on commit 1a7f674

Please sign in to comment.