#include <bitset>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include "config.h"
#include "debug.h"
#include "rtp/rs.h"
#include "rtp/rtp_types.h"
#include "transmit.h"
#include "ug_runtime_error.hpp"
#include "utils/color_out.h"
#include "utils/text.h"
#include "video.h"
Go to the source code of this file.
◆ MAX_K
◆ MAX_N
◆ MOD_NAME
| #define MOD_NAME "[fec/rs] " |
◆ anonymous enum
| Enumerator |
|---|
| DEFAULT_K_AUDIO | |
| DEFAULT_K_VIDEO | |
| DEFAULT_N | |
Definition at line 54 of file rs.cpp.
◆ usage()
| static void usage |
( |
void | | ) |
|
|
static |
Definition at line 421 of file rs.cpp.
421 {
426 TBOLD(
"%d")
", max %d)\n"
427 "\t" TBOLD(
"<n>")
" - length of block + parity "
428 "(default " TBOLD(
"%d")
", max %d),\n"
429 "\t\t\tmust be > <k>\n\n",
431
433 "The n/k ratio determines the redundancy that the FEC provides. "
434 "But please note that the " TUNDERLINE(
"strength")
435 " of the FEC applies " TBOLD (
"per frame")
" basis, so 20%"
436 " redundancy will cover 20% loss in a signle frame only.\n";
438}
int color_printf(const char *format,...)
char * wrap_paragraph(char *text)
References color_printf(), DEFAULT_K_VIDEO, DEFAULT_N, desc, MAX_K, MAX_N, TBOLD, TRED, TUNDERLINE, and wrap_paragraph().