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()
396 avifRGBImageAllocatePixels(&rgb); in gdImageCreateFromAvifCtx()
398 result = avifImageYUVToRGB(decoder->image, &rgb); in gdImageCreateFromAvifCtx()
412 uint8_t *p = rgb.pixels; in gdImageCreateFromAvifCtx()
428 if (rgb.pixels) in gdImageCreateFromAvifCtx()
429 avifRGBImageFreePixels(&rgb); in gdImageCreateFromAvifCtx()
488 avifRGBImage rgb; in gdImageAvifCtx() local
530 avifRGBImageSetDefaults(&rgb, avifIm); in gdImageAvifCtx()
532 avifRGBImageAllocatePixels(&rgb); in gdImageAvifCtx()
537 p = rgb.pixels; in gdImageAvifCtx()
538 for (y = 0; y < rgb.height; y++) { in gdImageAvifCtx()
539 for (x = 0; x < rgb.width; x++) { in gdImageAvifCtx()
551 result = avifImageRGBToYUV(avifIm, &rgb); in gdImageAvifCtx()
567 if (!setEncoderTilesAndThreads(encoder, &rgb)) in gdImageAvifCtx()
584 if (rgb.pixels) in gdImageAvifCtx()
585 avifRGBImageFreePixels(&rgb); in gdImageAvifCtx()