当前位置: 技术问答>linux和unix
NULL pointer access
来源: 互联网 发布时间:2016-03-18
本文导语: 接着上次的问题继续提问,请大家帮忙 unsigned char img[width][height] unsigned char img_out[width][height] unsigned char *in_buff width = 720; height = 288; IMG_SIZE = width*height*2; in_buff = (unsigned char*)malloc(IMG_SIZE); read(fd_ppi, in_bu...
接着上次的问题继续提问,请大家帮忙
unsigned char img[width][height]
unsigned char img_out[width][height]
unsigned char *in_buff
width = 720;
height = 288;
IMG_SIZE = width*height*2;
in_buff = (unsigned char*)malloc(IMG_SIZE);
read(fd_ppi, in_buff, IMG_SIZE);
for(i=(width-1);i>=0;i--)
for(j=0;j
unsigned char img[width][height]
unsigned char img_out[width][height]
unsigned char *in_buff
width = 720;
height = 288;
IMG_SIZE = width*height*2;
in_buff = (unsigned char*)malloc(IMG_SIZE);
read(fd_ppi, in_buff, IMG_SIZE);
for(i=(width-1);i>=0;i--)
for(j=0;j