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

Function avifEncoderCreateBitDepthExtensionImage

src/write.c:1534–1547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1532}
1533
1534static 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
1549static avifCodecType avifEncoderGetCodecType(const avifEncoder * encoder)
1550{

Callers 1

Calls 2

avifImageDestroyFunction · 0.85

Tested by

no test coverage detected