1 #ifndef constant_HEADER_GUARD
2 #define constant_HEADER_GUARD
39 #define GLX_CONTEXT_MAJOR_VERSION 0x2091
40 #define GLX_CONTEXT_MINOR_VERSION 0x2092
64 static const int VERSION_MAJOR = 1;
65 static const int VERSION_MINOR = 6;
66 static const int VERSION_PATCH = 1;
68 static const unsigned LIVE_GET_PARAMETER_PING = 50;
70 static const unsigned DEFAULT_OPENGLTHREAD_BUFFERING_TIME = 300;
71 static const bool DEFAULT_FRAMEFIFO_FLUSH_WHEN_FULL =
false;
72 static const bool DEFAULT_OPENGLFRAMEFIFO_FLUSH_WHEN_FULL =
false;
73 static const long int DEFAULT_TIMESTAMP_RESET_TIME = 60000;
75 static const long int TIMESTAMP_CORRECT_TRESHOLD = 2000;
77 static const std::size_t FS_GRAIN_SIZE = 4096;
80 const static long unsigned thread =250;
81 const static long unsigned livethread =250;
82 const static long unsigned avthread =250;
83 const static long unsigned openglthread =250;
84 const static long unsigned valkkafswriterthread = 250;
85 const static long unsigned valkkafsreaderthread = 250;
86 const static long unsigned filecachethread = 1000;
88 const static long unsigned usbthread =250;
89 const static long int filethread =2000;
90 const static long int fdwritethread =250;
116 typedef unsigned BitmapType;
117 typedef unsigned short SlotNumber;
118 typedef std::size_t IdNumber;
120 static const SlotNumber I_MAX_SLOTS = 255;
121 static const int I_MAX_SUBSESSIONS = 3;
178 return ( (a.y_linesize == b.y_linesize) and (a.u_linesize == b.u_linesize) and (a.v_linesize == b.v_linesize) );
181 inline std::ostream &operator<<(std::ostream &os,
BitmapPars const &m) {
182 return os <<
"<BitmapPars: type=" << int(m.type) <<
" w, h=" << m.
width <<
", " << m.
height <<
">";
185 static const BitmapPars N720 (1,1280,720, 2,2);
186 static const BitmapPars N1080 (2,1920,1080,2,2);
189 static const BitmapPars N1440 (3,3000,1690,2,2);
191 static const BitmapPars N4K (4,4032,3000,2,2);
193 static const std::vector<uint8_t> nalstamp = {0,0,0,1};
List of common header files.
MaxSizes
Definition: constant.h:106
@ N_MAX_SLOTS
Maximum number of slots (used both by livethread.cpp and openglthread.cpp.
Definition: constant.h:107
@ N_MAX_DECODERS
Maximum number of decoders per one AVThread instance.
Definition: constant.h:108
PayloadSizes
Definition: constant.h:94
@ DEFAULT_PAYLOAD_SIZE_PCMU
Default buffer size in Live555 for pcmu.
Definition: constant.h:103
@ DEFAULT_PAYLOAD_SIZE_H264
Default buffer size in Live555 for h264.
Definition: constant.h:98
@ DEFAULT_PAYLOAD_SIZE
Default buffer size in Live555 for h264 // debug // not used anymore.
Definition: constant.h:95
For AVBitmapFrames, linesizes are the widths + padding bytes.
Definition: constant.h:132
int w_fac
width factor for chroma plane
Definition: constant.h:157
int h_fac
height factor for chroma plane
Definition: constant.h:158
int height
height of luma plane
Definition: constant.h:156
int width
width of luma plane
Definition: constant.h:155