Lines Matching refs:rgb
94 static avifBool setEncoderTilesAndThreads(avifEncoder *encoder, avifRGBImage *rgb) { in setEncoderTilesAndThreads() argument
98 imageArea = rgb->width * rgb->height; in setEncoderTilesAndThreads()
111 if (rgb->width >= rgb->height) { in setEncoderTilesAndThreads()
356 avifRGBImage rgb; in gdImageCreateFromAvifCtx() local
359 rgb.pixels = NULL; in gdImageCreateFromAvifCtx()
394 avifRGBImageSetDefaults(&rgb, decoder->image); in gdImageCreateFromAvifCtx()
395 rgb.depth = 8; in gdImageCreateFromAvifCtx()
397 result = avifRGBImageAllocatePixels(&rgb); in gdImageCreateFromAvifCtx()
401 avifRGBImageAllocatePixels(&rgb); in gdImageCreateFromAvifCtx()
404 result = avifImageYUVToRGB(decoder->image, &rgb); in gdImageCreateFromAvifCtx()
418 uint8_t *p = rgb.pixels; in gdImageCreateFromAvifCtx()
434 if (rgb.pixels) in gdImageCreateFromAvifCtx()
435 avifRGBImageFreePixels(&rgb); in gdImageCreateFromAvifCtx()
494 avifRGBImage rgb; in gdImageAvifCtx() local
541 avifRGBImageSetDefaults(&rgb, avifIm); in gdImageAvifCtx()
544 result = avifRGBImageAllocatePixels(&rgb); in gdImageAvifCtx()
548 avifRGBImageAllocatePixels(&rgb); in gdImageAvifCtx()
554 p = rgb.pixels; in gdImageAvifCtx()
555 for (y = 0; y < rgb.height; y++) { in gdImageAvifCtx()
556 for (x = 0; x < rgb.width; x++) { in gdImageAvifCtx()
568 result = avifImageRGBToYUV(avifIm, &rgb); in gdImageAvifCtx()
590 if (!setEncoderTilesAndThreads(encoder, &rgb)) in gdImageAvifCtx()
607 if (rgb.pixels) in gdImageAvifCtx()
608 avifRGBImageFreePixels(&rgb); in gdImageAvifCtx()