webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Protected Member Functions | Protected Attributes | List of all members
webrtc::test::PlotVideoProcessorIntegrationTest Class Reference
Inheritance diagram for webrtc::test::PlotVideoProcessorIntegrationTest:
webrtc::test::VideoProcessorIntegrationTest testing::Test testing::Test

Protected Member Functions

 PlotVideoProcessorIntegrationTest ()
 
virtual ~PlotVideoProcessorIntegrationTest ()
 
void RunTest (int width, int height, const std::string &filename)
 
- Protected Member Functions inherited from webrtc::test::VideoProcessorIntegrationTest
 VideoProcessorIntegrationTest ()
 
virtual ~VideoProcessorIntegrationTest ()=default
 
void SetUpCodecConfig (const CodecParams &process, const VisualizationParams *visualization_params)
 
void ResetRateControlMetrics (int num_frames)
 
void UpdateRateControlMetrics (int frame_num, FrameType frame_type)
 
void VerifyRateControlMetrics (int update_index, int max_key_frame_size_mismatch, int max_delta_frame_size_mismatch, int max_encoding_rate_mismatch, int max_time_hit_target, int max_num_dropped_frames, int num_spatial_resizes, int num_key_frames)
 
void VerifyQuality (const test::QualityMetricsResult &psnr_result, const test::QualityMetricsResult &ssim_result, const QualityThresholds &quality_thresholds)
 
void LayerIndexForFrame (int frame_number)
 
void SetLayerRates ()
 
void ProcessFramesAndVerify (QualityThresholds quality_thresholds, RateProfile rate_profile, CodecParams process, RateControlThresholds *rc_thresholds, const VisualizationParams *visualization_params)
 
 VideoProcessorIntegrationTest ()
 
virtual ~VideoProcessorIntegrationTest ()=default
 
void SetUpCodecConfig (const CodecParams &process, const VisualizationParams *visualization_params)
 
void ResetRateControlMetrics (int num_frames)
 
void UpdateRateControlMetrics (int frame_num, FrameType frame_type)
 
void VerifyRateControlMetrics (int update_index, int max_key_frame_size_mismatch, int max_delta_frame_size_mismatch, int max_encoding_rate_mismatch, int max_time_hit_target, int max_num_dropped_frames, int num_spatial_resizes, int num_key_frames)
 
void VerifyQuality (const test::QualityMetricsResult &psnr_result, const test::QualityMetricsResult &ssim_result, const QualityThresholds &quality_thresholds)
 
void LayerIndexForFrame (int frame_number)
 
void SetLayerRates ()
 
void ProcessFramesAndVerify (QualityThresholds quality_thresholds, RateProfile rate_profile, CodecParams process, RateControlThresholds *rc_thresholds, const VisualizationParams *visualization_params)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Protected Attributes

const int bitrate_
 
const int framerate_
 
const VideoCodecType codec_type_
 
- Protected Attributes inherited from webrtc::test::VideoProcessorIntegrationTest
std::unique_ptr< VideoEncoderencoder_
 
std::unique_ptr< cricket::WebRtcVideoEncoderFactoryexternal_encoder_factory_
 
std::unique_ptr< VideoDecoderdecoder_
 
std::unique_ptr< cricket::WebRtcVideoDecoderFactoryexternal_decoder_factory_
 
VideoCodec codec_settings_
 
std::unique_ptr< test::FrameReaderanalysis_frame_reader_
 
std::unique_ptr< test::FrameWriteranalysis_frame_writer_
 
test::PacketReader packet_reader_
 
std::unique_ptr< test::PacketManipulatorpacket_manipulator_
 
test::Stats stats_
 
test::TestConfig config_
 
std::unique_ptr< test::VideoProcessorprocessor_
 
std::unique_ptr< test::FrameWritersource_frame_writer_
 
std::unique_ptr< IvfFileWriterencoded_frame_writer_
 
std::unique_ptr< test::FrameWriterdecoded_frame_writer_
 
int num_frames_per_update_ [3]
 
float sum_frame_size_mismatch_ [3]
 
float sum_encoded_frame_size_ [3]
 
float encoding_bitrate_ [3]
 
float per_frame_bandwidth_ [3]
 
float bit_rate_layer_ [3]
 
float frame_rate_layer_ [3]
 
int num_frames_total_
 
