1cabdff1aSopenharmony_ci/*
2cabdff1aSopenharmony_ci * HEVC video decoder
3cabdff1aSopenharmony_ci *
4cabdff1aSopenharmony_ci * Copyright (C) 2012 - 2013 Guillaume Martres
5cabdff1aSopenharmony_ci * Copyright (C) 2013 - 2014 Pierre-Edouard Lepere
6cabdff1aSopenharmony_ci *
7cabdff1aSopenharmony_ci *
8cabdff1aSopenharmony_ci * This file is part of FFmpeg.
9cabdff1aSopenharmony_ci *
10cabdff1aSopenharmony_ci * FFmpeg is free software; you can redistribute it and/or
11cabdff1aSopenharmony_ci * modify it under the terms of the GNU Lesser General Public
12cabdff1aSopenharmony_ci * License as published by the Free Software Foundation; either
13cabdff1aSopenharmony_ci * version 2.1 of the License, or (at your option) any later version.
14cabdff1aSopenharmony_ci *
15cabdff1aSopenharmony_ci * FFmpeg is distributed in the hope that it will be useful,
16cabdff1aSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of
17cabdff1aSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18cabdff1aSopenharmony_ci * Lesser General Public License for more details.
19cabdff1aSopenharmony_ci *
20cabdff1aSopenharmony_ci * You should have received a copy of the GNU Lesser General Public
21cabdff1aSopenharmony_ci * License along with FFmpeg; if not, write to the Free Software
22cabdff1aSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23cabdff1aSopenharmony_ci */
24cabdff1aSopenharmony_ci
25cabdff1aSopenharmony_ci#ifndef AVCODEC_X86_HEVCDSP_H
26cabdff1aSopenharmony_ci#define AVCODEC_X86_HEVCDSP_H
27cabdff1aSopenharmony_ci
28cabdff1aSopenharmony_ci#include <stddef.h>
29cabdff1aSopenharmony_ci#include <stdint.h>
30cabdff1aSopenharmony_ci
31cabdff1aSopenharmony_ci
32cabdff1aSopenharmony_ci#define PEL_LINK(dst, idx1, idx2, idx3, name, D, opt) \
33cabdff1aSopenharmony_cidst[idx1][idx2][idx3] = ff_hevc_put_hevc_ ## name ## _ ## D ## _##opt; \
34cabdff1aSopenharmony_cidst ## _bi[idx1][idx2][idx3] = ff_hevc_put_hevc_bi_ ## name ## _ ## D ## _##opt; \
35cabdff1aSopenharmony_cidst ## _uni[idx1][idx2][idx3] = ff_hevc_put_hevc_uni_ ## name ## _ ## D ## _##opt; \
36cabdff1aSopenharmony_cidst ## _uni_w[idx1][idx2][idx3] = ff_hevc_put_hevc_uni_w_ ## name ## _ ## D ## _##opt; \
37cabdff1aSopenharmony_cidst ## _bi_w[idx1][idx2][idx3] = ff_hevc_put_hevc_bi_w_ ## name ## _ ## D ## _##opt
38cabdff1aSopenharmony_ci
39cabdff1aSopenharmony_ci
40cabdff1aSopenharmony_ci#define PEL_PROTOTYPE(name, D, opt) \
41cabdff1aSopenharmony_civoid ff_hevc_put_hevc_ ## name ## _ ## D ## _##opt(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width); \
42cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_ ## name ## _ ## D ## _##opt(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width); \
43cabdff1aSopenharmony_civoid ff_hevc_put_hevc_uni_ ## name ## _ ## D ## _##opt(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my, int width); \
44cabdff1aSopenharmony_civoid ff_hevc_put_hevc_uni_w_ ## name ## _ ## D ## _##opt(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int height, int denom, int wx, int ox, intptr_t mx, intptr_t my, int width); \
45cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_w_ ## name ## _ ## D ## _##opt(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, int denom, int wx0, int wx1, int ox0, int ox1, intptr_t mx, intptr_t my, int width)
46cabdff1aSopenharmony_ci
47cabdff1aSopenharmony_ci
48cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
49cabdff1aSopenharmony_ci// MC functions
50cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
51cabdff1aSopenharmony_ci
52cabdff1aSopenharmony_ci#define EPEL_PROTOTYPES(fname, bitd, opt) \
53cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##4,  bitd, opt); \
54cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##6,  bitd, opt); \
55cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##8,  bitd, opt); \
56cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##12, bitd, opt); \
57cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##16, bitd, opt); \
58cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##24, bitd, opt); \
59cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##32, bitd, opt); \
60cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##48, bitd, opt); \
61cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##64, bitd, opt)
62cabdff1aSopenharmony_ci
63cabdff1aSopenharmony_ci#define QPEL_PROTOTYPES(fname, bitd, opt) \
64cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##4,  bitd, opt); \
65cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##8,  bitd, opt); \
66cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##12, bitd, opt); \
67cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##16, bitd, opt); \
68cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##24, bitd, opt); \
69cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##32, bitd, opt); \
70cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##48, bitd, opt); \
71cabdff1aSopenharmony_ci        PEL_PROTOTYPE(fname##64, bitd, opt)
72cabdff1aSopenharmony_ci
73cabdff1aSopenharmony_ci#define WEIGHTING_PROTOTYPE(width, bitd, opt) \
74cabdff1aSopenharmony_civoid ff_hevc_put_hevc_uni_w##width##_##bitd##_##opt(uint8_t *dst, ptrdiff_t dststride, int16_t *_src, int height, int denom,  int _wx, int _ox); \
75cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_w##width##_##bitd##_##opt(uint8_t *dst, ptrdiff_t dststride, int16_t *_src, int16_t *_src2, int height, int denom,  int _wx0,  int _wx1, int _ox0, int _ox1)
76cabdff1aSopenharmony_ci
77cabdff1aSopenharmony_ci#define WEIGHTING_PROTOTYPES(bitd, opt) \
78cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(2, bitd, opt); \
79cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(4, bitd, opt); \
80cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(6, bitd, opt); \
81cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(8, bitd, opt); \
82cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(12, bitd, opt); \
83cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(16, bitd, opt); \
84cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(24, bitd, opt); \
85cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(32, bitd, opt); \
86cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(48, bitd, opt); \
87cabdff1aSopenharmony_ci        WEIGHTING_PROTOTYPE(64, bitd, opt)
88cabdff1aSopenharmony_ci
89cabdff1aSopenharmony_ci
90cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
91cabdff1aSopenharmony_ci// QPEL_PIXELS EPEL_PIXELS
92cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
93cabdff1aSopenharmony_ciEPEL_PROTOTYPES(pel_pixels ,  8, sse4);
94cabdff1aSopenharmony_ciEPEL_PROTOTYPES(pel_pixels , 10, sse4);
95cabdff1aSopenharmony_ciEPEL_PROTOTYPES(pel_pixels , 12, sse4);
96cabdff1aSopenharmony_ci
97cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels16_8_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
98cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels24_8_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
99cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels32_8_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
100cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels48_8_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
101cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels64_8_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
102cabdff1aSopenharmony_ci
103cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels16_10_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
104cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels24_10_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
105cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels32_10_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
106cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels48_10_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
107cabdff1aSopenharmony_civoid ff_hevc_put_hevc_pel_pixels64_10_avx2(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
108cabdff1aSopenharmony_ci
109cabdff1aSopenharmony_ci
110cabdff1aSopenharmony_ci
111cabdff1aSopenharmony_civoid ff_hevc_put_hevc_uni_pel_pixels32_8_avx2(uint8_t *dst, ptrdiff_t dststride,uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
112cabdff1aSopenharmony_civoid ff_hevc_put_hevc_uni_pel_pixels48_8_avx2(uint8_t *dst, ptrdiff_t dststride,uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
113cabdff1aSopenharmony_civoid ff_hevc_put_hevc_uni_pel_pixels64_8_avx2(uint8_t *dst, ptrdiff_t dststride,uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);
114cabdff1aSopenharmony_civoid ff_hevc_put_hevc_uni_pel_pixels96_8_avx2(uint8_t *dst, ptrdiff_t dststride,uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width); //used for 10bit
115cabdff1aSopenharmony_civoid ff_hevc_put_hevc_uni_pel_pixels128_8_avx2(uint8_t *dst, ptrdiff_t dststride,uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my,int width);//used for 10bit
116cabdff1aSopenharmony_ci
117cabdff1aSopenharmony_ci
118cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels16_8_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
119cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels24_8_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
120cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels32_8_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
121cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels48_8_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
122cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels64_8_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
123cabdff1aSopenharmony_ci
124cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels16_10_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
125cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels24_10_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
126cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels32_10_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
127cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels48_10_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
128cabdff1aSopenharmony_civoid ff_hevc_put_hevc_bi_pel_pixels64_10_avx2(uint8_t *_dst, ptrdiff_t _dststride, uint8_t *_src, ptrdiff_t _srcstride, int16_t *src2, int height, intptr_t mx, intptr_t my, int width);
129cabdff1aSopenharmony_ci
130cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
131cabdff1aSopenharmony_ci// EPEL
132cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
133cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_h ,  8, sse4);
134cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_h , 10, sse4);
135cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_h , 12, sse4);
136cabdff1aSopenharmony_ci
137cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_v ,  8, sse4);
138cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_v , 10, sse4);
139cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_v , 12, sse4);
140cabdff1aSopenharmony_ci
141cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_hv ,  8, sse4);
142cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_hv , 10, sse4);
143cabdff1aSopenharmony_ciEPEL_PROTOTYPES(epel_hv , 12, sse4);
144cabdff1aSopenharmony_ci
145cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h16, 8, avx2);
146cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h24, 8, avx2);
147cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h32, 8, avx2);
148cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h48, 8, avx2);
149cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h64, 8, avx2);
150cabdff1aSopenharmony_ci
151cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h16,10, avx2);
152cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h24,10, avx2);
153cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h32,10, avx2);
154cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h48,10, avx2);
155cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_h64,10, avx2);
156cabdff1aSopenharmony_ci
157cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v16, 8, avx2);
158cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v24, 8, avx2);
159cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v32, 8, avx2);
160cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v48, 8, avx2);
161cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v64, 8, avx2);
162cabdff1aSopenharmony_ci
163cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v16,10, avx2);
164cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v24,10, avx2);
165cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v32,10, avx2);
166cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v48,10, avx2);
167cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_v64,10, avx2);
168cabdff1aSopenharmony_ci
169cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv16, 8, avx2);
170cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv24, 8, avx2);
171cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv32, 8, avx2);
172cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv48, 8, avx2);
173cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv64, 8, avx2);
174cabdff1aSopenharmony_ci
175cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv16,10, avx2);
176cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv24,10, avx2);
177cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv32,10, avx2);
178cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv48,10, avx2);
179cabdff1aSopenharmony_ciPEL_PROTOTYPE(epel_hv64,10, avx2);
180cabdff1aSopenharmony_ci
181cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
182cabdff1aSopenharmony_ci// QPEL
183cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
184cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_h ,  8, sse4);
185cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_h , 10, sse4);
186cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_h , 12, sse4);
187cabdff1aSopenharmony_ci
188cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_v,  8, sse4);
189cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_v, 10, sse4);
190cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_v, 12, sse4);
191cabdff1aSopenharmony_ci
192cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_hv,  8, sse4);
193cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_hv, 10, sse4);
194cabdff1aSopenharmony_ciQPEL_PROTOTYPES(qpel_hv, 12, sse4);
195cabdff1aSopenharmony_ci
196cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h16, 8, avx2);
197cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h24, 8, avx2);
198cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h32, 8, avx2);
199cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h48, 8, avx2);
200cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h64, 8, avx2);
201cabdff1aSopenharmony_ci
202cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h16,10, avx2);
203cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h24,10, avx2);
204cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h32,10, avx2);
205cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h48,10, avx2);
206cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_h64,10, avx2);
207cabdff1aSopenharmony_ci
208cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v16, 8, avx2);
209cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v24, 8, avx2);
210cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v32, 8, avx2);
211cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v48, 8, avx2);
212cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v64, 8, avx2);
213cabdff1aSopenharmony_ci
214cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v16,10, avx2);
215cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v24,10, avx2);
216cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v32,10, avx2);
217cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v48,10, avx2);
218cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_v64,10, avx2);
219cabdff1aSopenharmony_ci
220cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv16, 8, avx2);
221cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv24, 8, avx2);
222cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv32, 8, avx2);
223cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv48, 8, avx2);
224cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv64, 8, avx2);
225cabdff1aSopenharmony_ci
226cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv16,10, avx2);
227cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv24,10, avx2);
228cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv32,10, avx2);
229cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv48,10, avx2);
230cabdff1aSopenharmony_ciPEL_PROTOTYPE(qpel_hv64,10, avx2);
231cabdff1aSopenharmony_ci
232cabdff1aSopenharmony_ciWEIGHTING_PROTOTYPES(8, sse4);
233cabdff1aSopenharmony_ciWEIGHTING_PROTOTYPES(10, sse4);
234cabdff1aSopenharmony_ciWEIGHTING_PROTOTYPES(12, sse4);
235cabdff1aSopenharmony_ci
236cabdff1aSopenharmony_civoid ff_hevc_put_hevc_qpel_h4_8_avx512icl(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my, int width);
237cabdff1aSopenharmony_civoid ff_hevc_put_hevc_qpel_h8_8_avx512icl(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my, int width);
238cabdff1aSopenharmony_civoid ff_hevc_put_hevc_qpel_h16_8_avx512icl(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my, int width);
239cabdff1aSopenharmony_civoid ff_hevc_put_hevc_qpel_h32_8_avx512icl(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my, int width);
240cabdff1aSopenharmony_civoid ff_hevc_put_hevc_qpel_h64_8_avx512icl(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my, int width);
241cabdff1aSopenharmony_civoid ff_hevc_put_hevc_qpel_hv8_8_avx512icl(int16_t *dst, uint8_t *_src, ptrdiff_t _srcstride, int height, intptr_t mx, intptr_t my, int width);
242cabdff1aSopenharmony_ci
243cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
244cabdff1aSopenharmony_ci// TRANSFORM_ADD
245cabdff1aSopenharmony_ci///////////////////////////////////////////////////////////////////////////////
246cabdff1aSopenharmony_ci
247cabdff1aSopenharmony_civoid ff_hevc_add_residual_4_8_mmxext(uint8_t *dst, int16_t *res, ptrdiff_t stride);
248cabdff1aSopenharmony_civoid ff_hevc_add_residual_8_8_sse2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
249cabdff1aSopenharmony_civoid ff_hevc_add_residual_16_8_sse2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
250cabdff1aSopenharmony_civoid ff_hevc_add_residual_32_8_sse2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
251cabdff1aSopenharmony_ci
252cabdff1aSopenharmony_civoid ff_hevc_add_residual_8_8_avx(uint8_t *dst, int16_t *res, ptrdiff_t stride);
253cabdff1aSopenharmony_civoid ff_hevc_add_residual_16_8_avx(uint8_t *dst, int16_t *res, ptrdiff_t stride);
254cabdff1aSopenharmony_civoid ff_hevc_add_residual_32_8_avx(uint8_t *dst, int16_t *res, ptrdiff_t stride);
255cabdff1aSopenharmony_ci
256cabdff1aSopenharmony_civoid ff_hevc_add_residual_32_8_avx2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
257cabdff1aSopenharmony_ci
258cabdff1aSopenharmony_civoid ff_hevc_add_residual_4_10_mmxext(uint8_t *dst, int16_t *res, ptrdiff_t stride);
259cabdff1aSopenharmony_civoid ff_hevc_add_residual_8_10_sse2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
260cabdff1aSopenharmony_civoid ff_hevc_add_residual_16_10_sse2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
261cabdff1aSopenharmony_civoid ff_hevc_add_residual_32_10_sse2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
262cabdff1aSopenharmony_ci
263cabdff1aSopenharmony_civoid ff_hevc_add_residual_16_10_avx2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
264cabdff1aSopenharmony_civoid ff_hevc_add_residual_32_10_avx2(uint8_t *dst, int16_t *res, ptrdiff_t stride);
265cabdff1aSopenharmony_ci
266cabdff1aSopenharmony_ci#endif // AVCODEC_X86_HEVCDSP_H
267