![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
Abstract class Coding_session. More...
#include <coding-session.h>


Public Member Functions | |
| virtual char * | decode_frame (char *received_data, int buf_size, int *frame_size, std::map< int, int > valid_data)=0 |
| virtual char * | encode_frame (char *source_data, int frame_size, int *buf_size)=0 |
Abstract class Coding_session.
This abstract class represents a general coding session object. Every class implementing a particular coding method/algorithm must inherit from this class.
Definition at line 26 of file coding-session.h.
|
pure 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 |
Implemented in LDGM_session, LDGM_session_cpu, and LDGM_session_gpu.
|
pure virtual |
Method encode should compute parity data for the given source data and add suitable FEC parity header.
| source_data | Data to encode |
| frame_size | Size of the frame being encoded |
| buf_size | Output parameter for storing total size of the returned buffer |
Implemented in LDGM_session.