Sunshine latest
Self-hosted game stream host for Moonlight.
rswrapper.h File Reference

Wrappers for nanors vectorization. More...

#include <stdint.h>
Include dependency graph for rswrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define reed_solomon_decode   reed_solomon_decode_fn
 
#define reed_solomon_encode   reed_solomon_encode_fn
 
#define reed_solomon_new   reed_solomon_new_fn
 
#define reed_solomon_release   reed_solomon_release_fn
 

Typedefs

typedef struct _reed_solomon reed_solomon
 
typedef int(* reed_solomon_decode_t) (reed_solomon *rs, uint8_t **shards, uint8_t *marks, int nr_shards, int bs)
 
typedef int(* reed_solomon_encode_t) (reed_solomon *rs, uint8_t **shards, int nr_shards, int bs)
 
typedef reed_solomon *(* reed_solomon_new_t) (int data_shards, int parity_shards)
 
typedef void(* reed_solomon_release_t) (reed_solomon *rs)
 

Functions

void reed_solomon_init (void)
 This initializes the RS function pointers to the best vectorized version available.
 

Variables

reed_solomon_decode_t reed_solomon_decode_fn
 
reed_solomon_encode_t reed_solomon_encode_fn
 
reed_solomon_new_t reed_solomon_new_fn
 
reed_solomon_release_t reed_solomon_release_fn
 

Detailed Description

Wrappers for nanors vectorization.

This is a drop-in replacement for nanors rs.h

Function Documentation

◆ reed_solomon_init()

void reed_solomon_init ( void )

This initializes the RS function pointers to the best vectorized version available.

The streaming code will directly invoke these function pointers during encoding.