FFmpeg
Loading...
Searching...
No Matches
intra.h
Go to the documentation of this file.
1/*
2 * VVC intra prediction
3 *
4 * Copyright (C) 2021 Nuo Mi
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22#ifndef AVCODEC_VVC_INTRA_H
23#define AVCODEC_VVC_INTRA_H
24
25#include "ctu.h"
26
27/**
28 * reconstruct a CTU
29 * @param lc local context for CTU
30 * @param rs raster order for the CTU.
31 * @param rx raster order x for the CTU.
32 * @param ry raster order y for the CTU.
33 * @return AVERROR
34 */
35int ff_vvc_reconstruct(VVCLocalContext *lc, const int rs, const int rx, const int ry);
36
37//utils for vvc_intra_template
38int ff_vvc_get_top_available(const VVCLocalContext *lc, int x0, int y0, int target_size, int c_idx);
39int ff_vvc_get_left_available(const VVCLocalContext *lc, int x0, int y0, int target_size, int c_idx);
40int ff_vvc_get_mip_size_id(int w, int h);
41int ff_vvc_need_pdpc(int w, int h, uint8_t bdpcm_flag, int mode, int ref_idx);
42int ff_vvc_nscale_derive(int w, int h, int mode);
44int ff_vvc_intra_pred_angle_derive(int pred_mode);
45int ff_vvc_intra_inv_angle_derive(int pred_mode);
47 int tb_width, int tb_height, int c_idx, int pred_mode_intra);
49
50#endif // AVCODEC_VVC_INTRA_H
int ff_vvc_intra_pred_angle_derive(int pred_mode)
int ff_vvc_palette_derive_scale(VVCLocalContext *lc, const TransformUnit *tu, TransformBlock *tb)
Definition intra.c:680
int ff_vvc_nscale_derive(int w, int h, int mode)
Definition intra_utils.c:42
int ff_vvc_get_top_available(const VVCLocalContext *lc, int x0, int y0, int target_size, int c_idx)
Definition intra_utils.c:95
int ff_vvc_wide_angle_mode_mapping(const CodingUnit *cu, int tb_width, int tb_height, int c_idx, int pred_mode_intra)
int ff_vvc_get_left_available(const VVCLocalContext *lc, int x0, int y0, int target_size, int c_idx)
int ff_vvc_need_pdpc(int w, int h, uint8_t bdpcm_flag, int mode, int ref_idx)
Definition intra_utils.c:61
int ff_vvc_ref_filter_flag_derive(int mode)
int ff_vvc_get_mip_size_id(int w, int h)
Definition intra_utils.c:33
int ff_vvc_intra_inv_angle_derive(int pred_mode)
int ff_vvc_reconstruct(VVCLocalContext *lc, const int rs, const int rx, const int ry)
reconstruct a CTU
Definition intra.c:712
uint8_t w
Definition llvidencdsp.c:39
Definition swscale.c:71