PF_WORLD_IS_DEEP strange behavior
Hi. I have a project with an adjustment layer containing my plugin. Under it are 2 TIFF image files. The comp settings are 16-bit
if (PF_WORLD_IS_DEEP(output))
ERR(suites.IterateSuite1()->AEGP_IterateGeneric(output->height, &c_data, CopyWorld));
I click on the TIFF image files and move them in the viewer window. The render gets triggered, and the 16-bit function is called.
However, the rowbytes are passed as half the length it should be (8-bit data instead of 16-bit data). This causes a crash as the rowbytes are now half the length that I have assumed.
Is this expected behaviour? For reference the pointer increment is where the crash occurs.
for (int x = 0; x < c_data->dest->width; x++) {
*out_pixel++ = (*in_pixel++); // alpha
*out_pixel++ = (*in_pixel++); // red
*out_pixel++ = (*in_pixel++); // green
*out_pixel++ = (*in_pixel++); // blue
}