I've two buffers, named buf1 and buf2.
Buf1 contents a RGB file with this structure: R,G,B,R,G,B,...
Buf2 contents a RGBA file with this structure: R,G,B,A,R,G,B,A,...
I want to add these buffers in buf3, so that the result stored in buf3 will be the following:
Look that each component of buf3 is calculated:
(example for the first pixel addittion, the A range is from 0 to 1 (0 to 255))
(The first A is used to do the fisrt RGB calculation, the second A is used to do the second RGB calculation, .....)
How can i do that???