FFmpeg
Loading...
Searching...
No Matches
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_FILTER_H
24#define AVCODEC_VVC_FILTER_H
25
26#include "dec.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 */
34void ff_vvc_lmcs_filter(const VVCLocalContext *lc, const int x0, const int y0);
35
36/**
37 * derive boundary strength for the CTU
38 * @param lc local context for CTU
39 * @param rx raster x position for the CTU
40 * @param ry raster y position for the CTU
41 * @param rs raster position for the CTU
42 */
43void ff_vvc_deblock_bs(VVCLocalContext *lc, const int rx, const int ry, const int rs);
44
45/**
46 * vertical 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 */
52void ff_vvc_deblock_vertical(const VVCLocalContext *lc, int x0, int y0, int rs);
53
54/**
55 * horizontal deblock 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 * @param rs raster position for the CTU
60 */
61void ff_vvc_deblock_horizontal(const VVCLocalContext *lc, int x0, int y0, int rs);
62
63/**
64 * sao 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 */
69void ff_vvc_sao_filter(VVCLocalContext *lc, const int x0, const int y0);
70
71void ff_vvc_sao_copy_ctb_to_hv(VVCLocalContext* lc, int rx, int ry, int last_row);
72void ff_vvc_alf_copy_ctu_to_hv(VVCLocalContext* lc, int x0, int y0);
73
74/**
75 * alf filter for the CTU
76 * @param lc local context for CTU
77 * @param x0 x position for the CTU
78 * @param y0 y position for the CTU
79 */
80void ff_vvc_alf_filter(VVCLocalContext *lc, const int x0, const int y0);
81
82#endif // AVCODEC_VVC_CTU_H
void ff_vvc_lmcs_filter(const VVCLocalContext *lc, const int x0, const int y0)
lmcs filter for the CTU
Definition filter.c:1235
void ff_vvc_deblock_horizontal(const VVCLocalContext *lc, int x0, int y0, int rs)
horizontal deblock filter for the CTU
Definition filter.c:852
void ff_vvc_alf_copy_ctu_to_hv(VVCLocalContext *lc, int x0, int y0)
Definition filter.c:1076
void ff_vvc_alf_filter(VVCLocalContext *lc, const int x0, const int y0)
alf filter for the CTU
Definition filter.c:1180
void ff_vvc_sao_copy_ctb_to_hv(VVCLocalContext *lc, int rx, int ry, int last_row)
Definition filter.c:175
void ff_vvc_sao_filter(VVCLocalContext *lc, const int x0, const int y0)
sao filter for the CTU
Definition filter.c:315
void ff_vvc_deblock_vertical(const VVCLocalContext *lc, int x0, int y0, int rs)
vertical deblock filter for the CTU
Definition filter.c:847
void ff_vvc_deblock_bs(VVCLocalContext *lc, const int rx, const int ry, const int rs)
derive boundary strength for the CTU
Definition filter.c:678