Skip to content

Commit

Permalink
Document avifRGBImage initialization requirement
Browse files Browse the repository at this point in the history
This gives us an option to repurpose some of the bits of an existing
member if we ever need to add a new member.
  • Loading branch information
wantehchang committed Aug 25, 2023
1 parent 02b4258 commit 9f6a091
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/avif/avif.h
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ typedef enum avifChromaDownsampling
AVIF_CHROMA_DOWNSAMPLING_SHARP_YUV = 4 // Uses sharp yuv filter (libsharpyuv), available for 4:2:0 only, ignored for 4:2:2
} avifChromaDownsampling;

// NOTE: avifRGBImage must be initialized with avifRGBImageSetDefaults() or memset() before use.
typedef struct avifRGBImage
{
uint32_t width; // must match associated avifImage
Expand Down

0 comments on commit 9f6a091

Please sign in to comment.