Skip to content

Commit

Permalink
AVIF: fix settings chroma position for rav1e alpha images (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Jul 12, 2021
1 parent 487c3d8 commit 5fdba25
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 @@ -520,6 +520,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
}
else {
switch (chroma) {
Expand Down

0 comments on commit 5fdba25

Please sign in to comment.