![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <ldgm.h>


Public Member Functions | |
| ldgm (const char *cfg) | |
| ldgm (int packet_size, int frame_size, double max_expected_loss) | |
| ldgm (unsigned int k, unsigned int m, unsigned int c, unsigned int seed) | |
| bool | decode (char *in, int in_len, char **out, int *len, const std::map< int, int > &) |
| std::shared_ptr< video_frame > | encode (std::shared_ptr< video_frame >) |
| void | set_params (unsigned int k, unsigned int m, unsigned int c, unsigned int seed) |
Public Member Functions inherited from fec | |
| virtual | ~fec () |
| virtual audio_frame2 | encode (audio_frame2 const &) |
Private Member Functions | |
| void | init (unsigned int k, unsigned int m, unsigned int c, unsigned int seed=DEFAULT_LDGM_SEED) |
Private Attributes | |
| unsigned int | m_c |
| std::shared_ptr< LDGM_session > | m_coding_session |
| unsigned int | m_k |
| unsigned int | m_m |
| unsigned int | m_seed |
Additional Inherited Members | |
Static Public Member Functions inherited from fec | |
| static fec * | create_from_config (const char *str, bool is_audio) noexcept |
| static fec * | create_from_desc (struct fec_desc) noexcept |
| static enum fec_type | fec_type_from_pt (int pt) throw () |
| static int | pt_from_fec_type (enum tx_media_type media_type, enum fec_type fec_type, bool encrypted) throw () |
| ldgm::ldgm | ( | unsigned int | k, |
| unsigned int | m, | ||
| unsigned int | c, | ||
| unsigned int | seed ) |
Definition at line 239 of file ldgm.cpp.
References init().

| ldgm::ldgm | ( | int | packet_size, |
| int | frame_size, | ||
| double | max_expected_loss ) |
Definition at line 336 of file ldgm.cpp.
References abs(), configuration_t::c, configuration_t::frame_size, init(), JUMBO9000, configuration_t::k, LOG, LOG_LEVEL_WARNING, loss, losses, configuration_t::m, STD1500, and suggested_configurations.

| ldgm::ldgm | ( | const char * | cfg | ) |
Definition at line 282 of file ldgm.cpp.
References DEFAULT_C, DEFAULT_K, DEFAULT_M, init(), MAX_C, MAX_K, MIN_C, MINIMAL_VALUE, and usage().

|
virtual |
| true | if whole frame was reconstructed |
| false | if decoder was unable to reconstruct the frame However, if it was reconstructed at least partially (or the code is a systematic one) and length can be read, set len to a non-zero value. |
Implements fec.
Definition at line 244 of file ldgm.cpp.
References frame, and m_coding_session.
|
virtual |
Implements fec.
Definition at line 426 of file ldgm.cpp.
References frame, m_coding_session, vf_alloc_desc(), vf_free(), and video_desc_from_frame().

|
private |
Definition at line 212 of file ldgm.cpp.
References get_commandline_param(), LDGM_GPU_API_VERSION, LIBRARY_CLASS_UNDEFINED, load_library(), m_coding_session, and set_params().
Referenced by ldgm(), ldgm(), and ldgm().

| void ldgm::set_params | ( | unsigned int | k, |
| unsigned int | m, | ||
| unsigned int | c, | ||
| unsigned int | seed ) |
Definition at line 161 of file ldgm.cpp.
References file_exists(), generate_ldgm_matrix(), m_c, m_coding_session, m_k, m_m, m_seed, and MSG.
Referenced by init().

|
private |
Definition at line 67 of file ldgm.h.
Referenced by set_params().
|
private |
|
private |
Definition at line 67 of file ldgm.h.
Referenced by set_params().
|
private |
Definition at line 67 of file ldgm.h.
Referenced by set_params().
|
private |
Definition at line 68 of file ldgm.h.
Referenced by set_params().