MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / pgm_save

Function pgm_save

libavcodec/api-example.c:311–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 */
310
311static void pgm_save(unsigned char *buf, int wrap, int xsize, int ysize,
312 char *filename)
313{
314 FILE *f;
315 int i;
316
317 f=fopen(filename,"w");
318 fprintf(f,"P5\n%d %d\n%d\n",xsize,ysize,255);
319 for(i=0;i<ysize;i++)
320 fwrite(buf + i * wrap,1,xsize,f);
321 fclose(f);
322}
323
324static void video_decode_example(const char *outfilename, const char *filename)
325{

Callers 1

video_decode_exampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected