loss_generator.h

来自「各种视频压缩格式的网络传输的模拟信道分析」· C头文件 代码 · 共 67 行

H
67
字号
/*
 ==========================================================================================
 ITU-T Telecommunications Standardization Sector      Document:   VCEG-M77
 Study Group 16 Question 6                            Filename:   loss_generator.h
 Video Coding Experts Group (VCEG)                    Generated:  27 June, 2001
 ----------------------------------------
 Thirteenth meeting: Austin, Texas, 2-4 April, 2001


 Intention: 
 ~~~~~~~~~~~~
 Simple offline software simulator for RTP/IP over 3GPP/3GPP2 bearers


 Source:
 ~~~~~~~
 Thomas Stockhammer, Guenther Liebl                  Tel:   +49 89 28923473
 Institute for Communications Engineering            Fax:   +49 89 28923490
 Munich University of Technology                     Email: {stockhammer,liebl}@ei.tum.de
 80290 Munich, Germany
 ==========================================================================================
*/


#ifndef LOSS_GENERATOR_H
#define LOSS_GENERATOR_H


#include "global.h"




class LOSS_GENERATOR
{
 public:
  LOSS_GENERATOR();
  ~LOSS_GENERATOR();
  void initialize(FILE *ParameterFile_ptr, FILE* CommonLogFile_ptr);
  Boolean bit_error_indication(int32 frame_size);
  void write_statistics(FILE *StatisticsFile_ptr); 

 private:
  char *ModuleName;

  FILE *LogFile_ptr;

  char ErrorPatternFile[100];
  FILE *ErrorPatternFile_ptr;
  byte *bit_error_pattern;
  int32 pattern_length;
  int32 pattern_start_position;
  int32 pattern_read_position;
  
  int32 total_bits_counter;
  int32 total_erroneous_bits_counter;
  double bit_error_rate;
  int32 total_frames_counter;
  int32 total_erroneous_frames_counter;
  double frame_error_rate;
};


#endif // LOSS_GENERATOR_H


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?