#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <numeric>
#include <vector>
#include "webrtc/tools/frame_analyzer/reference_less_video_analysis_lib.h"
#include "webrtc/tools/frame_analyzer/video_quality_analysis.h"
◆ PSNR_FREEZE_THRESHOLD
#define PSNR_FREEZE_THRESHOLD 47 |
◆ SSIM_FREEZE_THRESHOLD
#define SSIM_FREEZE_THRESHOLD .999 |
◆ STATS_LINE_LENGTH
#define STATS_LINE_LENGTH 28 |
◆ check_file_extension()
bool check_file_extension |
( |
const std::string & |
video_file_name | ) |
|
◆ compute_metrics()
void compute_metrics |
( |
const std::string & |
video_file_name, |
|
|
std::vector< double > * |
psnr_per_frame, |
|
|
std::vector< double > * |
ssim_per_frame |
|
) |
| |
◆ find_frame_clusters()
std::vector<int> find_frame_clusters |
( |
const std::vector< double > & |
psnr_per_frame, |
|
|
const std::vector< double > & |
ssim_per_frame |
|
) |
| |
◆ frozen_frame()
bool frozen_frame |
( |
std::vector< double > |
psnr_per_frame, |
|
|
std::vector< double > |
ssim_per_frame, |
|
|
size_t |
frame |
|
) |
| |
◆ get_height_width_fps()
void get_height_width_fps |
( |
int * |
height, |
|
|
int * |
width, |
|
|
int * |
fps, |
|
|
const std::string & |
video_file |
|
) |
| |
◆ print_freezing_metrics()
void print_freezing_metrics |
( |
const std::vector< double > & |
psnr_per_frame, |
|
|
const std::vector< double > & |
ssim_per_frame |
|
) |
| |
◆ run_analysis()