Hello Tom,
I think you have an incorrect NSLog-String: "%@" means that NSLog should output
the description for an ObjectivC object. Since aByte is not an object, this
will crash.
I think you have to write "%d" instead.
Achim Breidenbach
Boinx Software Ltd.
On 05.11.2012, at 16:23, 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/achim%40boinx.com
>
> 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]