mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avcodec/snowdata: Add explicit alignment for obmc tables
This is in preparation for adding SSSE3 assembly. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -23,8 +23,9 @@
|
||||
#define AVCODEC_SNOWDATA_H
|
||||
|
||||
#include "snow.h"
|
||||
#include "libavutil/mem_internal.h"
|
||||
|
||||
static const uint8_t obmc32[1024]={
|
||||
DECLARE_ALIGNED(16, static const uint8_t, obmc32)[1024]={
|
||||
0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,
|
||||
0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 5, 5, 5, 4, 4, 4, 3, 3, 2, 2, 2, 1, 1, 1, 0,
|
||||
0, 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9, 10, 10, 9, 8, 8, 7, 7, 6, 5, 5, 4, 3, 3, 2, 2, 1, 0,
|
||||
@@ -59,7 +60,7 @@ static const uint8_t obmc32[1024]={
|
||||
0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,
|
||||
//error:0.000020
|
||||
};
|
||||
static const uint8_t obmc16[256]={
|
||||
DECLARE_ALIGNED(16, static const uint8_t, obmc16)[256]={
|
||||
0, 1, 1, 2, 2, 3, 3, 4, 4, 3, 3, 2, 2, 1, 1, 0,
|
||||
1, 2, 4, 5, 7, 8, 10, 11, 11, 10, 8, 7, 5, 4, 2, 1,
|
||||
1, 4, 6, 9, 11, 14, 16, 19, 19, 16, 14, 11, 9, 6, 4, 1,
|
||||
|
||||
Reference in New Issue
Block a user