This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好,
使用JPEG2000 Codec:C66x_j2e_01_00_03_00_ELF,c6678 + ccs5.2
已通过该工程实现图像的编码功能,但是有些不明白之处,请问,工程里从文件读取图像码流时,读取8-bit数据copy到16-bit buffer中去,一定要这样转换吗?实际应用中,这样转存太消耗时间了,有没有参数可以控制不需要转存的?
代码中:
ptrD = imgBuf;
// copy 8-bit data into 16-bit buffer
if (bytes_per_comp == 1) {
for (i=0; i < imageLen; i++) {
*ptrD = (Word16) ((UWord8)fgetc(inFile));
ptrD = pointer_incr(ptrD,1);