24 #include "libavutil/cpu.h"
29 #define LFC_FUNC(DIR, DEPTH, OPT) \
30 void ff_hevc_ ## DIR ## _loop_filter_chroma_ ## DEPTH ## _ ## OPT(uint8_t *pix, ptrdiff_t stride, int *tc, uint8_t *no_p, uint8_t *no_q);
32 #define LFL_FUNC(DIR, DEPTH, OPT) \
33 void ff_hevc_ ## DIR ## _loop_filter_luma_ ## DEPTH ## _ ## OPT(uint8_t *pix, ptrdiff_t stride, int beta, int *tc, uint8_t *no_p, uint8_t *no_q);
35 #define LFC_FUNCS(type, depth) \
36 LFC_FUNC(h, depth, sse2) \
37 LFC_FUNC(v, depth, sse2)
39 #define LFL_FUNCS(type, depth) \
40 LFL_FUNC(h, depth, ssse3) \
41 LFL_FUNC(v, depth, ssse3)
54 c->hevc_v_loop_filter_chroma = ff_hevc_v_loop_filter_chroma_8_sse2;
55 c->hevc_h_loop_filter_chroma = ff_hevc_h_loop_filter_chroma_8_sse2;
58 c->hevc_v_loop_filter_luma = ff_hevc_v_loop_filter_luma_8_ssse3;
59 c->hevc_h_loop_filter_luma = ff_hevc_h_loop_filter_luma_8_ssse3;
61 }
else if (bit_depth == 10) {
63 c->hevc_v_loop_filter_chroma = ff_hevc_v_loop_filter_chroma_10_sse2;
64 c->hevc_h_loop_filter_chroma = ff_hevc_h_loop_filter_chroma_10_sse2;
67 c->hevc_v_loop_filter_luma = ff_hevc_v_loop_filter_luma_10_ssse3;
68 c->hevc_h_loop_filter_luma = ff_hevc_h_loop_filter_luma_10_ssse3;
void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth)
#define LFC_FUNCS(type, depth)
#define LFL_FUNCS(type, depth)
#define EXTERNAL_SSSE3(flags)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define EXTERNAL_SSE2(flags)