Skip to content

Commit 29f4eb7

Browse files
committed
Mark the avifGainMap struct as extensible
1 parent 6919192 commit 29f4eb7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/avif/avif.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,9 @@ typedef struct avifContentLightLevelInformationBox
624624
struct avifImage;
625625

626626
// Gain map image and associated metadata.
627-
// Must be allocated by calling avifGainMapCreate().
627+
//
628+
// NOTE: The avifGainMap struct may be extended in a future release. Code outside the libavif
629+
// library must allocate avifGainMap by calling the avifGainMapCreate() function.
628630
typedef struct avifGainMap
629631
{
630632
// Gain map pixels.
@@ -705,6 +707,8 @@ typedef struct avifGainMap
705707
// Optimal viewing conditions of the alternate image ('clli' box content
706708
// of the alternate image that the gain map was created from).
707709
avifContentLightLevelInformationBox altCLLI;
710+
711+
// Version 1.2.0 ends here. Add any new members after this line.
708712
} avifGainMap;
709713

710714
// Allocates a gain map. Returns NULL if a memory allocation failed.

0 commit comments

Comments
 (0)