UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
coding-session.h
Go to the documentation of this file.
1/*
2 * =====================================================================================
3 *
4 * Filename: coding-session.h
5 *
6 * Description: This abstract class represents a general coding session object.
7 * Every class implementing a particular coding method/algorithm
8 * must inherit from this class.
9 *
10 * Author: Milan Kabat, kabat@ics.muni.cz
11 *
12 * =====================================================================================
13 */
14
15#ifndef CODING_SESSION
16#define CODING_SESSION
17
18#include <map>
19
27{
28 public:
29
39 virtual char*
40 encode_frame ( char* source_data, int frame_size, int* buf_size ) = 0;
41
51 virtual char*
52 decode_frame ( char* received_data, int buf_size, int* frame_size,
53 std::map<int,int> valid_data) = 0;
54};
55
56#endif
57
Abstract class Coding_session.
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