Coverage Report

Created: 2025-07-16 07:53

/src/aom/av1/common/cfl.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved.
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 www.aomedia.org/license/software. 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 www.aomedia.org/license/patent.
10
 */
11
12
#ifndef AOM_AV1_COMMON_CFL_H_
13
#define AOM_AV1_COMMON_CFL_H_
14
15
#include "av1/common/av1_common_int.h"
16
#include "av1/common/blockd.h"
17
18
// Can we use CfL for the current block?
19
5.43M
static inline CFL_ALLOWED_TYPE is_cfl_allowed(const MACROBLOCKD *xd) {
20
5.43M
  const MB_MODE_INFO *mbmi = xd->mi[0];
21
5.43M
  const BLOCK_SIZE bsize = mbmi->bsize;
22
5.43M
  assert(bsize < BLOCK_SIZES_ALL);
23
5.43M
  if (xd->lossless[mbmi->segment_id]) {
24
    // In lossless, CfL is available when the partition size is equal to the
25
    // transform size.
26
437k
    const int ssx = xd->plane[AOM_PLANE_U].subsampling_x;
27
437k
    const int ssy = xd->plane[AOM_PLANE_U].subsampling_y;
28
437k
    const int plane_bsize = get_plane_block_size(bsize, ssx, ssy);
29
437k
    return (CFL_ALLOWED_TYPE)(plane_bsize == BLOCK_4X4);
30
437k
  }
31
  // Spec: CfL is available to luma partitions lesser than or equal to 32x32
32
4.99M
  return (CFL_ALLOWED_TYPE)(block_size_wide[bsize] <= 32 &&
33
4.99M
                            block_size_high[bsize] <= 32);
34
5.43M
}
Unexecuted instantiation: decodeframe.c:is_cfl_allowed
decodemv.c:is_cfl_allowed
Line
Count
Source
19
5.43M
static inline CFL_ALLOWED_TYPE is_cfl_allowed(const MACROBLOCKD *xd) {
20
5.43M
  const MB_MODE_INFO *mbmi = xd->mi[0];
21
5.43M
  const BLOCK_SIZE bsize = mbmi->bsize;
22
5.43M
  assert(bsize < BLOCK_SIZES_ALL);
23
5.43M
  if (xd->lossless[mbmi->segment_id]) {
24
    // In lossless, CfL is available when the partition size is equal to the
25
    // transform size.
26
437k
    const int ssx = xd->plane[AOM_PLANE_U].subsampling_x;
27
437k
    const int ssy = xd->plane[AOM_PLANE_U].subsampling_y;
28
437k
    const int plane_bsize = get_plane_block_size(bsize, ssx, ssy);
29
437k
    return (CFL_ALLOWED_TYPE)(plane_bsize == BLOCK_4X4);
30
437k
  }
31
  // Spec: CfL is available to luma partitions lesser than or equal to 32x32
32
4.99M
  return (CFL_ALLOWED_TYPE)(block_size_wide[bsize] <= 32 &&
33
4.99M
                            block_size_high[bsize] <= 32);
34
5.43M
}
Unexecuted instantiation: av1_cx_iface.c:is_cfl_allowed
Unexecuted instantiation: allintra_vis.c:is_cfl_allowed
Unexecuted instantiation: bitstream.c:is_cfl_allowed
Unexecuted instantiation: encodeframe.c:is_cfl_allowed
Unexecuted instantiation: encodeframe_utils.c:is_cfl_allowed
Unexecuted instantiation: encodemb.c:is_cfl_allowed
Unexecuted instantiation: encoder.c:is_cfl_allowed
Unexecuted instantiation: encoder_utils.c:is_cfl_allowed
Unexecuted instantiation: encodetxb.c:is_cfl_allowed
Unexecuted instantiation: ethread.c:is_cfl_allowed
Unexecuted instantiation: firstpass.c:is_cfl_allowed
Unexecuted instantiation: global_motion_facade.c:is_cfl_allowed
Unexecuted instantiation: mcomp.c:is_cfl_allowed
Unexecuted instantiation: palette.c:is_cfl_allowed
Unexecuted instantiation: partition_search.c:is_cfl_allowed
Unexecuted instantiation: partition_strategy.c:is_cfl_allowed
Unexecuted instantiation: rd.c:is_cfl_allowed
Unexecuted instantiation: rdopt.c:is_cfl_allowed
Unexecuted instantiation: nonrd_pickmode.c:is_cfl_allowed
Unexecuted instantiation: nonrd_opt.c:is_cfl_allowed
Unexecuted instantiation: speed_features.c:is_cfl_allowed
Unexecuted instantiation: superres_scale.c:is_cfl_allowed
Unexecuted instantiation: svc_layercontext.c:is_cfl_allowed
Unexecuted instantiation: temporal_filter.c:is_cfl_allowed
Unexecuted instantiation: tokenize.c:is_cfl_allowed
Unexecuted instantiation: tpl_model.c:is_cfl_allowed
Unexecuted instantiation: tx_search.c:is_cfl_allowed
Unexecuted instantiation: intra_mode_search.c:is_cfl_allowed
Unexecuted instantiation: var_based_part.c:is_cfl_allowed
Unexecuted instantiation: cfl.c:is_cfl_allowed
Unexecuted instantiation: reconintra.c:is_cfl_allowed
Unexecuted instantiation: compound_type.c:is_cfl_allowed
Unexecuted instantiation: encode_strategy.c:is_cfl_allowed
Unexecuted instantiation: interp_search.c:is_cfl_allowed
Unexecuted instantiation: motion_search_facade.c:is_cfl_allowed
35
36
// Do we need to save the luma pixels from the current block,
37
// for a possible future CfL prediction?
38
static inline CFL_ALLOWED_TYPE store_cfl_required(const AV1_COMMON *cm,
39
16.5M
                                                  const MACROBLOCKD *xd) {
40
16.5M
  const MB_MODE_INFO *mbmi = xd->mi[0];
41
42
16.5M
  if (cm->seq_params->monochrome) return CFL_DISALLOWED;
43
44
14.5M
  if (!xd->is_chroma_ref) {
45
    // For non-chroma-reference blocks, we should always store the luma pixels,
46
    // in case the corresponding chroma-reference block uses CfL.
47
    // Note that this can only happen for block sizes which are <8 on
48
    // their shortest side, as otherwise they would be chroma reference
49
    // blocks.
50
593k
    return CFL_ALLOWED;
51
593k
  }
52
53
  // If this block has chroma information, we know whether we're
54
  // actually going to perform a CfL prediction
55
13.9M
  return (CFL_ALLOWED_TYPE)(!is_inter_block(mbmi) &&
56
13.9M
                            mbmi->uv_mode == UV_CFL_PRED);
57
14.5M
}
decodeframe.c:store_cfl_required
Line
Count
Source
39
10.5M
                                                  const MACROBLOCKD *xd) {
40
10.5M
  const MB_MODE_INFO *mbmi = xd->mi[0];
41
42
10.5M
  if (cm->seq_params->monochrome) return CFL_DISALLOWED;
43
44
8.79M
  if (!xd->is_chroma_ref) {
45
    // For non-chroma-reference blocks, we should always store the luma pixels,
46
    // in case the corresponding chroma-reference block uses CfL.
47
    // Note that this can only happen for block sizes which are <8 on
48
    // their shortest side, as otherwise they would be chroma reference
49
    // blocks.
50
281k
    return CFL_ALLOWED;
51
281k
  }
52
53
  // If this block has chroma information, we know whether we're
54
  // actually going to perform a CfL prediction
55
8.51M
  return (CFL_ALLOWED_TYPE)(!is_inter_block(mbmi) &&
56
8.51M
                            mbmi->uv_mode == UV_CFL_PRED);
57
8.79M
}
decodemv.c:store_cfl_required
Line
Count
Source
39
5.94M
                                                  const MACROBLOCKD *xd) {
40
5.94M
  const MB_MODE_INFO *mbmi = xd->mi[0];
41
42
5.94M
  if (cm->seq_params->monochrome) return CFL_DISALLOWED;
43
44
5.79M
  if (!xd->is_chroma_ref) {
45
    // For non-chroma-reference blocks, we should always store the luma pixels,
46
    // in case the corresponding chroma-reference block uses CfL.
47
    // Note that this can only happen for block sizes which are <8 on
48
    // their shortest side, as otherwise they would be chroma reference
49
    // blocks.
50
312k
    return CFL_ALLOWED;
51
312k
  }
52
53
  // If this block has chroma information, we know whether we're
54
  // actually going to perform a CfL prediction
55
5.48M
  return (CFL_ALLOWED_TYPE)(!is_inter_block(mbmi) &&
56
5.48M
                            mbmi->uv_mode == UV_CFL_PRED);
57
5.79M
}
Unexecuted instantiation: av1_cx_iface.c:store_cfl_required
Unexecuted instantiation: allintra_vis.c:store_cfl_required
Unexecuted instantiation: bitstream.c:store_cfl_required
Unexecuted instantiation: encodeframe.c:store_cfl_required
Unexecuted instantiation: encodeframe_utils.c:store_cfl_required
Unexecuted instantiation: encodemb.c:store_cfl_required
Unexecuted instantiation: encoder.c:store_cfl_required
Unexecuted instantiation: encoder_utils.c:store_cfl_required
Unexecuted instantiation: encodetxb.c:store_cfl_required
Unexecuted instantiation: ethread.c:store_cfl_required
Unexecuted instantiation: firstpass.c:store_cfl_required
Unexecuted instantiation: global_motion_facade.c:store_cfl_required
Unexecuted instantiation: mcomp.c:store_cfl_required
Unexecuted instantiation: palette.c:store_cfl_required
Unexecuted instantiation: partition_search.c:store_cfl_required
Unexecuted instantiation: partition_strategy.c:store_cfl_required
Unexecuted instantiation: rd.c:store_cfl_required
Unexecuted instantiation: rdopt.c:store_cfl_required
Unexecuted instantiation: nonrd_pickmode.c:store_cfl_required
Unexecuted instantiation: nonrd_opt.c:store_cfl_required
Unexecuted instantiation: speed_features.c:store_cfl_required
Unexecuted instantiation: superres_scale.c:store_cfl_required
Unexecuted instantiation: svc_layercontext.c:store_cfl_required
Unexecuted instantiation: temporal_filter.c:store_cfl_required
Unexecuted instantiation: tokenize.c:store_cfl_required
Unexecuted instantiation: tpl_model.c:store_cfl_required
Unexecuted instantiation: tx_search.c:store_cfl_required
Unexecuted instantiation: intra_mode_search.c:store_cfl_required
Unexecuted instantiation: var_based_part.c:store_cfl_required
Unexecuted instantiation: cfl.c:store_cfl_required
Unexecuted instantiation: reconintra.c:store_cfl_required
Unexecuted instantiation: compound_type.c:store_cfl_required
Unexecuted instantiation: encode_strategy.c:store_cfl_required
Unexecuted instantiation: interp_search.c:store_cfl_required
Unexecuted instantiation: motion_search_facade.c:store_cfl_required
58
59
238M
static inline int get_scaled_luma_q0(int alpha_q3, int16_t pred_buf_q3) {
60
238M
  int scaled_luma_q6 = alpha_q3 * pred_buf_q3;
61
238M
  return ROUND_POWER_OF_TWO_SIGNED(scaled_luma_q6, 6);
62
238M
}
Unexecuted instantiation: decodeframe.c:get_scaled_luma_q0
Unexecuted instantiation: decodemv.c:get_scaled_luma_q0
Unexecuted instantiation: av1_cx_iface.c:get_scaled_luma_q0
Unexecuted instantiation: allintra_vis.c:get_scaled_luma_q0
Unexecuted instantiation: bitstream.c:get_scaled_luma_q0
Unexecuted instantiation: encodeframe.c:get_scaled_luma_q0
Unexecuted instantiation: encodeframe_utils.c:get_scaled_luma_q0
Unexecuted instantiation: encodemb.c:get_scaled_luma_q0
Unexecuted instantiation: encoder.c:get_scaled_luma_q0
Unexecuted instantiation: encoder_utils.c:get_scaled_luma_q0
Unexecuted instantiation: encodetxb.c:get_scaled_luma_q0
Unexecuted instantiation: ethread.c:get_scaled_luma_q0
Unexecuted instantiation: firstpass.c:get_scaled_luma_q0
Unexecuted instantiation: global_motion_facade.c:get_scaled_luma_q0
Unexecuted instantiation: mcomp.c:get_scaled_luma_q0
Unexecuted instantiation: palette.c:get_scaled_luma_q0
Unexecuted instantiation: partition_search.c:get_scaled_luma_q0
Unexecuted instantiation: partition_strategy.c:get_scaled_luma_q0
Unexecuted instantiation: rd.c:get_scaled_luma_q0
Unexecuted instantiation: rdopt.c:get_scaled_luma_q0
Unexecuted instantiation: nonrd_pickmode.c:get_scaled_luma_q0
Unexecuted instantiation: nonrd_opt.c:get_scaled_luma_q0
Unexecuted instantiation: speed_features.c:get_scaled_luma_q0
Unexecuted instantiation: superres_scale.c:get_scaled_luma_q0
Unexecuted instantiation: svc_layercontext.c:get_scaled_luma_q0
Unexecuted instantiation: temporal_filter.c:get_scaled_luma_q0
Unexecuted instantiation: tokenize.c:get_scaled_luma_q0
Unexecuted instantiation: tpl_model.c:get_scaled_luma_q0
Unexecuted instantiation: tx_search.c:get_scaled_luma_q0
Unexecuted instantiation: intra_mode_search.c:get_scaled_luma_q0
Unexecuted instantiation: var_based_part.c:get_scaled_luma_q0
cfl.c:get_scaled_luma_q0
Line
Count
Source
59
238M
static inline int get_scaled_luma_q0(int alpha_q3, int16_t pred_buf_q3) {
60
238M
  int scaled_luma_q6 = alpha_q3 * pred_buf_q3;
61
238M
  return ROUND_POWER_OF_TWO_SIGNED(scaled_luma_q6, 6);
62
238M
}
Unexecuted instantiation: reconintra.c:get_scaled_luma_q0
Unexecuted instantiation: compound_type.c:get_scaled_luma_q0
Unexecuted instantiation: encode_strategy.c:get_scaled_luma_q0
Unexecuted instantiation: interp_search.c:get_scaled_luma_q0
Unexecuted instantiation: motion_search_facade.c:get_scaled_luma_q0
63
64
2.26M
static inline CFL_PRED_TYPE get_cfl_pred_type(int plane) {
65
2.26M
  assert(plane > 0);
66
2.26M
  return (CFL_PRED_TYPE)(plane - 1);
67
2.26M
}
Unexecuted instantiation: decodeframe.c:get_cfl_pred_type
Unexecuted instantiation: decodemv.c:get_cfl_pred_type
Unexecuted instantiation: av1_cx_iface.c:get_cfl_pred_type
Unexecuted instantiation: allintra_vis.c:get_cfl_pred_type
Unexecuted instantiation: bitstream.c:get_cfl_pred_type
Unexecuted instantiation: encodeframe.c:get_cfl_pred_type
Unexecuted instantiation: encodeframe_utils.c:get_cfl_pred_type
Unexecuted instantiation: encodemb.c:get_cfl_pred_type
Unexecuted instantiation: encoder.c:get_cfl_pred_type
Unexecuted instantiation: encoder_utils.c:get_cfl_pred_type
Unexecuted instantiation: encodetxb.c:get_cfl_pred_type
Unexecuted instantiation: ethread.c:get_cfl_pred_type
Unexecuted instantiation: firstpass.c:get_cfl_pred_type
Unexecuted instantiation: global_motion_facade.c:get_cfl_pred_type
Unexecuted instantiation: mcomp.c:get_cfl_pred_type
Unexecuted instantiation: palette.c:get_cfl_pred_type
Unexecuted instantiation: partition_search.c:get_cfl_pred_type
Unexecuted instantiation: partition_strategy.c:get_cfl_pred_type
Unexecuted instantiation: rd.c:get_cfl_pred_type
Unexecuted instantiation: rdopt.c:get_cfl_pred_type
Unexecuted instantiation: nonrd_pickmode.c:get_cfl_pred_type
Unexecuted instantiation: nonrd_opt.c:get_cfl_pred_type
Unexecuted instantiation: speed_features.c:get_cfl_pred_type
Unexecuted instantiation: superres_scale.c:get_cfl_pred_type
Unexecuted instantiation: svc_layercontext.c:get_cfl_pred_type
Unexecuted instantiation: temporal_filter.c:get_cfl_pred_type
Unexecuted instantiation: tokenize.c:get_cfl_pred_type
Unexecuted instantiation: tpl_model.c:get_cfl_pred_type
Unexecuted instantiation: tx_search.c:get_cfl_pred_type
Unexecuted instantiation: intra_mode_search.c:get_cfl_pred_type
Unexecuted instantiation: var_based_part.c:get_cfl_pred_type
Unexecuted instantiation: cfl.c:get_cfl_pred_type
reconintra.c:get_cfl_pred_type
Line
Count
Source
64
2.26M
static inline CFL_PRED_TYPE get_cfl_pred_type(int plane) {
65
2.26M
  assert(plane > 0);
66
2.26M
  return (CFL_PRED_TYPE)(plane - 1);
67
2.26M
}
Unexecuted instantiation: compound_type.c:get_cfl_pred_type
Unexecuted instantiation: encode_strategy.c:get_cfl_pred_type
Unexecuted instantiation: interp_search.c:get_cfl_pred_type
Unexecuted instantiation: motion_search_facade.c:get_cfl_pred_type
68
69
140k
static inline void clear_cfl_dc_pred_cache_flags(CFL_CTX *cfl) {
70
140k
  cfl->use_dc_pred_cache = false;
71
140k
  cfl->dc_pred_is_cached[CFL_PRED_U] = false;
72
140k
  cfl->dc_pred_is_cached[CFL_PRED_V] = false;
73
140k
}
Unexecuted instantiation: decodeframe.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: decodemv.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: av1_cx_iface.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: allintra_vis.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: bitstream.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: encodeframe.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: encodeframe_utils.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: encodemb.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: encoder.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: encoder_utils.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: encodetxb.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: ethread.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: firstpass.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: global_motion_facade.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: mcomp.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: palette.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: partition_search.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: partition_strategy.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: rd.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: rdopt.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: nonrd_pickmode.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: nonrd_opt.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: speed_features.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: superres_scale.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: svc_layercontext.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: temporal_filter.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: tokenize.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: tpl_model.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: tx_search.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: intra_mode_search.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: var_based_part.c:clear_cfl_dc_pred_cache_flags
cfl.c:clear_cfl_dc_pred_cache_flags
Line
Count
Source
69
140k
static inline void clear_cfl_dc_pred_cache_flags(CFL_CTX *cfl) {
70
140k
  cfl->use_dc_pred_cache = false;
71
140k
  cfl->dc_pred_is_cached[CFL_PRED_U] = false;
72
140k
  cfl->dc_pred_is_cached[CFL_PRED_V] = false;
73
140k
}
Unexecuted instantiation: reconintra.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: compound_type.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: encode_strategy.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: interp_search.c:clear_cfl_dc_pred_cache_flags
Unexecuted instantiation: motion_search_facade.c:clear_cfl_dc_pred_cache_flags
74
75
void av1_cfl_predict_block(MACROBLOCKD *const xd, uint8_t *dst, int dst_stride,
76
                           TX_SIZE tx_size, int plane);
