Hi Christophe,

look at this line:

> -->                NSLog ( @"RGB value of pixel %@", aByte); // patch crashes 
> here

The "%@" stands for a NSString. You need to put "%c" in there for the type 
"Byte".

Christoph Vonrhein


On Nov 5, 2012, at 10:23 AM, Christophe Leske wrote:

> Hi Tom,
> 
> thank zou verz much, that was what I am after!
> 
> I am trzing to read out the pixel values from a vImage_Buffer, but can't seem 
> to find the way to do this:
> 
> 
> 
>       NSLog ( @"Scaling ok");        // show me the pixels of the new image!
> 
>       for(int y=0;y<vDestBuffer.height;y++)
>       {
>           for(int x=0;x<vDestBuffer.width;x+=4)
>           {
>               // we jump in 4 bytes, as we have an BRGA8 format
>               Byte aByte = &buffer.data;
> 
> -->                NSLog ( @"RGB value of pixel %@", aByte); // patch crashes 
> here
> 
>           }
>       }
> 
> 
> WHat am I doing wrong? I want to read out the individual bytes from the 
> pointer passed. Apart from not increment the pointer, what am I missing here?
> It must be something very obvious?
> 
> 
> --
> Christophe Leske
> multimedial.de
> 
> ----------------------------------------
> www.multimedial.de - [email protected]
> 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      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/quartzcomposer-dev/chv%40chv-electronics.de
> 
> This email sent to [email protected]

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

This email sent to [email protected]

Reply via email to