26 |
/***************************************************************************** |
/***************************************************************************** |
27 |
* Application notes : |
* Application notes : |
28 |
* |
* |
29 |
* A sequence of YUV pics in PGM file format is encoded and decoded |
* A sequence of raw YUV I420 pics or YUV I420 PGM file format is encoded |
30 |
* The speed is measured and PSNR of decoded picture is calculated. |
* The speed is measured and frames' PSNR are taken from core. |
31 |
* |
* |
32 |
* The program is plain C and needs no libraries except for libxvidcore, |
* The program is plain C and needs no libraries except for libxvidcore, |
33 |
* and maths-lib. |
* and maths-lib. |
435 |
} |
} |
436 |
} |
} |
437 |
|
|
438 |
|
filenr++; |
439 |
|
|
440 |
next_frame: |
next_frame: |
441 |
/* Read the header if it's pgm stream */ |
/* Read the header if it's pgm stream */ |
442 |
if (ARG_INPUTTYPE) |
if (ARG_INPUTTYPE) |
443 |
status = read_pgmheader(in_file); |
status = read_pgmheader(in_file); |
444 |
|
|
|
filenr++; |
|
|
|
|
445 |
} while ( (!status) && (filenr<ARG_MAXFRAMENR) ); |
} while ( (!status) && (filenr<ARG_MAXFRAMENR) ); |
446 |
|
|
447 |
|
|