77
78
void cfl_store_block(MACROBLOCKD *const xd, BLOCK_SIZE bsize, TX_SIZE tx_size);
79
80
void cfl_store_tx(MACROBLOCKD *const xd, int row, int col, TX_SIZE tx_size,
81
                  BLOCK_SIZE bsize);
82
83
void cfl_store_dc_pred(MACROBLOCKD *const xd, const uint8_t *input,
84
                       CFL_PRED_TYPE pred_plane, int width);
85
86
void cfl_load_dc_pred(MACROBLOCKD *const xd, uint8_t *dst, int dst_stride,
87
                      TX_SIZE tx_size, CFL_PRED_TYPE pred_plane);
88
89
// Allows the CFL_SUBSAMPLE function to switch types depending on the bitdepth.
90
#define CFL_lbd_TYPE uint8_t *cfl_type
91
#define CFL_hbd_TYPE uint16_t *cfl_type
92
93
// Declare a size-specific wrapper for the size-generic function. The compiler
94
// will inline the size generic function in here, the advantage is that the size
95
// will be constant allowing for loop unrolling and other constant propagated
96
// goodness.
97
#define CFL_SUBSAMPLE(arch, sub, bd, width, height)                       \
98
  void cfl_subsample_##bd##_##sub##_##width##x##height##_##arch(          \
