FFmpeg
vvc_filter.h
Go to the documentation of this file.
1 /*
2  * VVC filters
3  *
4  * Copyright (C) 2022 Nuo Mi
5  *
6  *
7  * This file is part of FFmpeg.
8  *
9  * FFmpeg is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * FFmpeg is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with FFmpeg; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  */
23 #ifndef AVCODEC_VVC_VVC_FILTER_H
24 #define AVCODEC_VVC_VVC_FILTER_H
25 
26 #include "vvcdec.h"
27 
28 /**
29  * lmcs filter for the CTU
30  * @param lc local context for CTU
31  * @param x0 x position for the CTU
32  * @param y0 y position for the CTU
33  */
34 void ff_vvc_lmcs_filter(const VVCLocalContext *lc, const int x0, const int y0);
35 
36 /**
37  * vertical deblock filter for the CTU
38  * @param lc local context for CTU
39  * @param x0 x position for the CTU
40  * @param y0 y position for the CTU
41  * @param rs raster position for the CTU
42  */
43 void ff_vvc_deblock_vertical(const VVCLocalContext *lc, int x0, int y0, int rs);
44 
45 /**
46  * horizontal deblock filter for the CTU
47  * @param lc local context for CTU
48  * @param x0 x position for the CTU
49  * @param y0 y position for the CTU
50  * @param rs raster position for the CTU
51  */
52 void ff_vvc_deblock_horizontal(const VVCLocalContext *lc, int x0, int y0, int rs);
53 
54 /**
55  * sao filter for the CTU
56  * @param lc local context for CTU
57  * @param x0 x position for the CTU
58  * @param y0 y position for the CTU
59  */
60 void ff_vvc_sao_filter(VVCLocalContext *lc, const int x0, const int y0);
61 
62 void ff_vvc_sao_copy_ctb_to_hv(VVCLocalContext* lc, int rx, int ry, int last_row);
63 void ff_vvc_alf_copy_ctu_to_hv(VVCLocalContext* lc, int x0, int y0);
64 
65 /**
66  * alf filter for the CTU
67  * @param lc local context for CTU
68  * @param x0 x position for the CTU
69  * @param y0 y position for the CTU
70  */
71 void ff_vvc_alf_filter(VVCLocalContext *lc, const int x0, const int y0);
72 
73 #endif // AVCODEC_VVC_VVC_CTU_H
ff_vvc_sao_filter
void ff_vvc_sao_filter(VVCLocalContext *lc, const int x0, const int y0)
sao filter for the CTU
Definition: vvc_filter.c:154
ff_vvc_alf_filter
void ff_vvc_alf_filter(VVCLocalContext *lc, const int x0, const int y0)
alf filter for the CTU
Definition: vvc_filter.c:1199
ff_vvc_deblock_vertical
void ff_vvc_deblock_vertical(const VVCLocalContext *lc, int x0, int y0, int rs)
vertical deblock filter for the CTU
Definition: vvc_filter.c:810
ff_vvc_lmcs_filter
void ff_vvc_lmcs_filter(const VVCLocalContext *lc, const int x0, const int y0)
lmcs filter for the CTU
Definition: vvc_filter.c:1276
vvcdec.h
VVCLocalContext
Definition: vvc_ctu.h:368
ff_vvc_deblock_horizontal
void ff_vvc_deblock_horizontal(const VVCLocalContext *lc, int x0, int y0, int rs)
horizontal deblock filter for the CTU
Definition: vvc_filter.c:878
ff_vvc_sao_copy_ctb_to_hv
void ff_vvc_sao_copy_ctb_to_hv(VVCLocalContext *lc, int rx, int ry, int last_row)
Definition: vvc_filter.c:143
ff_vvc_alf_copy_ctu_to_hv
void ff_vvc_alf_copy_ctu_to_hv(VVCLocalContext *lc, int x0, int y0)
Definition: vvc_filter.c:1175