coding_params.c 267 Bytes
Newer Older
Andreas Schmidt's avatar
Andreas Schmidt committed
1
2
#include <src/defines.h>
#include <src/prrt/coding_params.h>
3
4
5
6
7
8
9
10
11

void PrrtCodingParams_init(PrrtCodingParams *cpar) {
    pthread_mutex_init(&cpar->lock, NULL);

    cpar->k = K_START;
    cpar->n = N_START;
    cpar->r = cpar->n - cpar->k;
    cpar->n_p = N_P_START;
}