答案 0 :(得分:0)
您可以编写一个内核,以通过图像的左半部分调用该内核(通过LaunchOptions),然后执行以下操作:
int imageWidth;
rs_allocation inputImage;
<yourReturnType> RS_KERNEL mirror(<yourImageType> in, uint32_t x, uint32_t y){
return rs_GetElementAt(inputImage, imageWidth - x, y);
}
您应该能够直接覆盖输入的图像,因为您只读取图像的一侧,而只写入另一侧。