1#ifndef __DITHER_HPP__
2#define __DITHER_HPP__
3
4#include <stddef.h>
5#include <stdint.h>
6
7#ifdef __AVX2__
8# ifdef _MSC_VER
9# include <intrin.h>
10# else
11# include <x86intrin.h>
12# endif
13#endif
14
15void Dither( uint8_t* data );
16
17#ifdef __AVX2__
18void DitherAvx2( uint8_t* data, __m128i px0, __m128i px1, __m128i px2, __m128i px3 );
19#endif
20
21#endif
22