Skip to content
  • Laurent Aimar's avatar
    * all: Change the way PSNR is computed (based on a patch by Loren · 11e1b0c2
    Laurent Aimar authored
    Merritt <lorenmn AT u DOT washington DOT edu>
     Using SQE(DeltaSourceReconstructed) = Sum( delta^2 )
           PSNR( SQE, Size ) = -10Ln(SQE / 255^2 / Size )/Ln(10) )
           Y+U+V : Union of YUV planes.
    
     Now there is 
      - Mean PSNR : Sum( PSNR( SQE(Y/U/V), Size(Y/U/V) ) / TotalFrames
      - Average PSNR: Sum( PSNR( SQE(Y+U+V), Size(Y+U+V) ) ) / TotalFrames
      - Global PSNR: PSNR( Sum( SQE(Y+U+V) ), Size(Y+U+V)*TotalFrames )
    
      Mean PSNR is used by the JM, and Average/Overall is used on Doom9 for
    example.
    
    
    
    git-svn-id: svn://svn.videolan.org/x264/trunk@19 df754926-b1dd-0310-bc7b-ec298dee348c
    11e1b0c2