Skip to content

Commit

Permalink
Add comment about stride params of HalfFloatPlane
Browse files Browse the repository at this point in the history
  • Loading branch information
wantehchang authored Aug 8, 2024
1 parent df5325a commit 9cd0993
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reformat_libyuv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,7 @@ avifResult avifRGBImageUnpremultiplyAlphaLibYUV(avifRGBImage * rgb)
avifResult avifRGBImageToF16LibYUV(avifRGBImage * rgb)
{
const float scale = 1.0f / ((1 << rgb->depth) - 1);
// Note: HalfFloatPlane requires the stride to be in bytes.
const int result = HalfFloatPlane((const uint16_t *)rgb->pixels,
rgb->rowBytes,
(uint16_t *)rgb->pixels,
Expand Down

0 comments on commit 9cd0993

Please sign in to comment.