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


Public Member Functions | |
| LDGM_session_cpu () | |
| ~LDGM_session_cpu () | |
| void * | alloc_buf (int size) |
| char * | decode_frame (char *received_data, int buf_size, int *frame_size, std::map< int, int > valid_data) |
| void | encode (char *, char *) |
| void | encode_naive (char *, char *) |
| void | free_out_buf (char *buf) |
| void | iterate (Tanner_graph *graph) |
Public Member Functions inherited from LDGM_session | |
| LDGM_session () | |
| virtual | ~LDGM_session () |
| void | create_edges (Tanner_graph *g) |
| char * | encode_frame (char *frame, int frame_size, int *out_buf_size) |
| char * | encode_hdr_frame (char *hdr, int hdr_size, char *frame, int frame_size, int *out_buf_size) |
| unsigned int | get_packet_size () const |
| bool | needs_decoding (Tanner_graph *tanner_graph) |
| void | set_params (unsigned short k, unsigned short m, unsigned short rw) |
| void | set_pcMatrix (char *matrix) |
Public Member Functions inherited from Coding_session | |
Private Attributes | |
| double | elapsed_sum |
| long | no_frames |
Additional Inherited Members | |
Protected Attributes inherited from LDGM_session | |
| double | elapsed_sum2 |
| char * | lost_ptr |
| unsigned short | max_row_weight |
| long | no_frames2 |
| unsigned short | packet_size |
| unsigned short | param_k |
| unsigned short | param_m |
| int * | pcm |
| char * | pcMatrix |
| char * | received_ptr |
| unsigned short | row_weight |
Static Protected Attributes inherited from LDGM_session | |
| static const int | HEADER_SIZE = 4 |
Definition at line 32 of file ldgm-session-cpu.h.
|
inline |
Definition at line 36 of file ldgm-session-cpu.h.
References elapsed_sum, and no_frames.
|
inline |
Definition at line 41 of file ldgm-session-cpu.h.
References LDGM_session::elapsed_sum2, and LDGM_session::no_frames2.
|
virtual |
Implements LDGM_session.
Definition at line 139 of file ldgm-session-cpu.cpp.
References aligned_malloc().

|
virtual |
Method decode should recover original source data
| received_data | Received data (source and parity) |
| buf_size | Size of the received buffer |
| frame_size | Output parameter for storing size of the decoded frame |
| valid_data | Map storing pairs <offset, number of bytes> of received data |
Implements LDGM_session.
Definition at line 247 of file ldgm-session-cpu.cpp.
References Tanner_graph::add_node(), Node::constraint_node, LDGM_session::create_edges(), LDGM_session::elapsed_sum2, Timer_util::elapsed_time_ms(), Timer_util::end(), first, LDGM_session::HEADER_SIZE, iterate(), LDGM_session::needs_decoding(), no_frames, LDGM_session::no_frames2, Tanner_graph::nodes, LDGM_session::packet_size, LDGM_session::param_k, LDGM_session::param_m, Tanner_graph::set_data_size(), start(), Timer_util::start(), and Node::variable_node.
Referenced by demo().

|
virtual |
Implements LDGM_session.
Definition at line 152 of file ldgm-session-cpu.cpp.
References aligned_free, aligned_malloc(), LDGM_session::max_row_weight, LDGM_session::packet_size, LDGM_session::param_k, LDGM_session::param_m, LDGM_session::pcm, and xor_using_sse().

|
virtual |
Implements LDGM_session.
Definition at line 198 of file ldgm-session-cpu.cpp.
References aligned_free, aligned_malloc(), LDGM_session::max_row_weight, LDGM_session::packet_size, LDGM_session::param_k, LDGM_session::param_m, and LDGM_session::pcm.

|
virtual |
Implements LDGM_session.
Definition at line 192 of file ldgm-session-cpu.cpp.
References aligned_free.
Referenced by demo().
| void LDGM_session_cpu::iterate | ( | Tanner_graph * | graph | ) |
Definition at line 446 of file ldgm-session-cpu.cpp.
References count, Tanner_graph::nodes, LDGM_session::packet_size, LDGM_session::param_k, LDGM_session::param_m, and xor_using_sse().
Referenced by decode_frame().

|
private |
Definition at line 69 of file ldgm-session-cpu.h.
Referenced by LDGM_session_cpu().
|
private |
Definition at line 70 of file ldgm-session-cpu.h.
Referenced by LDGM_session_cpu(), and decode_frame().