MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / avifImageSetDefaults

Function avifImageSetDefaults

src/avif.c:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void avifImageSetDefaults(avifImage * image)
135{
136 memset(image, 0, sizeof(avifImage));
137 image->yuvRange = AVIF_RANGE_FULL;
138 image->colorPrimaries = AVIF_COLOR_PRIMARIES_UNSPECIFIED;
139 image->transferCharacteristics = AVIF_TRANSFER_CHARACTERISTICS_UNSPECIFIED;
140 image->matrixCoefficients = AVIF_MATRIX_COEFFICIENTS_UNSPECIFIED;
141}
142
143avifImage * avifImageCreate(uint32_t width, uint32_t height, uint32_t depth, avifPixelFormat yuvFormat)
144{

Callers 3

avifImageDownshiftTo8bpcFunction · 0.85
avifImageCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected