avcodec/x86/hevcdsp: Move macro to dsp_init.c
It belongs to the [EQ]PEL_LINKS macros. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
35aee3ca95
commit
05ae73ac90
2 changed files with 7 additions and 9 deletions
|
|
@ -783,6 +783,13 @@ SAO_EDGE_FILTER_FUNCS(12, avx2)
|
|||
c->sao_edge_filter[4] = ff_hevc_sao_edge_filter_64_##bitd##_##opt; \
|
||||
} while (0)
|
||||
|
||||
#define PEL_LINK(dst, idx1, idx2, idx3, name, D, opt) \
|
||||
dst [idx1][idx2][idx3] = hevc_put_ ## name ## _ ## D ## _##opt; \
|
||||
dst ## _bi [idx1][idx2][idx3] = ff_hevc_put_bi_ ## name ## _ ## D ## _##opt; \
|
||||
dst ## _uni [idx1][idx2][idx3] = hevc_put_uni_ ## name ## _ ## D ## _##opt; \
|
||||
dst ## _uni_w[idx1][idx2][idx3] = hevc_put_uni_w_ ## name ## _ ## D ## _##opt; \
|
||||
dst ## _bi_w [idx1][idx2][idx3] = hevc_put_bi_w_ ## name ## _ ## D ## _##opt
|
||||
|
||||
#define EPEL_LINKS(pointer, my, mx, fname, bitd, opt ) \
|
||||
PEL_LINK(pointer, 1, my , mx , fname##4 , bitd, opt ); \
|
||||
PEL_LINK(pointer, 2, my , mx , fname##6 , bitd, opt ); \
|
||||
|
|
|
|||
|
|
@ -28,15 +28,6 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define PEL_LINK(dst, idx1, idx2, idx3, name, D, opt) \
|
||||
dst[idx1][idx2][idx3] = hevc_put_ ## name ## _ ## D ## _##opt; \
|
||||
dst ## _bi[idx1][idx2][idx3] = ff_hevc_put_bi_ ## name ## _ ## D ## _##opt; \
|
||||
dst ## _uni[idx1][idx2][idx3] = hevc_put_uni_ ## name ## _ ## D ## _##opt; \
|
||||
dst ## _uni_w[idx1][idx2][idx3] = hevc_put_uni_w_ ## name ## _ ## D ## _##opt; \
|
||||
dst ## _bi_w[idx1][idx2][idx3] = hevc_put_bi_w_ ## name ## _ ## D ## _##opt
|
||||
|
||||
|
||||
typedef void bi_pel_func(uint8_t *_dst, ptrdiff_t _dststride,
|
||||
const uint8_t *_src, ptrdiff_t _srcstride, const int16_t *src2,
|
||||
int height, intptr_t mx, intptr_t my, int width);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue