Pavel MachekCan you program GPUs and do you want to become a HERO? <a class="hashtag" href="https://social.kernel.org/tag/linuxphone" rel="nofollow noopener" target="_blank">#linuxphone</a><br>community needs your help.<br><br>We are trying record video, and have most pieces working, but one is<br>missing: fast enough debayering. That means about 23MB/sec on <a class="hashtag" href="https://social.kernel.org/tag/librem5" rel="nofollow noopener" target="_blank">#librem5</a>.<br><br>Debayering is not hard; camera images have subpixels split on two<br>lines, which need to be corrected. They also use different color<br>representation, but that's fixable by some table lookup and two matrix<br>multiplies.<br><br>Librem 5 has Vivante GPU, 4 in-order CPU cores and 3GB RAM. My feeling<br>is that it should be fast enough for that. If task is for some reason<br>impossible, that would be good to know, too.<br><br>Image data looks like this<br><br>RGRGRG...<br>xBxBxB...<br>.........<br>.........<br><br>Task is to turn that into usual rgbrgb.... format. rgb = RGB * color<br>matrix, with table lookups for better quality. I can fix that once I<br>get an example.<br><br>I'm looking for example code (#pinephone would work, too), reasons it<br>can not be done... and boosts if you have friends that can program<br>GPUs. <a class="hashtag" href="https://social.kernel.org/tag/gpu" rel="nofollow noopener" target="_blank">#gpu</a> <a class="hashtag" href="https://social.kernel.org/tag/opensource" rel="nofollow noopener" target="_blank">#opensource</a>