webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "./psnr.h"
#include "./ssim.h"
Classes | |
struct | metric |
Macros | |
#define | _CRT_SECURE_NO_WARNINGS |
Functions | |
bool | ExtractResolutionFromFilename (const char *name, int *width_ptr, int *height_ptr) |
uint8 | ScaleY (uint8 y) |
double | GetMSE (double sse, double size) |
void | PrintHelp (const char *program) |
void | ParseOptions (int argc, const char *argv[]) |
bool | UpdateMetrics (uint8 *ch_org, uint8 *ch_rec, const int y_size, const int uv_size, const size_t total_size, int number_of_frames, metric *cur_distortion_psnr, metric *distorted_frame, bool do_psnr) |
int | main (int argc, const char *argv[]) |
Variables | |
bool | verbose = false |
bool | quiet = false |
bool | show_name = false |
bool | do_swap_uv = false |
bool | do_psnr = false |
bool | do_ssim = false |
bool | do_mse = false |
bool | do_lssim = false |
int | image_width = 0 |
int | image_height = 0 |
int | fileindex_org = 0 |
int | fileindex_rec = 0 |
int | num_rec = 0 |
int | num_skip_org = 0 |
int | num_skip_rec = 0 |
int | num_frames = 0 |
#define _CRT_SECURE_NO_WARNINGS |
bool ExtractResolutionFromFilename | ( | const char * | name, |
int * | width_ptr, | ||
int * | height_ptr | ||
) |
double GetMSE | ( | double | sse, |
double | size | ||
) |
int main | ( | int | argc, |
const char * | argv[] | ||
) |
void ParseOptions | ( | int | argc, |
const char * | argv[] | ||
) |
void PrintHelp | ( | const char * | program | ) |
bool UpdateMetrics | ( | uint8 * | ch_org, |
uint8 * | ch_rec, | ||
const int | y_size, | ||
const int | uv_size, | ||
const size_t | total_size, | ||
int | number_of_frames, | ||
metric * | cur_distortion_psnr, | ||
metric * | distorted_frame, | ||
bool | do_psnr | ||
) |
bool do_lssim = false |
bool do_mse = false |
bool do_psnr = false |
bool do_ssim = false |
bool do_swap_uv = false |
int fileindex_org = 0 |
int fileindex_rec = 0 |
int image_height = 0 |
int image_width = 0 |
int num_frames = 0 |
int num_rec = 0 |
int num_skip_org = 0 |
int num_skip_rec = 0 |
bool quiet = false |
bool show_name = false |
bool verbose = false |