【发布时间】:2016-11-02 16:14:46
【问题描述】:
我想用 renderscript 处理接收到的数据,它包含 2 个字节的标头和数百个未对齐的 3 字节样本,它们在 rs 中表示为 3 个无符号字符的向量,所以我只需要复制样本并剥离标头。
我可以不将部分数组复制到新数组并从中填充Allocation 吗?
尝试使用Allocation.copy1DRangeFrom,但现在我假设offset 参数是Allocation 本身的偏移量,而不是源数组中的偏移量。
【问题讨论】:
标签: android allocation renderscript android-renderscript