阅读背景:

从已签名的字符转换为无符号字符,再返回?

来源:互联网 

I'm working with JNI and have an array of type jbyte, where jbyte is represented as an signed char i.e. ranging from -128 to 127. The jbytes represent image pixels. For image processing, we usually want pixel components to range from 0 to 255. I therefore want to convert the jbyte value to the range 0 to 255 (i.e. the same range as unsigned char), do some calculations on the value and then store the result as a jbyte again.I'm working with JNI and have an array of type




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: