1 #ifndef constant_HEADER_GUARD 2 #define constant_HEADER_GUARD 39 #define GLX_CONTEXT_MAJOR_VERSION 0x2091 40 #define GLX_CONTEXT_MINOR_VERSION 0x2092 57 const char* get_numpy_version() {
61 static const int VERSION_MAJOR = 0;
62 static const int VERSION_MINOR = 17;
63 static const int VERSION_PATCH = 0;
65 static const unsigned LIVE_GET_PARAMETER_PING = 50;
67 static const unsigned DEFAULT_OPENGLTHREAD_BUFFERING_TIME = 300;
68 static const bool DEFAULT_FRAMEFIFO_FLUSH_WHEN_FULL =
false;
69 static const bool DEFAULT_OPENGLFRAMEFIFO_FLUSH_WHEN_FULL =
false;
70 static const long int DEFAULT_TIMESTAMP_RESET_TIME = 60000;
72 static const long int TIMESTAMP_CORRECT_TRESHOLD = 2000;
74 static const std::size_t FS_GRAIN_SIZE = 4096;
77 const static long unsigned thread =250;
78 const static long unsigned livethread =250;
79 const static long unsigned avthread =250;
80 const static long unsigned openglthread =250;
81 const static long unsigned valkkafswriterthread = 250;
82 const static long unsigned valkkafsreaderthread = 250;
83 const static long unsigned filecachethread = 1000;
85 const static long unsigned usbthread =250;
86 const static long int filethread =2000;
87 const static long int fdwritethread =250;
113 typedef unsigned BitmapType;
114 typedef unsigned short SlotNumber;
115 typedef std::size_t IdNumber;
117 static const SlotNumber I_MAX_SLOTS = 255;
118 static const int I_MAX_SUBSESSIONS = 3;
130 BitmapPars(BitmapType type=0,
int width=0,
int height=0,
int w_fac=1,
int h_fac=1) : type(type), width(width), height(height), w_fac(w_fac), h_fac(h_fac) {
131 y_size =width*height;
132 u_size =y_size/w_fac/h_fac;
137 u_width =width/w_fac;
141 u_height =height/h_fac;
175 return ( (a.y_linesize == b.y_linesize) and (a.u_linesize == b.u_linesize) and (a.v_linesize == b.v_linesize) );
178 inline std::ostream &operator<<(std::ostream &os,
BitmapPars const &m) {
179 return os <<
"<BitmapPars: type=" << int(m.type) <<
" w, h=" << m.
width <<
", " << m.
height <<
">";
182 static const BitmapPars N720 (1,1280,720, 2,2);
183 static const BitmapPars N1080 (2,1920,1080,2,2);
186 static const BitmapPars N1440 (3,3000,1690,2,2);
188 static const BitmapPars N4K (4,4032,3000,2,2);
190 static const std::vector<uint8_t> nalstamp = {0,0,0,1};
int h_fac
height factor for chroma plane
Definition: constant.h:155
PayloadSizes
Definition: constant.h:91
For AVBitmapFrames, linesizes are the widths + padding bytes.
Definition: constant.h:129
int width
width of luma plane
Definition: constant.h:152
Default buffer size in Live555 for h264 // debug.
Definition: constant.h:92
Definition: constant.h:76
Maximum number of slots (used both by livethread.cpp and openglthread.cpp.
Definition: constant.h:104
int w_fac
width factor for chroma plane
Definition: constant.h:154
Default buffer size in Live555 for pcmu.
Definition: constant.h:100
Maximum number of decoders per one AVThread instance.
Definition: constant.h:105
Default buffer size in Live555 for h264.
Definition: constant.h:95
int height
height of luma plane
Definition: constant.h:153
List of common header files.
MaxSizes
Definition: constant.h:103