![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <stdio.h>#include <signal.h>#include <emmintrin.h>#include <cuda.h>#include <cuda_runtime.h>#include "gpu.cuh"
Go to the source code of this file.
Classes | |
| struct | coding_params |
Macros | |
| #define | CHECK_CUDA(cmd) |
Functions | |
| __global__ void | frame_decode (char *received, int *pcm, int *error_vec, int *sync_vec, int packet_size, int max_row_weight, int K) |
| __global__ void | frame_decode_int (int *received, int *pcm, int *error_vec, int *sync_vec, int packet_size, int max_row_weight, int K) |
| __global__ void | frame_encode (char *data, int *pcm, struct coding_params *params) |
| __global__ void | frame_encode_int (int *data, int *pcm, int param_k, int param_m, int w_f, int packet_size) |
| __global__ void | frame_encode_int_big (int *data, int *pcm, int param_k, int param_m, int w_f, int packet_size) |
| __global__ void | frame_encode_staircase (int *data, int *pcm, int param_k, int param_m, int w_f, int packet_size) |
| void | gpu_decode (char *received, int *pcm, struct coding_params *params, int *error_vec, int *sync_vec, int undecoded, int *frame_size) |
| void | gpu_decode_upgrade (char *data, int *PCM, int *SYNC_VEC, int *ERROR_VEC, int not_done, int *frame_size, int *error_vec, int *sync_vec, int M, int K, int w_f, int buf_size, int packet_size) |
| void | gpu_encode (char *source_data, int *pc_matrix, struct coding_params *) |
| void | gpu_encode_upgrade (char *source_data, int *OUTBUF, int *PCM, int param_k, int param_m, int w_f, int packet_size, int buf_size) |
| char * | xor_using_sse2 (char *source, char *dest, int packet_size) |
Variables | |
| __device__ unsigned int | count = 0 |
| __device__ unsigned int | count_M = 0 |
| #define CHECK_CUDA | ( | cmd | ) |
Definition at line 187 of file gpu.cu.
Referenced by gpu_decode_upgrade().
| __global__ void frame_decode | ( | char * | received, |
| int * | pcm, | ||
| int * | error_vec, | ||
| int * | sync_vec, | ||
| int | packet_size, | ||
| int | max_row_weight, | ||
| int | K ) |
| __global__ void frame_decode_int | ( | int * | received, |
| int * | pcm, | ||
| int * | error_vec, | ||
| int * | sync_vec, | ||
| int | packet_size, | ||
| int | max_row_weight, | ||
| int | K ) |
Definition at line 452 of file gpu.cu.
References count, count_M, and offset.
Referenced by gpu_decode_upgrade().
| __global__ void frame_encode | ( | char * | data, |
| int * | pcm, | ||
| struct coding_params * | params ) |
| __global__ void frame_encode_int | ( | int * | data, |
| int * | pcm, | ||
| int | param_k, | ||
| int | param_m, | ||
| int | w_f, | ||
| int | packet_size ) |
Definition at line 394 of file gpu.cu.
References offset.
Referenced by gpu_encode_upgrade().
| __global__ void frame_encode_int_big | ( | int * | data, |
| int * | pcm, | ||
| int | param_k, | ||
| int | param_m, | ||
| int | w_f, | ||
| int | packet_size ) |
Definition at line 340 of file gpu.cu.
References offset.
Referenced by gpu_encode_upgrade().
| __global__ void frame_encode_staircase | ( | int * | data, |
| int * | pcm, | ||
| int | param_k, | ||
| int | param_m, | ||
| int | w_f, | ||
| int | packet_size ) |
Definition at line 571 of file gpu.cu.
References offset.
Referenced by gpu_encode_upgrade().
| void gpu_decode | ( | char * | received, |
| int * | pcm, | ||
| struct coding_params * | params, | ||
| int * | error_vec, | ||
| int * | sync_vec, | ||
| int | undecoded, | ||
| int * | frame_size ) |
| void gpu_decode_upgrade | ( | char * | data, |
| int * | PCM, | ||
| int * | SYNC_VEC, | ||
| int * | ERROR_VEC, | ||
| int | not_done, | ||
| int * | frame_size, | ||
| int * | error_vec, | ||
| int * | sync_vec, | ||
| int | M, | ||
| int | K, | ||
| int | w_f, | ||
| int | buf_size, | ||
| int | packet_size ) |
Definition at line 194 of file gpu.cu.
References CHECK_CUDA, count, count_M, cudaError_t, cudaGetErrorString, cudaGetLastError, cudaMemcpy, cudaMemcpyHostToDevice, cudaSuccess, and frame_decode_int().
Referenced by LDGM_session_gpu::decode_frame().

| void gpu_encode | ( | char * | source_data, |
| int * | pc_matrix, | ||
| struct coding_params * | ) |
| void gpu_encode_upgrade | ( | char * | source_data, |
| int * | OUTBUF, | ||
| int * | PCM, | ||
| int | param_k, | ||
| int | param_m, | ||
| int | w_f, | ||
| int | packet_size, | ||
| int | buf_size ) |
Definition at line 113 of file gpu.cu.
References cudaMemcpy, frame_encode_int(), frame_encode_int_big(), frame_encode_staircase(), and xor_using_sse2().
Referenced by LDGM_session_gpu::encode().

| char * xor_using_sse2 | ( | char * | source, |
| char * | dest, | ||
| int | packet_size ) |
Definition at line 53 of file gpu.cu.
Referenced by gpu_encode_upgrade().
| __device__ unsigned int count = 0 |
Definition at line 51 of file gpu.cu.
Referenced by frame_decode_int(), and gpu_decode_upgrade().
| __device__ unsigned int count_M = 0 |
Definition at line 52 of file gpu.cu.
Referenced by frame_decode_int(), and gpu_decode_upgrade().