Skip to content

Commit

Permalink
List AVIF_COLOR_PRIMARIES_SRGB after BT709
Browse files Browse the repository at this point in the history
This order suggests that AVIF_COLOR_PRIMARIES_BT709 is the main name of
the constant and AVIF_COLOR_PRIMARIES_SRGB is an alias. The association
of color_primaries value 1 with BT.709 is well known.
  • Loading branch information
wantehchang committed Dec 12, 2023
1 parent cd6bad8 commit 55e948a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/avif/avif.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ enum
// This is actually reserved, but libavif uses it as a sentinel value.
AVIF_COLOR_PRIMARIES_UNKNOWN = 0,

AVIF_COLOR_PRIMARIES_SRGB = 1,
AVIF_COLOR_PRIMARIES_BT709 = 1,
AVIF_COLOR_PRIMARIES_SRGB = 1,
AVIF_COLOR_PRIMARIES_IEC61966_2_4 = 1,
AVIF_COLOR_PRIMARIES_UNSPECIFIED = 2,
AVIF_COLOR_PRIMARIES_BT470M = 4,
Expand Down

0 comments on commit 55e948a

Please sign in to comment.