Commit cc693b5f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

gradfun: use standard alignment syntax

parent 756d29b1
......@@ -96,6 +96,7 @@ vlc_module_end()
# define HAVE_6REGS 0
#endif
#define av_clip_uint8 clip_uint8_vlc
#include <stdalign.h>
#include "gradfun.h"
static picture_t *Filter(filter_t *, picture_t *);
......
......@@ -38,9 +38,9 @@ struct vf_priv_s {
uint8_t *src, int sstride, int width);
};
static const uint16_t __attribute__((aligned(16))) pw_7f[8] = {127,127,127,127,127,127,127,127};
static const uint16_t __attribute__((aligned(16))) pw_ff[8] = {255,255,255,255,255,255,255,255};
static const uint16_t __attribute__((aligned(16))) dither[8][8] = {
static alignas (16) const uint16_t pw_7f[8] = {127,127,127,127,127,127,127,127};
static alignas (16) const uint16_t pw_ff[8] = {255,255,255,255,255,255,255,255};
static alignas (16) const uint16_t dither[8][8] = {
{ 0, 96, 24,120, 6,102, 30,126 },
{ 64, 32, 88, 56, 70, 38, 94, 62 },
{ 16,112, 8,104, 22,118, 14,110 },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment