| 1532 | } |
| 1533 | |
| 1534 | static avifResult avifEncoderCreateBitDepthExtensionImage(avifEncoder * encoder, |
| 1535 | const avifEncoderItem * item, |
| 1536 | avifBool itemWillBeEncodedLosslessly, |
| 1537 | const avifImage * image, |
| 1538 | avifImage ** sampleTransformedImage) |
| 1539 | { |
| 1540 | AVIF_ASSERT_OR_RETURN(image->depth == 16); // Other bit depths could be supported but for now it is 16-bit only. |
| 1541 | *sampleTransformedImage = NULL; |
| 1542 | const avifResult result = avifEncoderCreateSatoImage(encoder, item, itemWillBeEncodedLosslessly, image, sampleTransformedImage); |
| 1543 | if (result != AVIF_RESULT_OK && *sampleTransformedImage != NULL) { |
| 1544 | avifImageDestroy(*sampleTransformedImage); |
| 1545 | } |
| 1546 | return result; |
| 1547 | } |
| 1548 | |
| 1549 | static avifCodecType avifEncoderGetCodecType(const avifEncoder * encoder) |
| 1550 | { |
no test coverage detected