Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
y-guyon committed Apr 11, 2024
1 parent be534d5 commit 148f165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/avif/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ typedef enum avifSampleTransformTokenType
typedef struct avifSampleTransformToken
{
uint8_t type; // avifSampleTransformTokenType
int32_t constant; // If value is AVIF_SAMPLE_TRANSFORM_CONSTANT.
int32_t constant; // If type is AVIF_SAMPLE_TRANSFORM_CONSTANT.
// Only 32-bit (bit_depth=2) constants are supported.
uint8_t inputImageItemIndex; // If value is AVIF_SAMPLE_TRANSFORM_INPUT_IMAGE_ITEM_INDEX. 1-based.
uint8_t inputImageItemIndex; // If type is AVIF_SAMPLE_TRANSFORM_INPUT_IMAGE_ITEM_INDEX. 1-based.
} avifSampleTransformToken;

AVIF_ARRAY_DECLARE(avifSampleTransformExpression, avifSampleTransformToken, tokens);
Expand Down
2 changes: 1 addition & 1 deletion src/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ static avifBool avifParseToneMappedImageBox(avifGainMapMetadata * metadata, cons
#endif // AVIF_ENABLE_EXPERIMENTAL_GAIN_MAP

#if defined(AVIF_ENABLE_EXPERIMENTAL_SAMPLE_TRANSFORM)
// bit-depth is assumed to be 2 (32-bit).
// bit_depth is assumed to be 2 (32-bit).
static avifResult avifParseSampleTransformTokens(avifROStream * s, avifSampleTransformExpression * expression)
{
uint8_t tokenCount;
Expand Down

0 comments on commit 148f165

Please sign in to comment.