pls
This commit is contained in:
+4
-4
@@ -79,25 +79,25 @@ ppm_save(const unsigned int* buf, const PPM img)
|
||||
}
|
||||
printf("Starting encode...\n");
|
||||
FILE* fptr;
|
||||
printf("test 1");
|
||||
printf("test 1\n");
|
||||
|
||||
if (img.fmt == '3')
|
||||
{
|
||||
fptr = fopen(img.name, "w");
|
||||
}
|
||||
printf("test 2");
|
||||
printf("test 2\n");
|
||||
if (img.fmt == '6')
|
||||
{
|
||||
fptr = fopen(img.name, "wb");
|
||||
}
|
||||
printf("test 3");
|
||||
printf("test 3\n");
|
||||
if (!fptr)
|
||||
{
|
||||
free(dst_buf);
|
||||
return 10;
|
||||
}
|
||||
|
||||
printf("test 1");
|
||||
printf("test 1\n");
|
||||
fprintf(fptr, "P%c\n%d %d\n255\n", img.fmt, img.width, img.height);
|
||||
if (img.fmt == '3')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user