1 /*
2 * Copyright(c) 2019 Netflix, Inc.
3 *
4 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
10 */
11 
12 #ifndef EbDecIntraPrediction_h
13 #define EbDecIntraPrediction_h
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 // Do we need to save the luma pixels from the current block,
20 // for a possible future CfL prediction?
21 CflAllowedType store_cfl_required(const EbColorConfig *cc, PartitionInfo *xd,
22                                   int32_t is_chroma_ref);
23 
24 void svt_av1_predict_intra(DecModCtxt *dec_mod_ctxt, PartitionInfo *part_info, int32_t plane,
25                            TxSize tx_size, TileInfo *td, void *pv_blk_recon_buf,
26                            int32_t recon_stride, EbBitDepthEnum bit_depth, int32_t blk_mi_col_off,
27                            int32_t blk_mi_row_off);
28 
29 void svtav1_predict_intra_block(PartitionInfo *xd, int32_t plane, TxSize tx_size, TileInfo *td,
30                                 void *pv_pred_buf, int32_t pred_stride, void *top_neigh_array,
31                                 void *left_neigh_array, int32_t ref_stride, SeqHeader *seq_header,
32                                 const PredictionMode mode, int32_t blk_mi_col_off,
33                                 int32_t blk_mi_row_off, EbBitDepthEnum bit_depth, EbBool is_16bit);
34 
35 void svt_cfl_store_tx(PartitionInfo *xd, CflCtx *cfl_ctx, int row, int col, TxSize tx_size,
36                       BlockSize bsize, EbColorConfig *cc, uint8_t *dst_buff, uint32_t dst_stride,
37                       EbBool is_16bit);
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 #endif // EbDecIntraPrediction_h
43