| 1547 | } |
| 1548 | |
| 1549 | static 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. |
no test coverage detected