Lines Matching refs:encoder
94 static avifBool setEncoderTilesAndThreads(avifEncoder *encoder, avifRGBImage *rgb) { in setEncoderTilesAndThreads() argument
112 encoder->tileRowsLog2 = tilesLog2 / 2; in setEncoderTilesAndThreads()
113 encoder->tileColsLog2 = tilesLog2 - encoder->tileRowsLog2; in setEncoderTilesAndThreads()
115 encoder->tileColsLog2 = tilesLog2 / 2; in setEncoderTilesAndThreads()
116 encoder->tileRowsLog2 = tilesLog2 - encoder->tileColsLog2; in setEncoderTilesAndThreads()
120 encoderTiles = (1 << encoder->tileRowsLog2) * (1 << encoder->tileColsLog2); in setEncoderTilesAndThreads()
121 encoder->maxThreads = encoderTiles; in setEncoderTilesAndThreads()
497 avifEncoder *encoder = NULL; in gdImageAvifCtx() local
574 encoder = avifEncoderCreate(); in gdImageAvifCtx()
576 if (encoder == NULL) { in gdImageAvifCtx()
584 encoder->minQuantizer = quantizerQuality; in gdImageAvifCtx()
585 encoder->maxQuantizer = quantizerQuality; in gdImageAvifCtx()
586 encoder->minQuantizerAlpha = quantizerQuality; in gdImageAvifCtx()
587 encoder->maxQuantizerAlpha = quantizerQuality; in gdImageAvifCtx()
588 encoder->speed = speed; in gdImageAvifCtx()
590 if (!setEncoderTilesAndThreads(encoder, &rgb)) in gdImageAvifCtx()
594 result = avifEncoderAddImage(encoder, avifIm, 1, AVIF_ADD_IMAGE_FLAG_SINGLE); in gdImageAvifCtx()
598 result = avifEncoderFinish(encoder, &avifOutput); in gdImageAvifCtx()
610 if (encoder) in gdImageAvifCtx()
611 avifEncoderDestroy(encoder); in gdImageAvifCtx()