Skip to content

Commit

Permalink
Move the comment on 'pasp' forward
Browse files Browse the repository at this point in the history
It was added to the middle of a paragraph. It should go before that
paragraph.
  • Loading branch information
wantehchang committed Dec 20, 2024
1 parent b808fa0 commit 6201cc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -3037,11 +3037,12 @@ static avifResult avifRWStreamWriteProperties(avifItemPropertyDedup * const dedu
AVIF_RESULT_NOT_IMPLEMENTED);
}

// Based on the explanation above, 'clap', 'irot' and 'imir' have to match between the base and
// gain map image items in the container part of the encoded file.
// 'pasp' is not a transformative property (despite AVIF_TRANSFORM_PASP being part of
// avifTransformFlag) but it is assumed to apply to the gain map in the same way as
// the transformative properties above.

// Based on the explanation above, 'clap', 'irot', 'imir' and 'pasp' have to match between the base and
// gain map image items in the container part of the encoded file.
// To enforce that, the transformative and 'pasp' properties of the gain map cannot be set explicitly in the API.
AVIF_CHECKERR(itemMetadata->transformFlags == AVIF_TRANSFORM_NONE, AVIF_RESULT_ENCODE_GAIN_MAP_FAILED);
AVIF_CHECKRES(avifEncoderWriteTransformativeProperties(&dedup->s, s, imageMetadata, &item->ipma, dedup));
Expand Down

0 comments on commit 6201cc0

Please sign in to comment.