|
Hermes 0.7.0
Linux game streaming host
|
How much FEC a frame too large for the protocol's FEC blocks can keep. More...
#include <algorithm>#include <cstddef>Go to the source code of this file.
Functions | |
| constexpr int | stream::large_frame_fec_percentage (std::size_t data_packets, int configured, int min_parity) |
Variables | |
| constexpr std::size_t | stream::max_fec_blocks = 4 |
| The video packet header has 2 bits for the FEC block count. | |
| constexpr std::size_t | stream::max_fec_block_shards = 255 |
| Reed-Solomon over GF(2^8): data and parity shards of one FEC block together. | |
How much FEC a frame too large for the protocol's FEC blocks can keep.
Definition in file video_fec_budget.h.
|
constexpr |
The FEC percentage for a frame that needs more than max_fec_blocks blocks at the configured percentage.
Such a frame is split into max_fec_blocks blocks anyway. Sending it with no parity at all means a single lost packet drops the frame, and these frames are mostly key frames, which the frames after them need. Instead keep the largest percentage whose shards still fit every block. The client reads the percentage from each packet's FEC info, so it needs nothing new.
| data_packets | The frame's data packets. |
| configured | The configured FEC percentage, the most this returns. |
| min_parity | The client's minimum parity packets per block; the encoder raises a block's parity to it, so it has to fit too. |
Definition at line 35 of file video_fec_budget.h.
|
constexpr |
Reed-Solomon over GF(2^8): data and parity shards of one FEC block together.
Definition at line 16 of file video_fec_budget.h.
|
constexpr |
The video packet header has 2 bits for the FEC block count.
Definition at line 13 of file video_fec_budget.h.