if (vImageScale_ARGB8888(&buffer, &vDestBuffer, NULL, 0))
One thing that won't work is your vImage-Scalling algorithm, because you are using the ARGB variant (4 bytes per pixel) and putting in a RGB (3-byte per pixel) buffer with vDestBuffer. I thinkk this is why you are getting all those colors, because the vImage-scaling scales an 4 byte pixel into a 3 byte pixel which won't work. Maybe you should post your code again here, so we can have a closer look at your current implementation.

Ok,

so my understanding so far is that with

if (![imageToUse lockBufferRepresentationWithPixelFormat:QCPlugInPixelFormatBGRA8
colorSpace:colorSpace
forBounds:[imageToUse imageBounds]])
    {

        NSLog(@"Locking of image failed.");
        return NO;

    }


I am locking the incoming source image.

So whatever I am specifying for the PixelFormat (here QCPlugInPixelFormatBGRA8) is the format the source image is being locked in for the source buffer, right?

I already tried to change the format to QCPlugInPixelFormatARGB8 - it didn't make much difference...



--
Christophe Leske
multimedial.de

----------------------------------------
www.multimedial.de - i...@multimedial.de
Hohler Strasse 17 - 51645 Gummersbach
+49(0)2261-99824540 // +49(0)177-2497031
----------------------------------------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to