mirror of https://git.ffmpeg.org/ffmpeg.git
vvcdec: add LMCS, Deblocking, SAO, and ALF filters
Co-authored-by: Xu Mu <toxumu@outlook.com> Co-authored-by: Frank Plowman <post@frankplowman.com> Co-authored-by: Shaun Loo <shaunloo10@gmail.com> Co-authored-by: Wu Jianhua <toqsxw@outlook.com>
This commit is contained in:
parent
c05ba94ce8
commit
02c1455b44
|
@ -4,6 +4,7 @@ clean::
|
||||||
OBJS-$(CONFIG_VVC_DECODER) += vvc/vvc_cabac.o \
|
OBJS-$(CONFIG_VVC_DECODER) += vvc/vvc_cabac.o \
|
||||||
vvc/vvc_ctu.o \
|
vvc/vvc_ctu.o \
|
||||||
vvc/vvc_data.o \
|
vvc/vvc_data.o \
|
||||||
|
vvc/vvc_filter.o \
|
||||||
vvc/vvc_inter.o \
|
vvc/vvc_inter.o \
|
||||||
vvc/vvc_intra.o \
|
vvc/vvc_intra.o \
|
||||||
vvc/vvc_itx_1d.o \
|
vvc/vvc_itx_1d.o \
|
||||||
|
|
|
@ -463,6 +463,7 @@ typedef struct ALFParams {
|
||||||
void ff_vvc_set_neighbour_available(VVCLocalContext *lc, int x0, int y0, int w, int h);
|
void ff_vvc_set_neighbour_available(VVCLocalContext *lc, int x0, int y0, int w, int h);
|
||||||
void ff_vvc_decode_neighbour(VVCLocalContext *lc, int x_ctb, int y_ctb, int rx, int ry, int rs);
|
void ff_vvc_decode_neighbour(VVCLocalContext *lc, int x_ctb, int y_ctb, int rx, int ry, int rs);
|
||||||
void ff_vvc_ctu_free_cus(CTU *ctu);
|
void ff_vvc_ctu_free_cus(CTU *ctu);
|
||||||
|
int ff_vvc_get_qPy(const VVCFrameContext *fc, int xc, int yc);
|
||||||
void ff_vvc_ep_init_stat_coeff(EntryPoint *ep, int bit_depth, int persistent_rice_adaptation_enabled_flag);
|
void ff_vvc_ep_init_stat_coeff(EntryPoint *ep, int bit_depth, int persistent_rice_adaptation_enabled_flag);
|
||||||
|
|
||||||
#endif // AVCODEC_VVC_VVC_CTU_H
|
#endif // AVCODEC_VVC_VVC_CTU_H
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,71 @@
|
||||||
|
/*
|
||||||
|
* VVC filters
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Nuo Mi
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
#ifndef AVCODEC_VVC_VVC_FILTER_H
|
||||||
|
#define AVCODEC_VVC_VVC_FILTER_H
|
||||||
|
|
||||||
|
#include "vvcdec.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* lmcs filter for the CTU
|
||||||
|
* @param lc local context for CTU
|
||||||
|
* @param x0 x position for the CTU
|
||||||
|
* @param y0 y position for the CTU
|
||||||
|
*/
|
||||||
|
void ff_vvc_lmcs_filter(const VVCLocalContext *lc, const int x0, const int y0);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* vertical deblock filter for the CTU
|
||||||
|
* @param lc local context for CTU
|
||||||
|
* @param x0 x position for the CTU
|
||||||
|
* @param y0 y position for the CTU
|
||||||
|
*/
|
||||||
|
void ff_vvc_deblock_vertical(const VVCLocalContext *lc, int x0, int y0);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* horizontal deblock filter for the CTU
|
||||||
|
* @param lc local context for CTU
|
||||||
|
* @param x0 x position for the CTU
|
||||||
|
* @param y0 y position for the CTU
|
||||||
|
*/
|
||||||
|
void ff_vvc_deblock_horizontal(const VVCLocalContext *lc, int x0, int y0);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sao filter for the CTU
|
||||||
|
* @param lc local context for CTU
|
||||||
|
* @param x0 x position for the CTU
|
||||||
|
* @param y0 y position for the CTU
|
||||||
|
*/
|
||||||
|
void ff_vvc_sao_filter(VVCLocalContext *lc, const int x0, const int y0);
|
||||||
|
|
||||||
|
void ff_vvc_sao_copy_ctb_to_hv(VVCLocalContext* lc, int rx, int ry, int last_row);
|
||||||
|
void ff_vvc_alf_copy_ctu_to_hv(VVCLocalContext* lc, int x0, int y0);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* alf filter for the CTU
|
||||||
|
* @param lc local context for CTU
|
||||||
|
* @param x0 x position for the CTU
|
||||||
|
* @param y0 y position for the CTU
|
||||||
|
*/
|
||||||
|
void ff_vvc_alf_filter(VVCLocalContext *lc, const int x0, const int y0);
|
||||||
|
|
||||||
|
#endif // AVCODEC_VVC_VVC_CTU_H
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue