webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
reference_less_video_analysis_lib.cc File Reference
#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"

Macros

#define STATS_LINE_LENGTH   28
 
#define PSNR_FREEZE_THRESHOLD   47
 
#define SSIM_FREEZE_THRESHOLD   .999
 

Functions

void get_height_width_fps (int *height, int *width, int *fps, const std::string &video_file)
 
bool frozen_frame (std::vector< double > psnr_per_frame, std::vector< double > ssim_per_frame, size_t frame)
 
std::vector< int > find_frame_clusters (const std::vector< double > &psnr_per_frame, const std::vector< double > &ssim_per_frame)
 
void print_freezing_metrics (const std::vector< double > &psnr_per_frame, const std::vector< double > &ssim_per_frame)
 
void compute_metrics (const std::string &video_file_name, std::vector< double > *psnr_per_frame, std::vector< double > *ssim_per_frame)
 
bool check_file_extension (const std::string &video_file_name)
 
int run_analysis (const std::string &video_file)
 

Macro Definition Documentation

◆ PSNR_FREEZE_THRESHOLD

#define PSNR_FREEZE_THRESHOLD   47

◆ SSIM_FREEZE_THRESHOLD

#define SSIM_FREEZE_THRESHOLD   .999

◆ STATS_LINE_LENGTH

#define STATS_LINE_LENGTH   28

Function Documentation

◆ 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()

int run_analysis ( const std::string video_file)