99
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3);      \
100
  void cfl_subsample_##bd##_##sub##_##width##x##height##_##arch(          \
101
1.62M
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
1.62M
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
1.62M
                                               output_q3, width, height); \
104
1.62M
  }
cfl_subsample_lbd_420_4x4_c
Line
Count
Source
101
60.2k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
60.2k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
60.2k
                                               output_q3, width, height); \
104
60.2k
  }
cfl_subsample_lbd_420_8x8_c
Line
Count
Source
101
63.5k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
63.5k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
63.5k
                                               output_q3, width, height); \
104
63.5k
  }
cfl_subsample_lbd_420_16x16_c
Line
Count
Source
101
8.91k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
8.91k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
8.91k
                                               output_q3, width, height); \
104
8.91k
  }
cfl_subsample_lbd_420_32x32_c
Line
Count
Source
101
4.33k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
4.33k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
4.33k
                                               output_q3, width, height); \
104
4.33k
  }
cfl_subsample_lbd_420_4x8_c
Line
Count
Source
101
17.4k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
17.4k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
17.4k
                                               output_q3, width, height); \
104
17.4k
  }
cfl_subsample_lbd_420_8x4_c
Line
Count
Source
101
25.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
25.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
25.0k
                                               output_q3, width, height); \
104
25.0k
  }
cfl_subsample_lbd_420_8x16_c
Line
Count
Source
101
7.47k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
7.47k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
7.47k
                                               output_q3, width, height); \
104
7.47k
  }
cfl_subsample_lbd_420_16x8_c
Line
Count
Source
101
9.30k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
9.30k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
9.30k
                                               output_q3, width, height); \
104
9.30k
  }
cfl_subsample_lbd_420_16x32_c
Line
Count
Source
101
4.96k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
4.96k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
4.96k
                                               output_q3, width, height); \
104
4.96k
  }
cfl_subsample_lbd_420_32x16_c
Line
Count
Source
101
2.19k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
2.19k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
2.19k
                                               output_q3, width, height); \
104
2.19k
  }
cfl_subsample_lbd_420_4x16_c
Line
Count
Source
101
37.1k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
37.1k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
37.1k
                                               output_q3, width, height); \
104
37.1k
  }
cfl_subsample_lbd_420_16x4_c
Line
Count
Source
101
21.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
21.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
21.7k
                                               output_q3, width, height); \
104
21.7k
  }
cfl_subsample_lbd_420_8x32_c
Line
Count
Source
101
27.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
27.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
27.8k
                                               output_q3, width, height); \
104
27.8k
  }
cfl_subsample_lbd_420_32x8_c
Line
Count
Source
101
3.56k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
3.56k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
3.56k
                                               output_q3, width, height); \
104
3.56k
  }
cfl_subsample_lbd_422_4x4_c
Line
Count
Source
101
675
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
675
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
675
                                               output_q3, width, height); \
104
675
  }
cfl_subsample_lbd_422_8x8_c
Line
Count
Source
101
53
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
53
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
53
                                               output_q3, width, height); \
104
53
  }
