2013-10-12 11:55:48 +02:00
|
|
|
/*
|
2013-11-02 11:59:02 +01:00
|
|
|
* HEVC video decoder
|
2013-10-12 11:55:48 +02:00
|
|
|
*
|
|
|
|
* Copyright (C) 2012 - 2013 Guillaume Martres
|
2014-04-28 16:12:28 +02:00
|
|
|
* Copyright (C) 2013 - 2014 Pierre-Edouard Lepere
|
|
|
|
*
|
2013-10-12 11:55:48 +02:00
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hevcdsp.h"
|
|
|
|
|
|
|
|
static const int8_t transform[32][32] = {
|
2013-11-02 00:31:49 +01:00
|
|
|
{ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
|
|
|
|
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64 },
|
|
|
|
{ 90, 90, 88, 85, 82, 78, 73, 67, 61, 54, 46, 38, 31, 22, 13, 4,
|
|
|
|
-4, -13, -22, -31, -38, -46, -54, -61, -67, -73, -78, -82, -85, -88, -90, -90 },
|
|
|
|
{ 90, 87, 80, 70, 57, 43, 25, 9, -9, -25, -43, -57, -70, -80, -87, -90,
|
|
|
|
-90, -87, -80, -70, -57, -43, -25, -9, 9, 25, 43, 57, 70, 80, 87, 90 },
|
|
|
|
{ 90, 82, 67, 46, 22, -4, -31, -54, -73, -85, -90, -88, -78, -61, -38, -13,
|
|
|
|
13, 38, 61, 78, 88, 90, 85, 73, 54, 31, 4, -22, -46, -67, -82, -90 },
|
|
|
|
{ 89, 75, 50, 18, -18, -50, -75, -89, -89, -75, -50, -18, 18, 50, 75, 89,
|
|
|
|
89, 75, 50, 18, -18, -50, -75, -89, -89, -75, -50, -18, 18, 50, 75, 89 },
|
|
|
|
{ 88, 67, 31, -13, -54, -82, -90, -78, -46, -4, 38, 73, 90, 85, 61, 22,
|
|
|
|
-22, -61, -85, -90, -73, -38, 4, 46, 78, 90, 82, 54, 13, -31, -67, -88 },
|
|
|
|
{ 87, 57, 9, -43, -80, -90, -70, -25, 25, 70, 90, 80, 43, -9, -57, -87,
|
|
|
|
-87, -57, -9, 43, 80, 90, 70, 25, -25, -70, -90, -80, -43, 9, 57, 87 },
|
|
|
|
{ 85, 46, -13, -67, -90, -73, -22, 38, 82, 88, 54, -4, -61, -90, -78, -31,
|
|
|
|
31, 78, 90, 61, 4, -54, -88, -82, -38, 22, 73, 90, 67, 13, -46, -85 },
|
|
|
|
{ 83, 36, -36, -83, -83, -36, 36, 83, 83, 36, -36, -83, -83, -36, 36, 83,
|
|
|
|
83, 36, -36, -83, -83, -36, 36, 83, 83, 36, -36, -83, -83, -36, 36, 83 },
|
|
|
|
{ 82, 22, -54, -90, -61, 13, 78, 85, 31, -46, -90, -67, 4, 73, 88, 38,
|
|
|
|
-38, -88, -73, -4, 67, 90, 46, -31, -85, -78, -13, 61, 90, 54, -22, -82 },
|
|
|
|
{ 80, 9, -70, -87, -25, 57, 90, 43, -43, -90, -57, 25, 87, 70, -9, -80,
|
|
|
|
-80, -9, 70, 87, 25, -57, -90, -43, 43, 90, 57, -25, -87, -70, 9, 80 },
|
|
|
|
{ 78, -4, -82, -73, 13, 85, 67, -22, -88, -61, 31, 90, 54, -38, -90, -46,
|
|
|
|
46, 90, 38, -54, -90, -31, 61, 88, 22, -67, -85, -13, 73, 82, 4, -78 },
|
|
|
|
{ 75, -18, -89, -50, 50, 89, 18, -75, -75, 18, 89, 50, -50, -89, -18, 75,
|
|
|
|
75, -18, -89, -50, 50, 89, 18, -75, -75, 18, 89, 50, -50, -89, -18, 75 },
|
|
|
|
{ 73, -31, -90, -22, 78, 67, -38, -90, -13, 82, 61, -46, -88, -4, 85, 54,
|
|
|
|
-54, -85, 4, 88, 46, -61, -82, 13, 90, 38, -67, -78, 22, 90, 31, -73 },
|
|
|
|
{ 70, -43, -87, 9, 90, 25, -80, -57, 57, 80, -25, -90, -9, 87, 43, -70,
|
|
|
|
-70, 43, 87, -9, -90, -25, 80, 57, -57, -80, 25, 90, 9, -87, -43, 70 },
|
|
|
|
{ 67, -54, -78, 38, 85, -22, -90, 4, 90, 13, -88, -31, 82, 46, -73, -61,
|
|
|
|
61, 73, -46, -82, 31, 88, -13, -90, -4, 90, 22, -85, -38, 78, 54, -67 },
|
|
|
|
{ 64, -64, -64, 64, 64, -64, -64, 64, 64, -64, -64, 64, 64, -64, -64, 64,
|
|
|
|
64, -64, -64, 64, 64, -64, -64, 64, 64, -64, -64, 64, 64, -64, -64, 64 },
|
|
|
|
{ 61, -73, -46, 82, 31, -88, -13, 90, -4, -90, 22, 85, -38, -78, 54, 67,
|
|
|
|
-67, -54, 78, 38, -85, -22, 90, 4, -90, 13, 88, -31, -82, 46, 73, -61 },
|
|
|
|
{ 57, -80, -25, 90, -9, -87, 43, 70, -70, -43, 87, 9, -90, 25, 80, -57,
|
|
|
|
-57, 80, 25, -90, 9, 87, -43, -70, 70, 43, -87, -9, 90, -25, -80, 57 },
|
|
|
|
{ 54, -85, -4, 88, -46, -61, 82, 13, -90, 38, 67, -78, -22, 90, -31, -73,
|
|
|
|
73, 31, -90, 22, 78, -67, -38, 90, -13, -82, 61, 46, -88, 4, 85, -54 },
|
|
|
|
{ 50, -89, 18, 75, -75, -18, 89, -50, -50, 89, -18, -75, 75, 18, -89, 50,
|
|
|
|
50, -89, 18, 75, -75, -18, 89, -50, -50, 89, -18, -75, 75, 18, -89, 50 },
|
|
|
|
{ 46, -90, 38, 54, -90, 31, 61, -88, 22, 67, -85, 13, 73, -82, 4, 78,
|
|
|
|
-78, -4, 82, -73, -13, 85, -67, -22, 88, -61, -31, 90, -54, -38, 90, -46 },
|
|
|
|
{ 43, -90, 57, 25, -87, 70, 9, -80, 80, -9, -70, 87, -25, -57, 90, -43,
|
|
|
|
-43, 90, -57, -25, 87, -70, -9, 80, -80, 9, 70, -87, 25, 57, -90, 43 },
|
|
|
|
{ 38, -88, 73, -4, -67, 90, -46, -31, 85, -78, 13, 61, -90, 54, 22, -82,
|
|
|
|
82, -22, -54, 90, -61, -13, 78, -85, 31, 46, -90, 67, 4, -73, 88, -38 },
|
|
|
|
{ 36, -83, 83, -36, -36, 83, -83, 36, 36, -83, 83, -36, -36, 83, -83, 36,
|
|
|
|
36, -83, 83, -36, -36, 83, -83, 36, 36, -83, 83, -36, -36, 83, -83, 36 },
|
|
|
|
{ 31, -78, 90, -61, 4, 54, -88, 82, -38, -22, 73, -90, 67, -13, -46, 85,
|
|
|
|
-85, 46, 13, -67, 90, -73, 22, 38, -82, 88, -54, -4, 61, -90, 78, -31 },
|
|
|
|
{ 25, -70, 90, -80, 43, 9, -57, 87, -87, 57, -9, -43, 80, -90, 70, -25,
|
|
|
|
-25, 70, -90, 80, -43, -9, 57, -87, 87, -57, 9, 43, -80, 90, -70, 25 },
|
|
|
|
{ 22, -61, 85, -90, 73, -38, -4, 46, -78, 90, -82, 54, -13, -31, 67, -88,
|
|
|
|
88, -67, 31, 13, -54, 82, -90, 78, -46, 4, 38, -73, 90, -85, 61, -22 },
|
|
|
|
{ 18, -50, 75, -89, 89, -75, 50, -18, -18, 50, -75, 89, -89, 75, -50, 18,
|
|
|
|
18, -50, 75, -89, 89, -75, 50, -18, -18, 50, -75, 89, -89, 75, -50, 18 },
|
|
|
|
{ 13, -38, 61, -78, 88, -90, 85, -73, 54, -31, 4, 22, -46, 67, -82, 90,
|
|
|
|
-90, 82, -67, 46, -22, -4, 31, -54, 73, -85, 90, -88, 78, -61, 38, -13 },
|
|
|
|
{ 9, -25, 43, -57, 70, -80, 87, -90, 90, -87, 80, -70, 57, -43, 25, -9,
|
|
|
|
-9, 25, -43, 57, -70, 80, -87, 90, -90, 87, -80, 70, -57, 43, -25, 9 },
|
|
|
|
{ 4, -13, 22, -31, 38, -46, 54, -61, 67, -73, 78, -82, 85, -88, 90, -90,
|
|
|
|
90, -90, 88, -85, 82, -78, 73, -67, 61, -54, 46, -38, 31, -22, 13, -4 },
|
2013-10-12 11:55:48 +02:00
|
|
|
};
|
|
|
|
|
2014-04-26 15:35:23 +02:00
|
|
|
DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters[7][4]) = {
|
|
|
|
{ -2, 58, 10, -2},
|
|
|
|
{ -4, 54, 16, -2},
|
|
|
|
{ -6, 46, 28, -4},
|
|
|
|
{ -4, 36, 36, -4},
|
|
|
|
{ -4, 28, 46, -6},
|
|
|
|
{ -2, 16, 54, -4},
|
|
|
|
{ -2, 10, 58, -2},
|
|
|
|
};
|
|
|
|
|
|
|
|
DECLARE_ALIGNED(16, const int8_t, ff_hevc_qpel_filters[3][16]) = {
|
|
|
|
{ -1, 4,-10, 58, 17, -5, 1, 0, -1, 4,-10, 58, 17, -5, 1, 0},
|
|
|
|
{ -1, 4,-11, 40, 40,-11, 4, -1, -1, 4,-11, 40, 40,-11, 4, -1},
|
|
|
|
{ 0, 1, -5, 17, 58,-10, 4, -1, 0, 1, -5, 17, 58,-10, 4, -1}
|
2013-10-12 11:55:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#define BIT_DEPTH 8
|
|
|
|
#include "hevcdsp_template.c"
|
|
|
|
#undef BIT_DEPTH
|
|
|
|
|
|
|
|
#define BIT_DEPTH 9
|
|
|
|
#include "hevcdsp_template.c"
|
|
|
|
#undef BIT_DEPTH
|
|
|
|
|
|
|
|
#define BIT_DEPTH 10
|
|
|
|
#include "hevcdsp_template.c"
|
|
|
|
#undef BIT_DEPTH
|
|
|
|
|
2014-07-15 00:16:53 +02:00
|
|
|
#define BIT_DEPTH 12
|
|
|
|
#include "hevcdsp_template.c"
|
|
|
|
#undef BIT_DEPTH
|
|
|
|
|
2013-10-12 11:55:48 +02:00
|
|
|
void ff_hevc_dsp_init(HEVCDSPContext *hevcdsp, int bit_depth)
|
|
|
|
{
|
|
|
|
#undef FUNC
|
|
|
|
#define FUNC(a, depth) a ## _ ## depth
|
|
|
|
|
2014-04-26 15:35:23 +02:00
|
|
|
#undef PEL_FUNC
|
|
|
|
#define PEL_FUNC(dst1, idx1, idx2, a, depth) \
|
|
|
|
for(i = 0 ; i < 10 ; i++) \
|
|
|
|
{ \
|
|
|
|
hevcdsp->dst1[i][idx1][idx2] = a ## _ ## depth; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#undef EPEL_FUNCS
|
|
|
|
#define EPEL_FUNCS(depth) \
|
|
|
|
PEL_FUNC(put_hevc_epel, 0, 0, put_hevc_pel_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel, 0, 1, put_hevc_epel_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel, 1, 0, put_hevc_epel_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel, 1, 1, put_hevc_epel_hv, depth)
|
|
|
|
|
|
|
|
#undef EPEL_UNI_FUNCS
|
|
|
|
#define EPEL_UNI_FUNCS(depth) \
|
|
|
|
PEL_FUNC(put_hevc_epel_uni, 0, 0, put_hevc_pel_uni_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_uni, 0, 1, put_hevc_epel_uni_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_uni, 1, 0, put_hevc_epel_uni_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_uni, 1, 1, put_hevc_epel_uni_hv, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_uni_w, 0, 0, put_hevc_pel_uni_w_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_uni_w, 0, 1, put_hevc_epel_uni_w_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_uni_w, 1, 0, put_hevc_epel_uni_w_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_uni_w, 1, 1, put_hevc_epel_uni_w_hv, depth)
|
|
|
|
|
|
|
|
#undef EPEL_BI_FUNCS
|
|
|
|
#define EPEL_BI_FUNCS(depth) \
|
|
|
|
PEL_FUNC(put_hevc_epel_bi, 0, 0, put_hevc_pel_bi_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_bi, 0, 1, put_hevc_epel_bi_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_bi, 1, 0, put_hevc_epel_bi_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_bi, 1, 1, put_hevc_epel_bi_hv, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_bi_w, 0, 0, put_hevc_pel_bi_w_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_bi_w, 0, 1, put_hevc_epel_bi_w_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_bi_w, 1, 0, put_hevc_epel_bi_w_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_epel_bi_w, 1, 1, put_hevc_epel_bi_w_hv, depth)
|
|
|
|
|
|
|
|
#undef QPEL_FUNCS
|
|
|
|
#define QPEL_FUNCS(depth) \
|
|
|
|
PEL_FUNC(put_hevc_qpel, 0, 0, put_hevc_pel_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel, 0, 1, put_hevc_qpel_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel, 1, 0, put_hevc_qpel_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel, 1, 1, put_hevc_qpel_hv, depth)
|
|
|
|
|
|
|
|
#undef QPEL_UNI_FUNCS
|
|
|
|
#define QPEL_UNI_FUNCS(depth) \
|
|
|
|
PEL_FUNC(put_hevc_qpel_uni, 0, 0, put_hevc_pel_uni_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_uni, 0, 1, put_hevc_qpel_uni_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_uni, 1, 0, put_hevc_qpel_uni_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_uni, 1, 1, put_hevc_qpel_uni_hv, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_uni_w, 0, 0, put_hevc_pel_uni_w_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_uni_w, 0, 1, put_hevc_qpel_uni_w_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_uni_w, 1, 0, put_hevc_qpel_uni_w_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_uni_w, 1, 1, put_hevc_qpel_uni_w_hv, depth)
|
|
|
|
|
|
|
|
#undef QPEL_BI_FUNCS
|
|
|
|
#define QPEL_BI_FUNCS(depth) \
|
|
|
|
PEL_FUNC(put_hevc_qpel_bi, 0, 0, put_hevc_pel_bi_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_bi, 0, 1, put_hevc_qpel_bi_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_bi, 1, 0, put_hevc_qpel_bi_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_bi, 1, 1, put_hevc_qpel_bi_hv, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_bi_w, 0, 0, put_hevc_pel_bi_w_pixels, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_bi_w, 0, 1, put_hevc_qpel_bi_w_h, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_bi_w, 1, 0, put_hevc_qpel_bi_w_v, depth); \
|
|
|
|
PEL_FUNC(put_hevc_qpel_bi_w, 1, 1, put_hevc_qpel_bi_w_hv, depth)
|
|
|
|
|
2013-11-02 00:31:49 +01:00
|
|
|
#define HEVC_DSP(depth) \
|
|
|
|
hevcdsp->put_pcm = FUNC(put_pcm, depth); \
|
2014-07-14 21:17:33 +02:00
|
|
|
hevcdsp->transform_add[0] = FUNC(transform_add4x4, depth); \
|
|
|
|
hevcdsp->transform_add[1] = FUNC(transform_add8x8, depth); \
|
|
|
|
hevcdsp->transform_add[2] = FUNC(transform_add16x16, depth); \
|
|
|
|
hevcdsp->transform_add[3] = FUNC(transform_add32x32, depth); \
|
2013-11-02 00:31:49 +01:00
|
|
|
hevcdsp->transform_skip = FUNC(transform_skip, depth); \
|
2014-07-15 00:20:22 +02:00
|
|
|
hevcdsp->transform_rdpcm = FUNC(transform_rdpcm, depth); \
|
2014-07-14 21:17:33 +02:00
|
|
|
hevcdsp->idct_4x4_luma = FUNC(transform_4x4_luma, depth); \
|
|
|
|
hevcdsp->idct[0] = FUNC(idct_4x4, depth); \
|
|
|
|
hevcdsp->idct[1] = FUNC(idct_8x8, depth); \
|
|
|
|
hevcdsp->idct[2] = FUNC(idct_16x16, depth); \
|
|
|
|
hevcdsp->idct[3] = FUNC(idct_32x32, depth); \
|
2013-11-02 00:31:49 +01:00
|
|
|
\
|
2014-07-14 21:17:33 +02:00
|
|
|
hevcdsp->idct_dc[0] = FUNC(idct_4x4_dc, depth); \
|
|
|
|
hevcdsp->idct_dc[1] = FUNC(idct_8x8_dc, depth); \
|
|
|
|
hevcdsp->idct_dc[2] = FUNC(idct_16x16_dc, depth); \
|
|
|
|
hevcdsp->idct_dc[3] = FUNC(idct_32x32_dc, depth); \
|
2014-06-13 13:29:17 +02:00
|
|
|
\
|
x86/hevc: add ff_hevc_sao_band_filter_{8,10,12}_{sse2,avx,avx2}
Original x86 intrinsics code and initial 8bit yasm port by Pierre-Edouard Lepere.
10/12bit yasm ports, refactoring and optimizations by James Almer
Benchmarks of BQTerrace_1920x1080_60_qp22.bin with an Intel Core i5-4200U
width 32
40338 decicycles in sao_band_filter_0_8, 2048 runs, 0 skips
8056 decicycles in ff_hevc_sao_band_filter_8_32_sse2, 2048 runs, 0 skips
7458 decicycles in ff_hevc_sao_band_filter_8_32_avx, 2048 runs, 0 skips
4504 decicycles in ff_hevc_sao_band_filter_8_32_avx2, 2048 runs, 0 skips
width 64
136046 decicycles in sao_band_filter_0_8, 16384 runs, 0 skips
28576 decicycles in ff_hevc_sao_band_filter_8_32_sse2, 16384 runs, 0 skips
26707 decicycles in ff_hevc_sao_band_filter_8_32_avx, 16384 runs, 0 skips
14387 decicycles in ff_hevc_sao_band_filter_8_32_avx2, 16384 runs, 0 skips
Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2015-02-01 19:01:36 +01:00
|
|
|
hevcdsp->sao_band_filter[0] = \
|
|
|
|
hevcdsp->sao_band_filter[1] = \
|
|
|
|
hevcdsp->sao_band_filter[2] = \
|
|
|
|
hevcdsp->sao_band_filter[3] = \
|
|
|
|
hevcdsp->sao_band_filter[4] = FUNC(sao_band_filter_0, depth); \
|
2014-07-15 10:23:20 +02:00
|
|
|
hevcdsp->sao_edge_filter[0] = FUNC(sao_edge_filter_0, depth); \
|
|
|
|
hevcdsp->sao_edge_filter[1] = FUNC(sao_edge_filter_1, depth); \
|
2014-04-26 15:35:23 +02:00
|
|
|
\
|
|
|
|
QPEL_FUNCS(depth); \
|
|
|
|
QPEL_UNI_FUNCS(depth); \
|
|
|
|
QPEL_BI_FUNCS(depth); \
|
|
|
|
EPEL_FUNCS(depth); \
|
|
|
|
EPEL_UNI_FUNCS(depth); \
|
|
|
|
EPEL_BI_FUNCS(depth); \
|
|
|
|
\
|
2013-11-02 00:31:49 +01:00
|
|
|
hevcdsp->hevc_h_loop_filter_luma = FUNC(hevc_h_loop_filter_luma, depth); \
|
|
|
|
hevcdsp->hevc_v_loop_filter_luma = FUNC(hevc_v_loop_filter_luma, depth); \
|
|
|
|
hevcdsp->hevc_h_loop_filter_chroma = FUNC(hevc_h_loop_filter_chroma, depth); \
|
|
|
|
hevcdsp->hevc_v_loop_filter_chroma = FUNC(hevc_v_loop_filter_chroma, depth); \
|
|
|
|
hevcdsp->hevc_h_loop_filter_luma_c = FUNC(hevc_h_loop_filter_luma, depth); \
|
|
|
|
hevcdsp->hevc_v_loop_filter_luma_c = FUNC(hevc_v_loop_filter_luma, depth); \
|
2013-10-12 11:55:48 +02:00
|
|
|
hevcdsp->hevc_h_loop_filter_chroma_c = FUNC(hevc_h_loop_filter_chroma, depth); \
|
2014-04-28 16:12:28 +02:00
|
|
|
hevcdsp->hevc_v_loop_filter_chroma_c = FUNC(hevc_v_loop_filter_chroma, depth)
|
2014-04-26 15:35:23 +02:00
|
|
|
int i = 0;
|
2013-10-12 11:55:48 +02:00
|
|
|
|
|
|
|
switch (bit_depth) {
|
|
|
|
case 9:
|
|
|
|
HEVC_DSP(9);
|
|
|
|
break;
|
|
|
|
case 10:
|
|
|
|
HEVC_DSP(10);
|
|
|
|
break;
|
2014-07-15 00:16:53 +02:00
|
|
|
case 12:
|
|
|
|
HEVC_DSP(12);
|
|
|
|
break;
|
2013-10-12 11:55:48 +02:00
|
|
|
default:
|
|
|
|
HEVC_DSP(8);
|
|
|
|
break;
|
|
|
|
}
|
2014-06-18 05:57:16 +02:00
|
|
|
|
|
|
|
if (ARCH_X86)
|
|
|
|
ff_hevc_dsp_init_x86(hevcdsp, bit_depth);
|
2013-10-12 11:55:48 +02:00
|
|
|
}
|