[cvs] / xvidcore / src / plugins / plugin_psnr.c Repository:
ViewVC logotype

Diff of /xvidcore/src/plugins/plugin_psnr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.5, Wed Oct 1 23:23:01 2003 UTC revision 1.3, Tue Mar 9 10:00:14 2010 UTC
# Line 1  Line 1 
1  /*****************************************************************************  /*****************************************************************************
2   *   *
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - XviD plugin: outputs PSNR to stdout (should disapear soon)  -   *  - Xvid plugin: outputs PSNR to stdout (should disapear soon)  -
5   *   *
6   *  Copyright(C) 2003 Peter Ross <pross@xvid.org>   *  Copyright(C) 2003 Peter Ross <pross@xvid.org>
7   *   *
# Line 31  Line 31 
31    
32  int xvid_plugin_psnr(void * handle, int opt, void * param1, void * param2)  int xvid_plugin_psnr(void * handle, int opt, void * param1, void * param2)
33  {  {
34      switch(opt)      switch(opt) {
     {  
35      case XVID_PLG_INFO :      case XVID_PLG_INFO :
36          {          {
37          xvid_plg_info_t * info = (xvid_plg_info_t*)param1;          xvid_plg_info_t * info = (xvid_plg_info_t*)param1;
38          info->flags = XVID_REQPSNR;          info->flags = XVID_REQPSNR;
39          return 0;                  return(0);
40          }          }
   
41      case XVID_PLG_CREATE :      case XVID_PLG_CREATE :
42                    *((void**)param2) = NULL; /* We don't have any private data to bind here */
43      case XVID_PLG_DESTROY :      case XVID_PLG_DESTROY :
44      case XVID_PLG_BEFORE :      case XVID_PLG_BEFORE :
45         return 0;          case XVID_PLG_FRAME:
46                    return(0);
47      case XVID_PLG_AFTER :      case XVID_PLG_AFTER :
48         {         {
49         xvid_plg_data_t * data = (xvid_plg_data_t*)param1;         xvid_plg_data_t * data = (xvid_plg_data_t*)param1;
# Line 54  Line 53 
53             sse_to_PSNR(data->sse_u, data->width*data->height/4),             sse_to_PSNR(data->sse_u, data->width*data->height/4),
54             sse_to_PSNR(data->sse_v, data->width*data->height/4));             sse_to_PSNR(data->sse_v, data->width*data->height/4));
55    
56         return 0;                  return(0);
57         }         }
58      }      }
59    

Legend:
Removed from v.1.1.2.5  
changed lines
  Added in v.1.3

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4