cfl_subsample_lbd_422_16x16_c
Line
Count
Source
101
10
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
10
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
10
                                               output_q3, width, height); \
104
10
  }
cfl_subsample_lbd_422_32x32_c
Line
Count
Source
101
28
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
28
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
28
                                               output_q3, width, height); \
104
28
  }
Unexecuted instantiation: cfl_subsample_lbd_422_4x8_c
cfl_subsample_lbd_422_8x4_c
Line
Count
Source
101
3
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
3
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
3
                                               output_q3, width, height); \
104
3
  }
Unexecuted instantiation: cfl_subsample_lbd_422_8x16_c
cfl_subsample_lbd_422_16x8_c
Line
Count
Source
101
3
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
3
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
3
                                               output_q3, width, height); \
104
3
  }
Unexecuted instantiation: cfl_subsample_lbd_422_16x32_c
cfl_subsample_lbd_422_32x16_c
Line
Count
Source
101
7
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
7
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
7
                                               output_q3, width, height); \
104
7
  }
Unexecuted instantiation: cfl_subsample_lbd_422_4x16_c
Unexecuted instantiation: cfl_subsample_lbd_422_16x4_c
Unexecuted instantiation: cfl_subsample_lbd_422_8x32_c
cfl_subsample_lbd_422_32x8_c
Line
Count
Source
101
551
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
551
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
551
                                               output_q3, width, height); \
104
551
  }
cfl_subsample_lbd_444_4x4_c
Line
Count
Source
101
145k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
145k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
145k
                                               output_q3, width, height); \
104
145k
  }
cfl_subsample_lbd_444_8x8_c
Line
Count
Source
101
98.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
98.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
98.7k
                                               output_q3, width, height); \
104
98.7k
  }
cfl_subsample_lbd_444_16x16_c
Line
Count
Source
101
32.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
32.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
32.7k
                                               output_q3, width, height); \
104
32.7k
  }
cfl_subsample_lbd_444_32x32_c
Line
Count
Source
101
8.34k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
8.34k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
8.34k
                                               output_q3, width, height); \
104
8.34k
  }
cfl_subsample_lbd_444_4x8_c
Line
Count
Source
101
22.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
22.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
22.7k
                                               output_q3, width, height); \
104
22.7k
  }
cfl_subsample_lbd_444_8x4_c
Line
Count
Source
101
31.1k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
31.1k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
31.1k
                                               output_q3, width, height); \
104
31.1k
  }
cfl_subsample_lbd_444_8x16_c
Line
Count
Source
101
29.5k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
29.5k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
29.5k
                                               output_q3, width, height); \
104
29.5k
  }
cfl_subsample_lbd_444_16x8_c
Line
Count
Source
101
41.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
41.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
41.3k
                                               output_q3, width, height); \
104
41.3k
  }
cfl_subsample_lbd_444_16x32_c
Line
Count
Source
101
7.86k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
7.86k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
7.86k
                                               output_q3, width, height); \
104
7.86k
  }
cfl_subsample_lbd_444_32x16_c
Line
Count
Source
101
7.48k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
7.48k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
7.48k
                                               output_q3, width, height); \
104
7.48k
  }
cfl_subsample_lbd_444_4x16_c
Line
Count
Source
101
23.5k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
23.5k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
23.5k
                                               output_q3, width, height); \
104
23.5k
  }
cfl_subsample_lbd_444_16x4_c
Line
Count
Source
101
32.4k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
32.4k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
32.4k
                                               output_q3, width, height); \
104
32.4k
  }
cfl_subsample_lbd_444_8x32_c
Line
Count
Source
101
10.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
10.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
10.8k
                                               output_q3, width, height); \
104
10.8k
  }
cfl_subsample_lbd_444_32x8_c
Line
Count
Source
101
10.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
10.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
10.8k
                                               output_q3, width, height); \
104
10.8k
  }
cfl_subsample_hbd_420_4x4_c
Line
Count
Source
101
79.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
79.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
79.0k
                                               output_q3, width, height); \
104
79.0k
  }
cfl_subsample_hbd_420_8x8_c
Line
Count
Source
101
60.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
60.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
60.8k
                                               output_q3, width, height); \
104
60.8k
  }
cfl_subsample_hbd_420_16x16_c
Line
Count
Source
101
11.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
11.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
11.3k
                                               output_q3, width, height); \
104
11.3k
  }
cfl_subsample_hbd_420_32x32_c
Line
Count
Source
101
4.87k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
4.87k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
4.87k
                                               output_q3, width, height); \
104
4.87k
  }
cfl_subsample_hbd_420_4x8_c
Line
Count
Source
101
24.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
24.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
24.3k
                                               output_q3, width, height); \
104
24.3k
  }
cfl_subsample_hbd_420_8x4_c
Line
Count
Source
101
37.5k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
37.5k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
37.5k
                                               output_q3, width, height); \
104
37.5k
  }
cfl_subsample_hbd_420_8x16_c
Line
Count
Source
101
8.83k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
8.83k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
8.83k
                                               output_q3, width, height); \
104
8.83k
  }
cfl_subsample_hbd_420_16x8_c
Line
Count
Source
101
11.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
11.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
11.8k
                                               output_q3, width, height); \
104
11.8k
  }
cfl_subsample_hbd_420_16x32_c
Line
Count
Source
101
5.34k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
5.34k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
5.34k
                                               output_q3, width, height); \
104
5.34k
  }
cfl_subsample_hbd_420_32x16_c
Line
Count
Source
101
2.69k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
2.69k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
2.69k
                                               output_q3, width, height); \
104
2.69k
  }
cfl_subsample_hbd_420_4x16_c
Line
Count
Source
101
55.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
55.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
55.7k
                                               output_q3, width, height); \
104
55.7k
  }
cfl_subsample_hbd_420_16x4_c
Line
Count
Source
101
32.6k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
32.6k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
32.6k
                                               output_q3, width, height); \
104
32.6k
  }
cfl_subsample_hbd_420_8x32_c
Line
Count
Source
101
48.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
48.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
48.3k
                                               output_q3, width, height); \
104
48.3k
  }
cfl_subsample_hbd_420_32x8_c
Line
Count
Source
101
4.28k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
4.28k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
4.28k
                                               output_q3, width, height); \
104
4.28k
  }
cfl_subsample_hbd_422_4x4_c
Line
Count
Source
101
509
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
509
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
509
                                               output_q3, width, height); \
104
509
  }
cfl_subsample_hbd_422_8x8_c
Line
Count
Source
101
168
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
168
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
168
                                               output_q3, width, height); \
104
168
  }
cfl_subsample_hbd_422_16x16_c
Line
Count
Source
101
601
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
601
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
601
                                               output_q3, width, height); \
104
601
  }
cfl_subsample_hbd_422_32x32_c
Line
Count
Source
101
15
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
15
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
15
                                               output_q3, width, height); \
104
15
  }
Unexecuted instantiation: cfl_subsample_hbd_422_4x8_c
cfl_subsample_hbd_422_8x4_c
Line
Count
Source
101
33
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
33
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
33
                                               output_q3, width, height); \
104
33
  }
Unexecuted instantiation: cfl_subsample_hbd_422_8x16_c
cfl_subsample_hbd_422_16x8_c
Line
Count
Source
101
36
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
36
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
36
                                               output_q3, width, height); \
104
36
  }
Unexecuted instantiation: cfl_subsample_hbd_422_16x32_c
cfl_subsample_hbd_422_32x16_c
Line
Count
Source
101
571
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
571
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
571
                                               output_q3, width, height); \
104
571
  }
Unexecuted instantiation: cfl_subsample_hbd_422_4x16_c
cfl_subsample_hbd_422_16x4_c
Line
Count
Source
101
33
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
33
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
33
                                               output_q3, width, height); \
104
33
  }
Unexecuted instantiation: cfl_subsample_hbd_422_8x32_c
cfl_subsample_hbd_422_32x8_c
Line
Count
Source
101
22
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
22
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
22
                                               output_q3, width, height); \
104
22
  }
