webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Macros | Functions
video_quality_analysis.cc File Reference
#include "webrtc/tools/frame_analyzer/video_quality_analysis.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <string>
#include <map>
#include <utility>

Namespaces

 webrtc
 
 webrtc::test
 

Macros

#define STATS_LINE_LENGTH   32
 
#define Y4M_FILE_HEADER_MAX_SIZE   200
 
#define Y4M_FRAME_DELIMITER   "FRAME"
 
#define Y4M_FRAME_HEADER_SIZE   6
 

Functions

int webrtc::test::GetI420FrameSize (int width, int height)
 
int webrtc::test::ExtractFrameSequenceNumber (std::string line)
 
int webrtc::test::ExtractDecodedFrameNumber (std::string line)
 
bool webrtc::test::IsThereBarcodeError (std::string line)
 
bool webrtc::test::GetNextStatsLine (FILE *stats_file, char *line)
 
bool webrtc::test::ExtractFrameFromYuvFile (const char *i420_file_name, int width, int height, int frame_number, uint8_t *result_frame)
 
bool webrtc::test::ExtractFrameFromY4mFile (const char *i420_file_name, int width, int height, int frame_number, uint8_t *result_frame)
 
double webrtc::test::CalculateMetrics (VideoAnalysisMetricsType video_metrics_type, const uint8_t *ref_frame, const uint8_t *test_frame, int width, int height)
 
void webrtc::test::RunAnalysis (const char *reference_file_name, const char *test_file_name, const char *stats_file_reference_name, const char *stats_file_test_name, int width, int height, ResultsContainer *results)
 
void webrtc::test::PrintMaxRepeatedAndSkippedFrames (const std::string &label, const std::string &stats_file_ref_name, const std::string &stats_file_test_name)
 
std::vector< std::pair< int, int > > webrtc::test::CalculateFrameClusters (FILE *file, int *num_decode_errors)
 
void webrtc::test::PrintMaxRepeatedAndSkippedFrames (FILE *output, const std::string &label, const std::string &stats_file_ref_name, const std::string &stats_file_test_name)
 
void webrtc::test::PrintAnalysisResults (const std::string &label, ResultsContainer *results)
 
void webrtc::test::PrintAnalysisResults (FILE *output, const std::string &label, ResultsContainer *results)
 

Macro Definition Documentation

◆ STATS_LINE_LENGTH

#define STATS_LINE_LENGTH   32

◆ Y4M_FILE_HEADER_MAX_SIZE

#define Y4M_FILE_HEADER_MAX_SIZE   200

◆ Y4M_FRAME_DELIMITER

#define Y4M_FRAME_DELIMITER   "FRAME"

◆ Y4M_FRAME_HEADER_SIZE

#define Y4M_FRAME_HEADER_SIZE   6