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

Function avifEncoderGetCodecType

src/write.c:1549–1555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547}
1548
1549static avifCodecType avifEncoderGetCodecType(const avifEncoder * encoder)
1550{
1551 // This asserts that images cannot be encoded with AVM unless AVIF_CODEC_CHOICE_AVM is explicitly selected.
1552 assert((encoder->codecChoice != AVIF_CODEC_CHOICE_AUTO) ||
1553 (strcmp(avifCodecName(encoder->codecChoice, AVIF_CODEC_FLAG_CAN_ENCODE), "avm") != 0));
1554 return avifCodecTypeFromChoice(encoder->codecChoice, AVIF_CODEC_FLAG_CAN_ENCODE);
1555}
1556
1557// This function is called after every color frame is encoded. It returns AVIF_TRUE if a keyframe needs to be forced for the next
1558// alpha frame to be encoded, AVIF_FALSE otherwise.

Callers 2

avifEncoderFinishFunction · 0.85

Calls 2

avifCodecNameFunction · 0.85
avifCodecTypeFromChoiceFunction · 0.85

Tested by

no test coverage detected