cfl_subsample_hbd_444_4x4_c
Line
Count
Source
101
91.2k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
91.2k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
91.2k
                                               output_q3, width, height); \
104
91.2k
  }
cfl_subsample_hbd_444_8x8_c
Line
Count
Source
101
113k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
113k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
113k
                                               output_q3, width, height); \
104
113k
  }
cfl_subsample_hbd_444_16x16_c
Line
Count
Source
101
27.5k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
27.5k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
27.5k
                                               output_q3, width, height); \
104
27.5k
  }
cfl_subsample_hbd_444_32x32_c
Line
Count
Source
101
7.73k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
7.73k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
7.73k
                                               output_q3, width, height); \
104
7.73k
  }
cfl_subsample_hbd_444_4x8_c
Line
Count
Source
101
23.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
23.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
23.7k
                                               output_q3, width, height); \
104
23.7k
  }
cfl_subsample_hbd_444_8x4_c
Line
Count
Source
101
29.1k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
29.1k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
29.1k
                                               output_q3, width, height); \
104
29.1k
  }
cfl_subsample_hbd_444_8x16_c
Line
Count
Source
101
24.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
24.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
24.8k
                                               output_q3, width, height); \
104
24.8k
  }
cfl_subsample_hbd_444_16x8_c
Line
Count
Source
101
32.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
32.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
32.7k
                                               output_q3, width, height); \
104
32.7k
  }
cfl_subsample_hbd_444_16x32_c
Line
Count
Source
101
9.41k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
9.41k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
9.41k
                                               output_q3, width, height); \
104
9.41k
  }
cfl_subsample_hbd_444_32x16_c
Line
Count
Source
101
5.62k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
5.62k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
5.62k
                                               output_q3, width, height); \
104
5.62k
  }
cfl_subsample_hbd_444_4x16_c
Line
Count
Source
101
17.4k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
17.4k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
17.4k
                                               output_q3, width, height); \
104
17.4k
  }
cfl_subsample_hbd_444_16x4_c
Line
Count
Source
101
25.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
25.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
25.7k
                                               output_q3, width, height); \
104
25.7k
  }
cfl_subsample_hbd_444_8x32_c
Line
Count
Source
101
12.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
12.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
12.3k
                                               output_q3, width, height); \
104
12.3k
  }
cfl_subsample_hbd_444_32x8_c
Line
Count
Source
101
11.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
102
11.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
103
11.0k
                                               output_q3, width, height); \
104
11.0k
  }
105
106
// Declare size-specific wrappers for all valid CfL sizes.
107
#define CFL_SUBSAMPLE_FUNCTIONS(arch, sub, bd)                            \
108
  CFL_SUBSAMPLE(arch, sub, bd, 4, 4)                                      \
109
  CFL_SUBSAMPLE(arch, sub, bd, 8, 8)                                      \
110
  CFL_SUBSAMPLE(arch, sub, bd, 16, 16)                                    \
111
  CFL_SUBSAMPLE(arch, sub, bd, 32, 32)                                    \
112
  CFL_SUBSAMPLE(arch, sub, bd, 4, 8)                                      \
113
  CFL_SUBSAMPLE(arch, sub, bd, 8, 4)                                      \
114
  CFL_SUBSAMPLE(arch, sub, bd, 8, 16)                                     \
115
  CFL_SUBSAMPLE(arch, sub, bd, 16, 8)                                     \
116
  CFL_SUBSAMPLE(arch, sub, bd, 16, 32)                                    \
117
  CFL_SUBSAMPLE(arch, sub, bd, 32, 16)                                    \
118
  CFL_SUBSAMPLE(arch, sub, bd, 4, 16)                                     \
119
  CFL_SUBSAMPLE(arch, sub, bd, 16, 4)                                     \
120
  CFL_SUBSAMPLE(arch, sub, bd, 8, 32)                                     \
121
  CFL_SUBSAMPLE(arch, sub, bd, 32, 8)                                     \
122
  cfl_subsample_##bd##_fn cfl_get_luma_subsampling_##sub##_##bd##_##arch( \
123
1.62M
      TX_SIZE tx_size) {                                                  \
124
1.62M
    CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
125
1.62M
    return subfn_##sub[tx_size];                                          \
126
1.62M
  }
cfl_get_luma_subsampling_420_lbd_c
Line
Count
Source
123
293k
      TX_SIZE tx_size) {                                                  \
124
293k
    CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
125
293k
    return subfn_##sub[tx_size];                                          \
126
293k
  }
cfl_get_luma_subsampling_422_lbd_c
Line
Count
Source
123
1.33k
      TX_SIZE tx_size) {                                                  \
124
1.33k
    CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
125
1.33k
    return subfn_##sub[tx_size];                                          \
126
1.33k
  }
cfl_get_luma_subsampling_444_lbd_c
Line
Count
Source
123
503k
      TX_SIZE tx_size) {                                                  \
124
503k
    CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
125
503k
    return subfn_##sub[tx_size];                                          \
126
503k
  }
cfl_get_luma_subsampling_420_hbd_c
Line
Count
Source
123
387k
      TX_SIZE tx_size) {                                                  \
124
387k
    CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
125
387k
    return subfn_##sub[tx_size];                                          \
126
387k
  }
cfl_get_luma_subsampling_422_hbd_c
Line
Count
Source
123
1.98k
      TX_SIZE tx_size) {                                                  \
124
1.98k
    CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
125
1.98k
    return subfn_##sub[tx_size];                                          \
126
1.98k
  }
cfl_get_luma_subsampling_444_hbd_c
Line
Count
Source
123
432k
      TX_SIZE tx_size) {                                                  \
124
432k
    CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
125
432k
    return subfn_##sub[tx_size];                                          \
126
432k
  }
127
128
// Declare an architecture-specific array of function pointers for size-specific
129
// wrappers.
130
#define CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
131
1.62M
  static const cfl_subsample_##bd##_fn subfn_##sub[TX_SIZES_ALL] = {          \
132
1.62M
    cfl_subsample_##bd##_##sub##_4x4_##arch,   /* 4x4 */                      \
133
1.62M
    cfl_subsample_##bd##_##sub##_8x8_##arch,   /* 8x8 */                      \
134
1.62M
    cfl_subsample_##bd##_##sub##_16x16_##arch, /* 16x16 */                    \
135
1.62M
    cfl_subsample_##bd##_##sub##_32x32_##arch, /* 32x32 */                    \
136
1.62M
    NULL,                                      /* 64x64 (invalid CFL size) */ \
137
1.62M
    cfl_subsample_##bd##_##sub##_4x8_##arch,   /* 4x8 */                      \
138
1.62M
    cfl_subsample_##bd##_##sub##_8x4_##arch,   /* 8x4 */                      \
139
1.62M
    cfl_subsample_##bd##_##sub##_8x16_##arch,  /* 8x16 */                     \
140
1.62M
    cfl_subsample_##bd##_##sub##_16x8_##arch,  /* 16x8 */                     \
141
1.62M
    cfl_subsample_##bd##_##sub##_16x32_##arch, /* 16x32 */                    \
142
1.62M
    cfl_subsample_##bd##_##sub##_32x16_##arch, /* 32x16 */                    \
143
1.62M
    NULL,                                      /* 32x64 (invalid CFL size) */ \
144
1.62M
    NULL,                                      /* 64x32 (invalid CFL size) */ \
145
1.62M
    cfl_subsample_##bd##_##sub##_4x16_##arch,  /* 4x16  */                    \
146
1.62M
    cfl_subsample_##bd##_##sub##_16x4_##arch,  /* 16x4  */                    \
147
1.62M
    cfl_subsample_##bd##_##sub##_8x32_##arch,  /* 8x32  */                    \
148
1.62M
    cfl_subsample_##bd##_##sub##_32x8_##arch,  /* 32x8  */                    \
149
1.62M
    NULL,                                      /* 16x64 (invalid CFL size) */ \
150
1.62M
    NULL,                                      /* 64x16 (invalid CFL size) */ \
151
1.62M
  };
