Manipulating each pixel
Hi,
completely new to the SDK.
For starters, I want to write a new effect that replaces every nth pixel with a given color.
Next, I want to write a new effect that takes the color of pixel (x, y) and sets the next n pixels to the right of pixel (x, y) to exactly that color. Basically creating a smear effect.
How can I go about that? I haven't seen a way to access pixel (x, y) of a frame.
My best guess is to use
suites.IterateSuite1()->iterate(in_data,
0, // progress base
linesL, // progress final
¶ms[SKELETON_INPUT]->u.ld, // src
NULL, // area - null for all pixels
(void*)&data, // refcon - your custom data pointer
MyMagicFunction, // pixel function pointer
output));
But MyMagicFunction will only get the information about the current pixel.
Thanks!