/* stats.c, coding statistics */ /* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */ /* * Disclaimer of Warranty * * These software programs are available to the user without any license fee or * royalty on an "as is" basis. The MPEG Software Simulation Group disclaims * any and all warranties, whether express, implied, or statuary, including any * implied warranties or merchantability or of fitness for a particular * purpose. In no event shall the copyright-holder be liable for any * incidental, punitive, or consequential damages of any kind whatsoever * arising from the use of these programs. * * This disclaimer of warranty extends to the user of these programs and user's * customers, employees, agents, transferees, successors, and assigns. * * The MPEG Software Simulation Group does not represent or warrant that the * programs furnished hereunder are free of infringement of any third-party * patents. * * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware, * are subject to royalty fees to patent holders. Many of these patents are * general enough such that they are unavoidable regardless of implementation * design. * */ #include #include #include "config.h" #include "global.h" /* private prototypes */ void calcSNR(org,rec) unsigned char *org[3]; unsigned char *rec[3]; { } #if 0 static void calcSNR1 _ANSI_ARGS_((unsigned char *org, unsigned char *rec, int lx, int w, int h, double *pv, double *pe)); static void calcSNR1(org,rec,lx,w,h,pv,pe) unsigned char *org; unsigned char *rec; int lx,w,h; double *pv,*pe; { int i, j; double v1, s1, s2, e2; s1 = s2 = e2 = 0.0; for (j=0; j