Skip to content

Commit

Permalink
Update a comment in avifImageYUVAnyToRGBAnySlow()
Browse files Browse the repository at this point in the history
The following comment in avifImageYUVAnyToRGBAnySlow()

  // Monochrome: ... (identity mode is irrelevant)

added in commit ca2c34d, was written when avifReformatMode had only two
values (the default mode and identity mode). Now avifReformatMode has 3
values (or 5 if AVIF_ENABLE_EXPERIMENTAL_YCGCO_R is defined). Instead of
enumerating all the non-default modes in the comment, just change
"identity mode" to "state->mode".
  • Loading branch information
wantehchang committed Aug 2, 2023
1 parent 397f74c commit 6443c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ static avifResult avifImageYUVAnyToRGBAnySlow(const avifImage * image,
G = Y - ((2 * ((kr * (1 - kr) * Cr) + (kb * (1 - kb) * Cb))) / kg);
}
} else {
// Monochrome: just populate all channels with luma (identity mode is irrelevant)
// Monochrome: just populate all channels with luma (state->mode is irrelevant)
R = Y;
G = Y;
B = Y;
Expand Down

0 comments on commit 6443c22

Please sign in to comment.