Questions tagged [pest4]
The pest4 tag has no usage guidance.
4 questions
0
votes
1
answer
46
views
Filter segmentation fault
my code on Pset4 filter shows everything green with check50 command. But when I try running this "./filter -g images/yard.bmp out.bmp" it shows "segmentation fault". please can ...
1
vote
1
answer
1k
views
PEST4 Resize (less comfortable)
Could you assist me to look at my codes, no idea why after resizing small imagine,
it turns out very weird result.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#...
0
votes
1
answer
190
views
pset4 resize :- storing horizontal scanline into array
So I declared an array of type rgbtriple as in
RGBTRIPLE* buffer = malloc(sizeof(bi.biWidth));
and now i want to read in each pixel n times, so using a for loop like
for(int m = 0; m < n ; n++)
...
0
votes
1
answer
77
views
pset4 recover invalid file
int main()
{
FILE* raw = fopen("card.raw","r");
if( raw == NULL)
{
printf("ERROR OPENING\n");
}
uint8_t buffer[512];
while(fread(buffer,1,512,raw)==512)
{
...