152
153
// The RTCD script does not support passing in an array, so we wrap it in this
154
// function.
155
#if CONFIG_AV1_HIGHBITDEPTH
156
#define CFL_GET_SUBSAMPLE_FUNCTION(arch)  \
157
  CFL_SUBSAMPLE_FUNCTIONS(arch, 420, lbd) \
158
  CFL_SUBSAMPLE_FUNCTIONS(arch, 422, lbd) \
159
  CFL_SUBSAMPLE_FUNCTIONS(arch, 444, lbd) \
160
  CFL_SUBSAMPLE_FUNCTIONS(arch, 420, hbd) \
161
  CFL_SUBSAMPLE_FUNCTIONS(arch, 422, hbd) \
162
  CFL_SUBSAMPLE_FUNCTIONS(arch, 444, hbd)
163
#else
164
#define CFL_GET_SUBSAMPLE_FUNCTION(arch)  \
165
  CFL_SUBSAMPLE_FUNCTIONS(arch, 420, lbd) \
166
  CFL_SUBSAMPLE_FUNCTIONS(arch, 422, lbd) \
167
  CFL_SUBSAMPLE_FUNCTIONS(arch, 444, lbd)
168
#endif
169
170
// Declare a size-specific wrapper for the size-generic function. The compiler
171
// will inline the size generic function in here, the advantage is that the size
172
// will be constant allowing for loop unrolling and other constant propagated
173
// goodness.
174
#define CFL_SUB_AVG_X(arch, width, height, round_offset, num_pel_log2)       \
175
  void cfl_subtract_average_##width##x##height##_##arch(const uint16_t *src, \
176
                                                        int16_t *dst);       \
177
  void cfl_subtract_average_##width##x##height##_##arch(const uint16_t *src, \
178
1.13M
                                                        int16_t *dst) {      \
179
1.13M
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
1.13M
                            num_pel_log2);                                   \
181
1.13M
  }
cfl_subtract_average_4x4_c
Line
Count
Source
178
248k
                                                        int16_t *dst) {      \
179
248k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
248k
                            num_pel_log2);                                   \
181
248k
  }
cfl_subtract_average_4x8_c
Line
Count
Source
178
103k
                                                        int16_t *dst) {      \
179
103k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
103k
                            num_pel_log2);                                   \
181
103k
  }
cfl_subtract_average_4x16_c
Line
Count
Source
178
125k
                                                        int16_t *dst) {      \
179
125k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
125k
                            num_pel_log2);                                   \
181
125k
  }
cfl_subtract_average_8x4_c
Line
Count
Source
178
90.0k
                                                        int16_t *dst) {      \
179
90.0k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
90.0k
                            num_pel_log2);                                   \
181
90.0k
  }
cfl_subtract_average_8x8_c
Line
Count
Source
178
166k
                                                        int16_t *dst) {      \
179
166k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
166k
                            num_pel_log2);                                   \
181
166k
  }
cfl_subtract_average_8x16_c
Line
Count
Source
178
69.1k
                                                        int16_t *dst) {      \
179
69.1k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
69.1k
                            num_pel_log2);                                   \
181
69.1k
  }
cfl_subtract_average_8x32_c
Line
Count
Source
178
24.3k
                                                        int16_t *dst) {      \
179
24.3k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
24.3k
                            num_pel_log2);                                   \
181
24.3k
  }
cfl_subtract_average_16x4_c
Line
Count
Source
178
72.1k
                                                        int16_t *dst) {      \
179
72.1k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
72.1k
                            num_pel_log2);                                   \
181
72.1k
  }
cfl_subtract_average_16x8_c
Line
Count
Source
178
84.8k
                                                        int16_t *dst) {      \
179
84.8k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
84.8k
                            num_pel_log2);                                   \
181
84.8k
  }
cfl_subtract_average_16x16_c
Line
Count
Source
178
74.7k
                                                        int16_t *dst) {      \
179
74.7k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
74.7k
                            num_pel_log2);                                   \
181
74.7k
  }
cfl_subtract_average_16x32_c
Line
Count
Source
178
18.1k
                                                        int16_t *dst) {      \
179
18.1k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
18.1k
                            num_pel_log2);                                   \
181
18.1k
  }
cfl_subtract_average_32x8_c
Line
Count
Source
178
23.4k
                                                        int16_t *dst) {      \
179
23.4k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
23.4k
                            num_pel_log2);                                   \
181
23.4k
  }
cfl_subtract_average_32x16_c
Line
Count
Source
178
14.1k
                                                        int16_t *dst) {      \
179
14.1k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
14.1k
                            num_pel_log2);                                   \
181
14.1k
  }
cfl_subtract_average_32x32_c
Line
Count
Source
178
17.8k
                                                        int16_t *dst) {      \
179
17.8k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
180
17.8k
                            num_pel_log2);                                   \
181
17.8k
  }
182
183
// Declare size-specific wrappers for all valid CfL sizes.
184
#define CFL_SUB_AVG_FN(arch)                                              \
185
  CFL_SUB_AVG_X(arch, 4, 4, 8, 4)                                         \
186
  CFL_SUB_AVG_X(arch, 4, 8, 16, 5)                                        \
187
  CFL_SUB_AVG_X(arch, 4, 16, 32, 6)                                       \
188
  CFL_SUB_AVG_X(arch, 8, 4, 16, 5)                                        \
189
  CFL_SUB_AVG_X(arch, 8, 8, 32, 6)                                        \
190
  CFL_SUB_AVG_X(arch, 8, 16, 64, 7)                                       \
191
  CFL_SUB_AVG_X(arch, 8, 32, 128, 8)                                      \
192
  CFL_SUB_AVG_X(arch, 16, 4, 32, 6)                                       \
193
  CFL_SUB_AVG_X(arch, 16, 8, 64, 7)                                       \
194
  CFL_SUB_AVG_X(arch, 16, 16, 128, 8)                                     \
195
  CFL_SUB_AVG_X(arch, 16, 32, 256, 9)                                     \
196
  CFL_SUB_AVG_X(arch, 32, 8, 128, 8)                                      \
197
  CFL_SUB_AVG_X(arch, 32, 16, 256, 9)                                     \
198
  CFL_SUB_AVG_X(arch, 32, 32, 512, 10)                                    \
199
  cfl_subtract_average_fn cfl_get_subtract_average_fn_##arch(             \
200
1.13M
      TX_SIZE tx_size) {                                                  \
201
1.13M
    static const cfl_subtract_average_fn sub_avg[TX_SIZES_ALL] = {        \
202
1.13M
      cfl_subtract_average_4x4_##arch,   /* 4x4 */                        \
203
1.13M
      cfl_subtract_average_8x8_##arch,   /* 8x8 */                        \
204
1.13M
      cfl_subtract_average_16x16_##arch, /* 16x16 */                      \
205
1.13M
      cfl_subtract_average_32x32_##arch, /* 32x32 */                      \
206
1.13M
      NULL,                              /* 64x64 (invalid CFL size) */   \
207
1.13M
      cfl_subtract_average_4x8_##arch,   /* 4x8 */                        \
208
1.13M
      cfl_subtract_average_8x4_##arch,   /* 8x4 */                        \
209
1.13M
      cfl_subtract_average_8x16_##arch,  /* 8x16 */                       \
210
1.13M
      cfl_subtract_average_16x8_##arch,  /* 16x8 */                       \
211
1.13M
      cfl_subtract_average_16x32_##arch, /* 16x32 */                      \
212
1.13M
      cfl_subtract_average_32x16_##arch, /* 32x16 */                      \
213
1.13M
      NULL,                              /* 32x64 (invalid CFL size) */   \
214
1.13M
      NULL,                              /* 64x32 (invalid CFL size) */   \
215
1.13M
      cfl_subtract_average_4x16_##arch,  /* 4x16 (invalid CFL size) */    \
216
1.13M
      cfl_subtract_average_16x4_##arch,  /* 16x4 (invalid CFL size) */    \
217
1.13M
      cfl_subtract_average_8x32_##arch,  /* 8x32 (invalid CFL size) */    \
218
1.13M
      cfl_subtract_average_32x8_##arch,  /* 32x8 (invalid CFL size) */    \
219
1.13M
      NULL,                              /* 16x64 (invalid CFL size) */   \
220
1.13M
      NULL,                              /* 64x16 (invalid CFL size) */   \
221
1.13M
    };                                                                    \
222
1.13M
    /* Modulo TX_SIZES_ALL to ensure that an attacker won't be able to */ \
223
1.13M
    /* index the function pointer array out of bounds. */                 \
224
1.13M
    return sub_avg[tx_size % TX_SIZES_ALL];                               \
225
1.13M
  }
226
227
#define CFL_PREDICT_lbd(arch, width, height)                                   \
228
  void cfl_predict_lbd_##width##x##height##_##arch(                            \
229
      const int16_t *pred_buf_q3, uint8_t *dst, int dst_stride, int alpha_q3); \
230
  void cfl_predict_lbd_##width##x##height##_##arch(                            \
231
      const int16_t *pred_buf_q3, uint8_t *dst, int dst_stride,                \
232
1.20M
      int alpha_q3) {                                                          \
233
1.20M
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
1.20M
                           height);                                            \
235
1.20M
  }
cfl_predict_lbd_4x4_c
Line
Count
Source
232
315k
      int alpha_q3) {                                                          \
233
315k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
315k
                           height);                                            \
235
315k
  }
cfl_predict_lbd_4x8_c
Line
Count
Source
232
93.1k
      int alpha_q3) {                                                          \
233
93.1k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
93.1k
                           height);                                            \
235
93.1k
  }
cfl_predict_lbd_4x16_c
Line
Count
Source
232
114k
      int alpha_q3) {                                                          \
233
114k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
114k
                           height);                                            \
235
114k
  }
cfl_predict_lbd_8x4_c
Line
Count
Source
232
90.2k
      int alpha_q3) {                                                          \
233
90.2k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
90.2k
                           height);                                            \
235
90.2k
  }
cfl_predict_lbd_8x8_c
Line
Count
Source
232
179k
      int alpha_q3) {                                                          \
233
179k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
179k
                           height);                                            \
235
179k
  }
cfl_predict_lbd_8x16_c
Line
Count
Source
232
72.2k
      int alpha_q3) {                                                          \
233
72.2k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
72.2k
                           height);                                            \
235
72.2k
  }
cfl_predict_lbd_8x32_c
Line
Count
Source
232
22.2k
      int alpha_q3) {                                                          \
233
22.2k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
22.2k
                           height);                                            \
235
22.2k
  }
cfl_predict_lbd_16x4_c
Line
Count
Source
232
75.2k
      int alpha_q3) {                                                          \
233
75.2k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
75.2k
                           height);                                            \
235
75.2k
  }
cfl_predict_lbd_16x8_c
Line
Count
Source
232
91.4k
      int alpha_q3) {                                                          \
233
91.4k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
91.4k
                           height);                                            \
235
91.4k
  }
cfl_predict_lbd_16x16_c
Line
Count
Source
232
77.6k
      int alpha_q3) {                                                          \
233
77.6k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
77.6k
                           height);                                            \
235
77.6k
  }
cfl_predict_lbd_16x32_c
Line
Count
Source
232
16.4k
      int alpha_q3) {                                                          \
233
16.4k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
16.4k
                           height);                                            \
235
16.4k
  }
cfl_predict_lbd_32x8_c
Line
Count
Source
232
22.4k
      int alpha_q3) {                                                          \
233
22.4k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
22.4k
                           height);                                            \
235
22.4k
  }
cfl_predict_lbd_32x16_c
Line
Count
Source
232
15.3k
      int alpha_q3) {                                                          \
233
15.3k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
15.3k
                           height);                                            \
235
15.3k
  }
cfl_predict_lbd_32x32_c
Line
Count
Source
232
17.6k
      int alpha_q3) {                                                          \
233
17.6k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width,      \
234
17.6k
                           height);                                            \
235
17.6k
  }
236
237
#if CONFIG_AV1_HIGHBITDEPTH
238
#define CFL_PREDICT_hbd(arch, width, height)                                   \
239
  void cfl_predict_hbd_##width##x##height##_##arch(                            \
240
      const int16_t *pred_buf_q3, uint16_t *dst, int dst_stride, int alpha_q3, \
241
      int bd);                                                                 \
242
  void cfl_predict_hbd_##width##x##height##_##arch(                            \
243
      const int16_t *pred_buf_q3, uint16_t *dst, int dst_stride, int alpha_q3, \
244
1.06M
      int bd) {                                                                \
245
1.06M
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
1.06M
                           height);                                            \
247
1.06M
  }
cfl_predict_hbd_4x4_c
Line
Count
Source
244
182k
      int bd) {                                                                \
245
182k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
182k
                           height);                                            \
247
182k
  }
cfl_predict_hbd_4x8_c
Line
Count
Source
244
113k
      int bd) {                                                                \
245
113k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
113k
                           height);                                            \
247
113k
  }
cfl_predict_hbd_4x16_c
Line
Count
Source
244
136k
      int bd) {                                                                \
245
136k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
136k
                           height);                                            \
247
136k
  }
cfl_predict_hbd_8x4_c
Line
Count
Source
244
89.8k
      int bd) {                                                                \
245
89.8k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
89.8k
                           height);                                            \
247
89.8k
  }
cfl_predict_hbd_8x8_c
Line
Count
Source
244
153k
      int bd) {                                                                \
245
153k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
153k
                           height);                                            \
247
153k
  }
cfl_predict_hbd_8x16_c
Line
Count
Source
244
66.1k
      int bd) {                                                                \
245
66.1k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
66.1k
                           height);                                            \
247
66.1k
  }
cfl_predict_hbd_8x32_c
Line
Count
Source
244
26.4k
      int bd) {                                                                \
245
26.4k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
26.4k
                           height);                                            \
247
26.4k
  }
cfl_predict_hbd_16x4_c
Line
Count
Source
244
69.0k
      int bd) {                                                                \
245
69.0k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
69.0k
                           height);                                            \
247
69.0k
  }
cfl_predict_hbd_16x8_c
Line
Count
Source
244
78.2k
      int bd) {                                                                \
245
78.2k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
78.2k
                           height);                                            \
247
78.2k
  }
cfl_predict_hbd_16x16_c
Line
Count
Source
244
71.7k
      int bd) {                                                                \
245
71.7k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
71.7k
                           height);                                            \
247
71.7k
  }
cfl_predict_hbd_16x32_c
Line
Count
Source
244
19.9k
      int bd) {                                                                \
245
19.9k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
19.9k
                           height);                                            \
247
19.9k
  }
cfl_predict_hbd_32x8_c
Line
Count
Source
244
24.4k
      int bd) {                                                                \
245
24.4k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
24.4k
                           height);                                            \
247
24.4k
  }
cfl_predict_hbd_32x16_c
Line
Count
Source
244
13.0k
      int bd) {                                                                \
245
13.0k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
13.0k
                           height);                                            \
247
13.0k
  }
cfl_predict_hbd_32x32_c
Line
Count
Source
244
18.0k
      int bd) {                                                                \
245
18.0k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
246
18.0k
                           height);                                            \
247
18.0k
  }
248
#endif
249
250
// This wrapper exists because clang format does not like calling macros with
251
// lowercase letters.
252
#define CFL_PREDICT_X(arch, width, height, bd) \
253
  CFL_PREDICT_##bd(arch, width, height)
254
255
#define CFL_PREDICT_FN(arch, bd)                                            \
256
  CFL_PREDICT_X(arch, 4, 4, bd)                                             \
257
  CFL_PREDICT_X(arch, 4, 8, bd)                                             \
258
  CFL_PREDICT_X(arch, 4, 16, bd)                                            \
259
  CFL_PREDICT_X(arch, 8, 4, bd)                                             \
260
  CFL_PREDICT_X(arch, 8, 8, bd)                                             \
261
  CFL_PREDICT_X(arch, 8, 16, bd)                                            \
262
  CFL_PREDICT_X(arch, 8, 32, bd)                                            \
263
  CFL_PREDICT_X(arch, 16, 4, bd)                                            \
264
  CFL_PREDICT_X(arch, 16, 8, bd)                                            \
265
  CFL_PREDICT_X(arch, 16, 16, bd)                                           \
266
  CFL_PREDICT_X(arch, 16, 32, bd)                                           \
267
  CFL_PREDICT_X(arch, 32, 8, bd)                                            \
268
  CFL_PREDICT_X(arch, 32, 16, bd)                                           \
269
  CFL_PREDICT_X(arch, 32, 32, bd)                                           \
270
2.26M
  cfl_predict_##bd##_fn cfl_get_predict_##bd##_fn_##arch(TX_SIZE tx_size) { \
271
2.26M
    static const cfl_predict_##bd##_fn pred[TX_SIZES_ALL] = {               \
272
2.26M
      cfl_predict_##bd##_4x4_##arch,   /* 4x4 */                            \
273
2.26M
      cfl_predict_##bd##_8x8_##arch,   /* 8x8 */                            \
274
2.26M
      cfl_predict_##bd##_16x16_##arch, /* 16x16 */                          \
275
2.26M
      cfl_predict_##bd##_32x32_##arch, /* 32x32 */                          \
276
2.26M
      NULL,                            /* 64x64 (invalid CFL size) */       \
277
2.26M
      cfl_predict_##bd##_4x8_##arch,   /* 4x8 */                            \
278
2.26M
      cfl_predict_##bd##_8x4_##arch,   /* 8x4 */                            \
279
2.26M
      cfl_predict_##bd##_8x16_##arch,  /* 8x16 */                           \
280
2.26M
      cfl_predict_##bd##_16x8_##arch,  /* 16x8 */                           \
281
2.26M
      cfl_predict_##bd##_16x32_##arch, /* 16x32 */                          \
282
2.26M
      cfl_predict_##bd##_32x16_##arch, /* 32x16 */                          \
283
2.26M
      NULL,                            /* 32x64 (invalid CFL size) */       \
284
2.26M
      NULL,                            /* 64x32 (invalid CFL size) */       \
285
2.26M
      cfl_predict_##bd##_4x16_##arch,  /* 4x16  */                          \
286
2.26M
      cfl_predict_##bd##_16x4_##arch,  /* 16x4  */                          \
287
2.26M
      cfl_predict_##bd##_8x32_##arch,  /* 8x32  */                          \
288
2.26M
      cfl_predict_##bd##_32x8_##arch,  /* 32x8  */                          \
289
2.26M
      NULL,                            /* 16x64 (invalid CFL size) */       \
290
2.26M
      NULL,                            /* 64x16 (invalid CFL size) */       \
291
2.26M
    };                                                                      \
292
2.26M
    /* Modulo TX_SIZES_ALL to ensure that an attacker won't be able to */   \
293
2.26M
    /* index the function pointer array out of bounds. */                   \
294
2.26M
    return pred[tx_size % TX_SIZES_ALL];                                    \
295
2.26M
  }
cfl_get_predict_lbd_fn_c
Line
Count
Source
270
1.20M
  cfl_predict_##bd##_fn cfl_get_predict_##bd##_fn_##arch(TX_SIZE tx_size) { \
271
1.20M
    static const cfl_predict_##bd##_fn pred[TX_SIZES_ALL] = {               \
272
1.20M
      cfl_predict_##bd##_4x4_##arch,   /* 4x4 */                            \
273
1.20M
      cfl_predict_##bd##_8x8_##arch,   /* 8x8 */                            \
274
1.20M
      cfl_predict_##bd##_16x16_##arch, /* 16x16 */                          \
275
1.20M
      cfl_predict_##bd##_32x32_##arch, /* 32x32 */                          \
276
1.20M
      NULL,                            /* 64x64 (invalid CFL size) */       \
277
1.20M
      cfl_predict_##bd##_4x8_##arch,   /* 4x8 */                            \
278
1.20M
      cfl_predict_##bd##_8x4_##arch,   /* 8x4 */                            \
279
1.20M
      cfl_predict_##bd##_8x16_##arch,  /* 8x16 */                           \
280
1.20M
      cfl_predict_##bd##_16x8_##arch,  /* 16x8 */                           \
281
1.20M
      cfl_predict_##bd##_16x32_##arch, /* 16x32 */                          \
282
1.20M
      cfl_predict_##bd##_32x16_##arch, /* 32x16 */                          \
283
1.20M
      NULL,                            /* 32x64 (invalid CFL size) */       \
284
1.20M
      NULL,                            /* 64x32 (invalid CFL size) */       \
285
1.20M
      cfl_predict_##bd##_4x16_##arch,  /* 4x16  */                          \
286
1.20M
      cfl_predict_##bd##_16x4_##arch,  /* 16x4  */                          \
287
1.20M
      cfl_predict_##bd##_8x32_##arch,  /* 8x32  */                          \
288
1.20M
      cfl_predict_##bd##_32x8_##arch,  /* 32x8  */                          \
289
1.20M
      NULL,                            /* 16x64 (invalid CFL size) */       \
290
1.20M
      NULL,                            /* 64x16 (invalid CFL size) */       \
291
1.20M
    };                                                                      \
292
1.20M
    /* Modulo TX_SIZES_ALL to ensure that an attacker won't be able to */   \
293
1.20M
    /* index the function pointer array out of bounds. */                   \
294
1.20M
    return pred[tx_size % TX_SIZES_ALL];                                    \
295
1.20M
  }
cfl_get_predict_hbd_fn_c
Line
Count
Source
270
1.06M
  cfl_predict_##bd##_fn cfl_get_predict_##bd##_fn_##arch(TX_SIZE tx_size) { \
271
1.06M
    static const cfl_predict_##bd##_fn pred[TX_SIZES_ALL] = {               \
272
1.06M
      cfl_predict_##bd##_4x4_##arch,   /* 4x4 */                            \
273
1.06M
      cfl_predict_##bd##_8x8_##arch,   /* 8x8 */                            \
274
1.06M
      cfl_predict_##bd##_16x16_##arch, /* 16x16 */                          \
275
1.06M
      cfl_predict_##bd##_32x32_##arch, /* 32x32 */                          \
276
1.06M
      NULL,                            /* 64x64 (invalid CFL size) */       \
277
1.06M
      cfl_predict_##bd##_4x8_##arch,   /* 4x8 */                            \
278
1.06M
      cfl_predict_##bd##_8x4_##arch,   /* 8x4 */                            \
279
1.06M
      cfl_predict_##bd##_8x16_##arch,  /* 8x16 */                           \
280
1.06M
      cfl_predict_##bd##_16x8_##arch,  /* 16x8 */                           \
281
1.06M
      cfl_predict_##bd##_16x32_##arch, /* 16x32 */                          \
282
1.06M
      cfl_predict_##bd##_32x16_##arch, /* 32x16 */                          \
283
1.06M
      NULL,                            /* 32x64 (invalid CFL size) */       \
284
1.06M
      NULL,                            /* 64x32 (invalid CFL size) */       \
285
1.06M
      cfl_predict_##bd##_4x16_##arch,  /* 4x16  */                          \
286
1.06M
      cfl_predict_##bd##_16x4_##arch,  /* 16x4  */                          \
287
1.06M
      cfl_predict_##bd##_8x32_##arch,  /* 8x32  */                          \
288
1.06M
      cfl_predict_##bd##_32x8_##arch,  /* 32x8  */                          \
289
1.06M
      NULL,                            /* 16x64 (invalid CFL size) */       \
290
1.06M
      NULL,                            /* 64x16 (invalid CFL size) */       \
291
1.06M
    };                                                                      \
292
1.06M
    /* Modulo TX_SIZES_ALL to ensure that an attacker won't be able to */   \
293
1.06M
    /* index the function pointer array out of bounds. */                   \
294
1.06M
    return pred[tx_size % TX_SIZES_ALL];                                    \
295
1.06M
  }
296
297
#endif  // AOM_AV1_COMMON_CFL_H_