Home | History | Annotate | Download | only in cts

Lines Matching defs:psnr

37  * calculate PSNR values for various bitrates.
59 // Average PSNR values for reference Google VPx codec for the above bitrates.
61 // Minimum PSNR values for reference Google VPx codec for the above bitrates.
63 // Maximum allowed average PSNR difference of encoder comparing to reference Google encoder.
65 // Maximum allowed minimum PSNR difference of encoder comparing to reference Google encoder.
67 // Maximum allowed average PSNR difference of the encoder running in a looper thread with 0 ms
71 // Maximum allowed minimum PSNR difference of the encoder running in a looper thread
127 * Checks the PSNR difference between the encoded and decoded output and reference yuv input
182 // Check PSNR difference.
183 Log.d(TAG, "PSNR Average: Async: " + statisticsAsync.mAveragePSNR +
185 Log.d(TAG, "PSNR Minimum: Async: " + statisticsAsync.mMinimumPSNR +
319 * Compares average bitrate and PSNR for sequential and parallel runs.
333 final double[] psnr = new double[1];
368 psnr[0] = statistics.mAveragePSNR;
386 double referencePsnr = psnr[0];
404 Log.d(TAG, "Sequential bitrate: " + referenceBitrate + ". PSNR: " + referencePsnr);
405 Log.d(TAG, "Parallel bitrate: " + bitrate[0] + ". PSNR: " + psnr[0]);
409 assertEquals("PSNR for sequenatial encoding" + referencePsnr +
410 " is different from parallel encoding " + psnr[0],
411 referencePsnr, psnr[0], MAX_ASYNC_AVERAGE_PSNR_DIFFERENCE);
416 * Check the encoder quality for various bitrates by calculating PSNR
418 * Run the the encoder for 9 seconds for each bitrate and calculate PSNR
421 * Also compares average and minimum PSNR of codec with PSNR values of reference Google codec.
431 // and compare PSNR of codec with PSNR of reference Google codec.
465 // First do a sanity check - higher bitrates should results in higher PSNR.
485 // Then compare average and minimum PSNR of platform codec with reference Google codec -
486 // average PSNR for platform codec should be no more than 2 dB less than reference PSNR
487 // and minumum PSNR - no more than 4 dB less than reference minimum PSNR.
488 // These PSNR difference numbers are arbitrary for now, will need further estimation
502 throw new RuntimeException("Low average PSNR " + psnrPlatformCodecAverage[i] +
503 " comparing to reference PSNR " + REFERENCE_AVERAGE_PSNR[i] +
508 throw new RuntimeException("Low minimum PSNR " + psnrPlatformCodecMin[i] +
509 " comparing to reference PSNR " + REFERENCE_MINIMUM_PSNR[i] +