#include <mnt_psnr_calculator.h>
Inheritance diagram for MntPSNRCalculator:
Public Member Functions | |
MntPSNRCalculator (char *input_yuv, int css, int width, int height, char *output_log) | |
Constructor. | |
void | recv (MntData *f) |
Given an input YUV frame, this method seeks to the right position in the input YUV file, and read the original Y plane of the frame. | |
float | calc_psnr (MntYUVFrame *frame, unsigned char *buf) |
This method computes the PSNR values between the Y plane of a MntYUVFrame object and the image stored in a buffer. | |
Private Attributes | |
FILE * | output_file_ |
FILE * | original_yuv_ |
int | css_ |
int | width_ |
int | height_ |
float | ratio_ |
The PSNR is computed against a raw YUV video file which is specified through the constructor.
The output file contains two numbers on each line, the first, an integer, is the frame number (in display order) and the second, a floating point number, is the PNSR value.
|
Constructor.
|
|
This method computes the PSNR values between the Y plane of a MntYUVFrame object and the image stored in a buffer.
|
|
Given an input YUV frame, this method seeks to the right position in the input YUV file, and read the original Y plane of the frame. This original Y image is the compared with the Y plane of the input YUV. PSNR is computed and is logged to disk. Reimplemented from MntComponent. |