float sum_encoded_frame_size_total_
 
float encoding_bitrate_total_
 
float perc_encoding_rate_mismatch_
 
int num_frames_to_hit_target_
 
bool encoding_rate_within_target_
 
int bit_rate_
 
int frame_rate_
 
int layer_
 
float target_size_key_frame_initial_
 
float target_size_key_frame_
 
float sum_key_frame_size_mismatch_
 
int num_key_frames_
 
float start_bitrate_
 
int start_frame_rate_
 
float packet_loss_probability_
 
int num_temporal_layers_
 

Additional Inherited Members

- Static Protected Member Functions inherited from webrtc::test::VideoProcessorIntegrationTest
static void SetCodecParams (CodecParams *process_settings, VideoCodecType codec_type, bool hw_codec, bool use_single_core, float packet_loss_probability, int key_frame_interval, int num_temporal_layers, bool error_concealment_on, bool denoising_on, bool frame_dropper_on, bool spatial_resize_on, int width, int height, const std::string &filename, bool verbose_logging)
 
static void SetCodecParams (CodecParams *process_settings, VideoCodecType codec_type, bool hw_codec, bool use_single_core, float packet_loss_probability, int key_frame_interval, int num_temporal_layers, bool error_concealment_on, bool denoising_on, bool frame_dropper_on, bool spatial_resize_on)
 
static void SetQualityThresholds (QualityThresholds *quality_thresholds, double min_avg_psnr, double min_min_psnr, double min_avg_ssim, double min_min_ssim)
 
static void SetRateProfile (RateProfile *rate_profile, int update_index, int bit_rate, int frame_rate, int frame_index_rate_update)
 
static void SetRateControlThresholds (RateControlThresholds *rc_thresholds, int update_index, int max_num_dropped_frames, int max_key_frame_size_mismatch, int max_delta_frame_size_mismatch, int max_encoding_rate_mismatch, int max_time_hit_target, int num_spatial_resizes, int num_key_frames)
 
static void SetCodecParams (CodecParams *process_settings, VideoCodecType codec_type, bool hw_codec, bool use_single_core, float packet_loss_probability, int key_frame_interval, int num_temporal_layers, bool error_concealment_on, bool denoising_on, bool frame_dropper_on, bool spatial_resize_on, int width, int height, const std::string &filename, bool verbose_logging)
 
static void SetCodecParams (CodecParams *process_settings, VideoCodecType codec_type, bool hw_codec, bool use_single_core, float packet_loss_probability, int key_frame_interval, int num_temporal_layers, bool error_concealment_on, bool denoising_on, bool frame_dropper_on, bool spatial_resize_on)
 
static void SetQualityThresholds (QualityThresholds *quality_thresholds, double min_avg_psnr, double min_min_psnr, double min_avg_ssim, double min_min_ssim)
 
static void SetRateProfile (RateProfile *rate_profile, int update_index, int bit_rate, int frame_rate, int frame_index_rate_update)
 
static void SetRateControlThresholds (RateControlThresholds *rc_thresholds, int update_index, int max_num_dropped_frames, int max_key_frame_size_mismatch, int max_delta_frame_size_mismatch, int max_encoding_rate_mismatch, int max_time_hit_target, int num_spatial_resizes, int num_key_frames)
 

Constructor & Destructor Documentation

◆ PlotVideoProcessorIntegrationTest()

webrtc::test::PlotVideoProcessorIntegrationTest::PlotVideoProcessorIntegrationTest ( )
inlineprotected

◆ ~PlotVideoProcessorIntegrationTest()

virtual webrtc::test::PlotVideoProcessorIntegrationTest::~PlotVideoProcessorIntegrationTest ( )
inlineprotectedvirtual

Member Function Documentation

◆ RunTest()

void webrtc::test::PlotVideoProcessorIntegrationTest::RunTest ( int  width,
int  height,
const std::string filename 
)
inlineprotected

Member Data Documentation

◆ bitrate_

const int webrtc::test::PlotVideoProcessorIntegrationTest::bitrate_
protected

◆ codec_type_

const VideoCodecType webrtc::test::PlotVideoProcessorIntegrationTest::codec_type_
protected

◆ framerate_

const int webrtc::test::PlotVideoProcessorIntegrationTest::framerate_
protected

The documentation for this class was generated from the following file: