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  */
42 void ff_vvc_deblock_vertical(const VVCLocalContext *lc, int x0, int y0);
43 
44 /**
45  * horizontal deblock filter for the CTU
46  * @param lc local context for CTU
47  * @param x0 x position for the CTU
48  * @param y0 y position for the CTU
49  */
50 void ff_vvc_deblock_horizontal(const VVCLocalContext *lc, int x0, int y0);
51 
52 /**
53  * sao filter for the CTU
54  * @param lc local context for CTU
55  * @param x0 x position for the CTU
56  * @param y0 y position for the CTU
57  */
58 void ff_vvc_sao_filter(VVCLocalContext *lc, const int x0, const int y0);
59 
60 void ff_vvc_sao_copy_ctb_to_hv(VVCLocalContext* lc, int rx, int ry, int last_row);
61 void ff_vvc_alf_copy_ctu_to_hv(VVCLocalContext* lc, int x0, int y0);
62 
63 /**
64  * alf filter for the CTU
65  * @param lc local context for CTU
66  * @param x0 x position for the CTU
67  * @param y0 y position for the CTU
68  */
69 void ff_vvc_alf_filter(VVCLocalContext *lc, const int x0, const int y0);
70 
71 #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_deblock_horizontal
void ff_vvc_deblock_horizontal(const VVCLocalContext *lc, int x0, int y0)
horizontal deblock filter for the CTU
Definition: vvc_filter.c:878
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:1201
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:1269
vvcdec.h
VVCLocalContext
Definition: vvc_ctu.h:368
ff_vvc_deblock_vertical
void ff_vvc_deblock_vertical(const VVCLocalContext *lc, int x0, int y0)
vertical deblock filter for the CTU
Definition: vvc_filter.c:808
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:1177