diff --git a/src/dvrstream.cpp b/src/dvrstream.cpp index 61351a98..bdaefc3e 100644 --- a/src/dvrstream.cpp +++ b/src/dvrstream.cpp @@ -86,6 +86,26 @@ inline uint32_t read_be32(uint8_t const* ptr) return val; } +// dvrstream::MPEGTS_PACKET_LENGTH (static) +// +// Length of a single mpeg-ts data packet +size_t const dvrstream::MPEGTS_PACKET_LENGTH = 188; + +// DEFAULT_READ_MIN (static) +// +// Default minimum amount of data to return from a read request +size_t const dvrstream::DEFAULT_READ_MINCOUNT = (1 KiB); + +// DEFAULT_READ_TIMEOUT_MS (static) +// +// Default amount of time for a read operation to succeed +unsigned int const dvrstream::DEFAULT_READ_TIMEOUT_MS = 2500; + +// DEFAULT_RINGBUFFER_SIZE (static) +// +// Default ring buffer size, in bytes +size_t const dvrstream::DEFAULT_RINGBUFFER_SIZE = (4 MiB); + //--------------------------------------------------------------------------- // dvrstream Constructor (private) // diff --git a/src/dvrstream.h b/src/dvrstream.h index 640cf3f5..9d897bb1 100644 --- a/src/dvrstream.h +++ b/src/dvrstream.h @@ -101,22 +101,22 @@ class dvrstream // MPEGTS_PACKET_LENGTH // // Length of a single mpeg-ts data packet - static const size_t MPEGTS_PACKET_LENGTH = 188; + static size_t const MPEGTS_PACKET_LENGTH; // DEFAULT_READ_MIN // // Default minimum amount of data to return from a read request - static const size_t DEFAULT_READ_MINCOUNT = (1 KiB); + static size_t const DEFAULT_READ_MINCOUNT; // DEFAULT_READ_TIMEOUT_MS // // Default amount of time for a read operation to succeed - static const unsigned int DEFAULT_READ_TIMEOUT_MS = 2500; + static unsigned int const DEFAULT_READ_TIMEOUT_MS; // DEFAULT_RINGBUFFER_SIZE // // Default ring buffer size, in bytes - static const size_t DEFAULT_RINGBUFFER_SIZE = (4 MiB); + static size_t const DEFAULT_RINGBUFFER_SIZE; // Instance Constructor //