Merge branch 'pvc' into legacy
This commit is contained in:
commit
a6ec475a92
9 files changed
+49
-34
No files matched your search
@@ -60,6 +60,7 @@ int compress_image(char *srcf, char *dstf, int w, int h)
|
||||
fdout = open( dstf, O_TRUNC | O_CREAT | O_WRONLY , 0660 );
|
||||
if (fdout == -1) {
|
||||
printf("Cannot open file '%s' for writing\n", dstf);
|
||||
fclose(fd);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -107,5 +107,7 @@ int rgb2yuv(char *from, char *to, int width, int height)
|
||||
for ( i = 0 ; i < height ; i+=2 )
|
||||
for ( j = 0; j < width ; j +=2 )
|
||||
write ( fout,&dstV[j+(i*width)], 1);
|
||||
|
||||
free(dstV); free(dstU); free(dstY); free(src);
|
||||
return 1;
|
||||
}
|
||||
@@ -119,5 +119,6 @@ int uncompress_image(char *srcf, char *dstf)
|
||||
//printf("logotool -w %d -h %d -v %s\n", width, height, dstf);
|
||||
printf("eval PATH=$PWD:$PATH logotool -w %d -h %d -m %s\n", width, height, dstf);
|
||||
|
||||
free(dst); free(src);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user