Skip to content

Commit

Permalink
fix chroma plane height for alpha image in rav1e encoder plugin (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Aug 31, 2022
1 parent e995017 commit 0020008
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libheif/heif_encoder_rav1e.cc
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ struct heif_error rav1e_encode_image(void* encoder_raw, const struct heif_image*
if (input_class == heif_image_input_class_alpha) {
chromaSampling = RA_CHROMA_SAMPLING_CS420; // I can't seem to get RA_CHROMA_SAMPLING_CS400 to work right now, unfortunately
chromaPosition = RA_CHROMA_SAMPLE_POSITION_UNKNOWN; // TODO: set to CENTER when AV1 and rav1e supports this
yShift = 1;
}
else {
switch (chroma) {
Expand Down

0 comments on commit 0020008

Please sign in to comment.