19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid_encraw.c,v 1.11.2.3 2003-03-11 01:08:10 edgomez Exp $ |
* $Id: xvid_encraw.c,v 1.11.2.4 2003-03-11 23:39:47 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
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 |
|
|