Coverage Report

Created: 2025-11-16 07:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/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
18.2M
static INLINE CFL_ALLOWED_TYPE is_cfl_allowed(const MACROBLOCKD *xd) {
20
18.2M
  const MB_MODE_INFO *mbmi = xd->mi[0];
21
18.2M
  const BLOCK_SIZE bsize = mbmi->bsize;
22
18.2M
  assert(bsize < BLOCK_SIZES_ALL);
23
18.2M
  if (xd->lossless[mbmi->segment_id]) {
24
    // In lossless, CfL is available when the partition size is equal to the
25
    // transform size.
26
131k
    const int ssx = xd->plane[AOM_PLANE_U].subsampling_x;
27
131k
    const int ssy = xd->plane[AOM_PLANE_U].subsampling_y;
28
131k
    const int plane_bsize = get_plane_block_size(bsize, ssx, ssy);
29
131k
    return (CFL_ALLOWED_TYPE)(plane_bsize == BLOCK_4X4);
30
131k
  }
31
  // Spec: CfL is available to luma partitions lesser than or equal to 32x32
32
18.0M
  return (CFL_ALLOWED_TYPE)(block_size_wide[bsize] <= 32 &&
33
17.6M
                            block_size_high[bsize] <= 32);
34
18.2M
}
Unexecuted instantiation: decodeframe.c:is_cfl_allowed
decodemv.c:is_cfl_allowed
Line
Count
Source
19
9.02M
static INLINE CFL_ALLOWED_TYPE is_cfl_allowed(const MACROBLOCKD *xd) {
20
9.02M
  const MB_MODE_INFO *mbmi = xd->mi[0];
21
9.02M
  const BLOCK_SIZE bsize = mbmi->bsize;
22
9.02M
  assert(bsize < BLOCK_SIZES_ALL);
23
9.02M
  if (xd->lossless[mbmi->segment_id]) {
24
    // In lossless, CfL is available when the partition size is equal to the
25
    // transform size.
26
94.6k
    const int ssx = xd->plane[AOM_PLANE_U].subsampling_x;
27
94.6k
    const int ssy = xd->plane[AOM_PLANE_U].subsampling_y;
28
94.6k
    const int plane_bsize = get_plane_block_size(bsize, ssx, ssy);
29
94.6k
    return (CFL_ALLOWED_TYPE)(plane_bsize == BLOCK_4X4);
30
94.6k
  }
31
  // Spec: CfL is available to luma partitions lesser than or equal to 32x32
32
8.93M
  return (CFL_ALLOWED_TYPE)(block_size_wide[bsize] <= 32 &&
33
8.52M
                            block_size_high[bsize] <= 32);
34
9.02M
}
Unexecuted instantiation: bitstream.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: global_motion_facade.c:is_cfl_allowed
Unexecuted instantiation: mcomp.c:is_cfl_allowed
Unexecuted instantiation: palette.c:is_cfl_allowed
Unexecuted instantiation: rdopt.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: 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
cfl.c:is_cfl_allowed
Line
Count
Source
19
4.59M
static INLINE CFL_ALLOWED_TYPE is_cfl_allowed(const MACROBLOCKD *xd) {
20
4.59M
  const MB_MODE_INFO *mbmi = xd->mi[0];
21
4.59M
  const BLOCK_SIZE bsize = mbmi->bsize;
22
4.59M
  assert(bsize < BLOCK_SIZES_ALL);
23
4.59M
  if (xd->lossless[mbmi->segment_id]) {
24
    // In lossless, CfL is available when the partition size is equal to the
25
    // transform size.
26
18.4k
    const int ssx = xd->plane[AOM_PLANE_U].subsampling_x;
27
18.4k
    const int ssy = xd->plane[AOM_PLANE_U].subsampling_y;
28
18.4k
    const int plane_bsize = get_plane_block_size(bsize, ssx, ssy);
29
18.4k
    return (CFL_ALLOWED_TYPE)(plane_bsize == BLOCK_4X4);
30
18.4k
  }
31
  // Spec: CfL is available to luma partitions lesser than or equal to 32x32
32
4.57M
  return (CFL_ALLOWED_TYPE)(block_size_wide[bsize] <= 32 &&
33
4.57M
                            block_size_high[bsize] <= 32);
34
4.59M
}
reconintra.c:is_cfl_allowed
Line
Count
Source
19
4.59M
static INLINE CFL_ALLOWED_TYPE is_cfl_allowed(const MACROBLOCKD *xd) {
20
4.59M
  const MB_MODE_INFO *mbmi = xd->mi[0];
21
4.59M
  const BLOCK_SIZE bsize = mbmi->bsize;
22
4.59M
  assert(bsize < BLOCK_SIZES_ALL);
23
4.59M
  if (xd->lossless[mbmi->segment_id]) {
24
    // In lossless, CfL is available when the partition size is equal to the
25
    // transform size.
26
18.4k
    const int ssx = xd->plane[AOM_PLANE_U].subsampling_x;
27
18.4k
    const int ssy = xd->plane[AOM_PLANE_U].subsampling_y;
28
18.4k
    const int plane_bsize = get_plane_block_size(bsize, ssx, ssy);
29
18.4k
    return (CFL_ALLOWED_TYPE)(plane_bsize == BLOCK_4X4);
30
18.4k
  }
31
  // Spec: CfL is available to luma partitions lesser than or equal to 32x32
32
4.57M
  return (CFL_ALLOWED_TYPE)(block_size_wide[bsize] <= 32 &&
33
4.57M
                            block_size_high[bsize] <= 32);
34
4.59M
}
Unexecuted instantiation: allintra_vis.c:is_cfl_allowed
Unexecuted instantiation: compound_type.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: encode_strategy.c:is_cfl_allowed
Unexecuted instantiation: interp_search.c:is_cfl_allowed
Unexecuted instantiation: motion_search_facade.c:is_cfl_allowed
Unexecuted instantiation: partition_search.c:is_cfl_allowed
Unexecuted instantiation: partition_strategy.c:is_cfl_allowed
Unexecuted instantiation: nonrd_pickmode.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
28.6M
                                                  const MACROBLOCKD *xd) {
40
28.6M
  const MB_MODE_INFO *mbmi = xd->mi[0];
41
42
28.6M
  if (cm->seq_params->monochrome) return CFL_DISALLOWED;
43
44
28.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
1.60M
    return CFL_ALLOWED;
51
1.60M
  }
52
53
  // If this block has chroma information, we know whether we're
54
  // actually going to perform a CfL prediction
55
26.9M
  return (CFL_ALLOWED_TYPE)(!is_inter_block(mbmi) &&
56
26.8M
                            mbmi->uv_mode == UV_CFL_PRED);
57
28.5M
}
decodeframe.c:store_cfl_required
Line
Count
Source
39
18.8M
                                                  const MACROBLOCKD *xd) {
40
18.8M
  const MB_MODE_INFO *mbmi = xd->mi[0];
41
42
18.8M
  if (cm->seq_params->monochrome) return CFL_DISALLOWED;
43
44
18.7M
  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
842k
    return CFL_ALLOWED;
51
842k
  }
52
53
  // If this block has chroma information, we know whether we're
54
  // actually going to perform a CfL prediction
55
17.8M
  return (CFL_ALLOWED_TYPE)(!is_inter_block(mbmi) &&
56
17.7M
                            mbmi->uv_mode == UV_CFL_PRED);
57
18.7M
}
decodemv.c:store_cfl_required
Line
Count
Source
39
9.85M
                                                  const MACROBLOCKD *xd) {
40
9.85M
  const MB_MODE_INFO *mbmi = xd->mi[0];
41
42
9.85M
  if (cm->seq_params->monochrome) return CFL_DISALLOWED;
43
44
9.81M
  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
758k
    return CFL_ALLOWED;
51
758k
  }
52
53
  // If this block has chroma information, we know whether we're
54
  // actually going to perform a CfL prediction
55
9.05M
  return (CFL_ALLOWED_TYPE)(!is_inter_block(mbmi) &&
56
9.02M
                            mbmi->uv_mode == UV_CFL_PRED);
57
9.81M
}
Unexecuted instantiation: bitstream.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: global_motion_facade.c:store_cfl_required
Unexecuted instantiation: mcomp.c:store_cfl_required
Unexecuted instantiation: palette.c:store_cfl_required
Unexecuted instantiation: rdopt.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: 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: cfl.c:store_cfl_required
Unexecuted instantiation: reconintra.c:store_cfl_required
Unexecuted instantiation: allintra_vis.c:store_cfl_required
Unexecuted instantiation: compound_type.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: encode_strategy.c:store_cfl_required
Unexecuted instantiation: interp_search.c:store_cfl_required
Unexecuted instantiation: motion_search_facade.c:store_cfl_required
Unexecuted instantiation: partition_search.c:store_cfl_required
Unexecuted instantiation: partition_strategy.c:store_cfl_required
Unexecuted instantiation: nonrd_pickmode.c:store_cfl_required
58
59
549M
static INLINE int get_scaled_luma_q0(int alpha_q3, int16_t pred_buf_q3) {
60
549M
  int scaled_luma_q6 = alpha_q3 * pred_buf_q3;
61
549M
  return ROUND_POWER_OF_TWO_SIGNED(scaled_luma_q6, 6);
62
549M
}
Unexecuted instantiation: decodeframe.c:get_scaled_luma_q0
Unexecuted instantiation: decodemv.c:get_scaled_luma_q0
Unexecuted instantiation: bitstream.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: 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: rdopt.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: 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
cfl.c:get_scaled_luma_q0
Line
Count
Source
59
549M
static INLINE int get_scaled_luma_q0(int alpha_q3, int16_t pred_buf_q3) {
60
549M
  int scaled_luma_q6 = alpha_q3 * pred_buf_q3;
61
549M
  return ROUND_POWER_OF_TWO_SIGNED(scaled_luma_q6, 6);
62
549M
}
Unexecuted instantiation: reconintra.c:get_scaled_luma_q0
Unexecuted instantiation: allintra_vis.c:get_scaled_luma_q0
Unexecuted instantiation: compound_type.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: 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
Unexecuted instantiation: partition_search.c:get_scaled_luma_q0
Unexecuted instantiation: partition_strategy.c:get_scaled_luma_q0
Unexecuted instantiation: nonrd_pickmode.c:get_scaled_luma_q0
63
64
4.59M
static INLINE CFL_PRED_TYPE get_cfl_pred_type(PLANE_TYPE plane) {
65
4.59M
  assert(plane > 0);
66
4.59M
  return (CFL_PRED_TYPE)(plane - 1);
67
4.59M
}
Unexecuted instantiation: decodeframe.c:get_cfl_pred_type
Unexecuted instantiation: decodemv.c:get_cfl_pred_type
Unexecuted instantiation: bitstream.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: 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: rdopt.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: 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: cfl.c:get_cfl_pred_type
reconintra.c:get_cfl_pred_type
Line
Count
Source
64
4.59M
static INLINE CFL_PRED_TYPE get_cfl_pred_type(PLANE_TYPE plane) {
65
4.59M
  assert(plane > 0);
66
4.59M
  return (CFL_PRED_TYPE)(plane - 1);
67
4.59M
}
Unexecuted instantiation: allintra_vis.c:get_cfl_pred_type
Unexecuted instantiation: compound_type.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: 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
Unexecuted instantiation: partition_search.c:get_cfl_pred_type
Unexecuted instantiation: partition_strategy.c:get_cfl_pred_type
Unexecuted instantiation: nonrd_pickmode.c:get_cfl_pred_type
68
69
void cfl_predict_block(MACROBLOCKD *const xd, uint8_t *dst, int dst_stride,
70
                       TX_SIZE tx_size, int plane);
71
72
void cfl_store_block(MACROBLOCKD *const xd, BLOCK_SIZE bsize, TX_SIZE tx_size);
73
74
void cfl_store_tx(MACROBLOCKD *const xd, int row, int col, TX_SIZE tx_size,
75
                  BLOCK_SIZE bsize);
76
77
void cfl_store_dc_pred(MACROBLOCKD *const xd, const uint8_t *input,
78
                       CFL_PRED_TYPE pred_plane, int width);
79
80
void cfl_load_dc_pred(MACROBLOCKD *const xd, uint8_t *dst, int dst_stride,
81
                      TX_SIZE tx_size, CFL_PRED_TYPE pred_plane);
82
83
// Allows the CFL_SUBSAMPLE function to switch types depending on the bitdepth.
84
#define CFL_lbd_TYPE uint8_t *cfl_type
85
#define CFL_hbd_TYPE uint16_t *cfl_type
86
87
// Declare a size-specific wrapper for the size-generic function. The compiler
88
// will inline the size generic function in here, the advantage is that the size
89
// will be constant allowing for loop unrolling and other constant propagated
90
// goodness.
91
#define CFL_SUBSAMPLE(arch, sub, bd, width, height)                       \
92
  void cfl_subsample_##bd##_##sub##_##width##x##height##_##arch(          \
93
4.12M
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
4.12M
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
4.12M
                                               output_q3, width, height); \
96
4.12M
  }
cfl_subsample_lbd_420_4x4_c
Line
Count
Source
93
199k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
199k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
199k
                                               output_q3, width, height); \
96
199k
  }
cfl_subsample_lbd_420_8x8_c
Line
Count
Source
93
162k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
162k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
162k
                                               output_q3, width, height); \
96
162k
  }
cfl_subsample_lbd_420_16x16_c
Line
Count
Source
93
24.2k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
24.2k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
24.2k
                                               output_q3, width, height); \
96
24.2k
  }
cfl_subsample_lbd_420_32x32_c
Line
Count
Source
93
9.74k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
9.74k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
9.74k
                                               output_q3, width, height); \
96
9.74k
  }
cfl_subsample_lbd_420_4x8_c
Line
Count
Source
93
41.9k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
41.9k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
41.9k
                                               output_q3, width, height); \
96
41.9k
  }
cfl_subsample_lbd_420_8x4_c
Line
Count
Source
93
60.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
60.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
60.0k
                                               output_q3, width, height); \
96
60.0k
  }
cfl_subsample_lbd_420_8x16_c
Line
Count
Source
93
18.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
18.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
18.0k
                                               output_q3, width, height); \
96
18.0k
  }
cfl_subsample_lbd_420_16x8_c
Line
Count
Source
93
25.5k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
25.5k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
25.5k
                                               output_q3, width, height); \
96
25.5k
  }
cfl_subsample_lbd_420_16x32_c
Line
Count
Source
93
10.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
10.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
10.0k
                                               output_q3, width, height); \
96
10.0k
  }
cfl_subsample_lbd_420_32x16_c
Line
Count
Source
93
5.75k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
5.75k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
5.75k
                                               output_q3, width, height); \
96
5.75k
  }
cfl_subsample_lbd_420_4x16_c
Line
Count
Source
93
106k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
106k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
106k
                                               output_q3, width, height); \
96
106k
  }
cfl_subsample_lbd_420_16x4_c
Line
Count
Source
93
56.1k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
56.1k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
56.1k
                                               output_q3, width, height); \
96
56.1k
  }
cfl_subsample_lbd_420_8x32_c
Line
Count
Source
93
31.1k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
31.1k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
31.1k
                                               output_q3, width, height); \
96
31.1k
  }
cfl_subsample_lbd_420_32x8_c
Line
Count
Source
93
9.66k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
9.66k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
9.66k
                                               output_q3, width, height); \
96
9.66k
  }
cfl_subsample_lbd_422_4x4_c
Line
Count
Source
93
1.00k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
1.00k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
1.00k
                                               output_q3, width, height); \
96
1.00k
  }
cfl_subsample_lbd_422_8x8_c
Line
Count
Source
93
617
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
617
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
617
                                               output_q3, width, height); \
96
617
  }
cfl_subsample_lbd_422_16x16_c
Line
Count
Source
93
151
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
151
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
151
                                               output_q3, width, height); \
96
151
  }
cfl_subsample_lbd_422_32x32_c
Line
Count
Source
93
89
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
89
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
89
                                               output_q3, width, height); \
96
89
  }
Unexecuted instantiation: cfl_subsample_lbd_422_4x8_c
cfl_subsample_lbd_422_8x4_c
Line
Count
Source
93
167
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
167
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
167
                                               output_q3, width, height); \
96
167
  }
Unexecuted instantiation: cfl_subsample_lbd_422_8x16_c
cfl_subsample_lbd_422_16x8_c
Line
Count
Source
93
95
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
95
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
95
                                               output_q3, width, height); \
96
95
  }
Unexecuted instantiation: cfl_subsample_lbd_422_16x32_c
cfl_subsample_lbd_422_32x16_c
Line
Count
Source
93
76
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
76
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
76
                                               output_q3, width, height); \
96
76
  }
Unexecuted instantiation: cfl_subsample_lbd_422_4x16_c
cfl_subsample_lbd_422_16x4_c
Line
Count
Source
93
148
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
148
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
148
                                               output_q3, width, height); \
96
148
  }
Unexecuted instantiation: cfl_subsample_lbd_422_8x32_c
cfl_subsample_lbd_422_32x8_c
Line
Count
Source
93
634
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
634
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
634
                                               output_q3, width, height); \
96
634
  }
cfl_subsample_lbd_444_4x4_c
Line
Count
Source
93
319k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
319k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
319k
                                               output_q3, width, height); \
96
319k
  }
cfl_subsample_lbd_444_8x8_c
Line
Count
Source
93
435k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
435k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
435k
                                               output_q3, width, height); \
96
435k
  }
cfl_subsample_lbd_444_16x16_c
Line
Count
Source
93
74.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
74.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
74.3k
                                               output_q3, width, height); \
96
74.3k
  }
cfl_subsample_lbd_444_32x32_c
Line
Count
Source
93
28.9k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
28.9k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
28.9k
                                               output_q3, width, height); \
96
28.9k
  }
cfl_subsample_lbd_444_4x8_c
Line
Count
Source
93
69.4k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
69.4k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
69.4k
                                               output_q3, width, height); \
96
69.4k
  }
cfl_subsample_lbd_444_8x4_c
Line
Count
Source
93
94.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
94.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
94.0k
                                               output_q3, width, height); \
96
94.0k
  }
cfl_subsample_lbd_444_8x16_c
Line
Count
Source
93
67.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
67.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
67.0k
                                               output_q3, width, height); \
96
67.0k
  }
cfl_subsample_lbd_444_16x8_c
Line
Count
Source
93
83.9k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
83.9k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
83.9k
                                               output_q3, width, height); \
96
83.9k
  }
cfl_subsample_lbd_444_16x32_c
Line
Count
Source
93
20.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
20.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
20.3k
                                               output_q3, width, height); \
96
20.3k
  }
cfl_subsample_lbd_444_32x16_c
Line
Count
Source
93
19.9k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
19.9k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
19.9k
                                               output_q3, width, height); \
96
19.9k
  }
cfl_subsample_lbd_444_4x16_c
Line
Count
Source
93
59.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
59.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
59.8k
                                               output_q3, width, height); \
96
59.8k
  }
cfl_subsample_lbd_444_16x4_c
Line
Count
Source
93
66.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
66.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
66.7k
                                               output_q3, width, height); \
96
66.7k
  }
cfl_subsample_lbd_444_8x32_c
Line
Count
Source
93
40.0k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
40.0k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
40.0k
                                               output_q3, width, height); \
96
40.0k
  }
cfl_subsample_lbd_444_32x8_c
Line
Count
Source
93
35.6k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
35.6k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
35.6k
                                               output_q3, width, height); \
96
35.6k
  }
cfl_subsample_hbd_420_4x4_c
Line
Count
Source
93
232k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
232k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
232k
                                               output_q3, width, height); \
96
232k
  }
cfl_subsample_hbd_420_8x8_c
Line
Count
Source
93
238k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
238k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
238k
                                               output_q3, width, height); \
96
238k
  }
cfl_subsample_hbd_420_16x16_c
Line
Count
Source
93
54.9k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
54.9k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
54.9k
                                               output_q3, width, height); \
96
54.9k
  }
cfl_subsample_hbd_420_32x32_c
Line
Count
Source
93
20.5k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
20.5k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
20.5k
                                               output_q3, width, height); \
96
20.5k
  }
cfl_subsample_hbd_420_4x8_c
Line
Count
Source
93
94.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
94.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
94.8k
                                               output_q3, width, height); \
96
94.8k
  }
cfl_subsample_hbd_420_8x4_c
Line
Count
Source
93
128k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
128k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
128k
                                               output_q3, width, height); \
96
128k
  }
cfl_subsample_hbd_420_8x16_c
Line
Count
Source
93
37.2k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
37.2k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
37.2k
                                               output_q3, width, height); \
96
37.2k
  }
cfl_subsample_hbd_420_16x8_c
Line
Count
Source
93
57.9k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
57.9k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
57.9k
                                               output_q3, width, height); \
96
57.9k
  }
cfl_subsample_hbd_420_16x32_c
Line
Count
Source
93
14.2k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
14.2k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
14.2k
                                               output_q3, width, height); \
96
14.2k
  }
cfl_subsample_hbd_420_32x16_c
Line
Count
Source
93
12.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
12.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
12.7k
                                               output_q3, width, height); \
96
12.7k
  }
cfl_subsample_hbd_420_4x16_c
Line
Count
Source
93
107k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
107k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
107k
                                               output_q3, width, height); \
96
107k
  }
cfl_subsample_hbd_420_16x4_c
Line
Count
Source
93
125k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
125k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
125k
                                               output_q3, width, height); \
96
125k
  }
cfl_subsample_hbd_420_8x32_c
Line
Count
Source
93
53.1k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
53.1k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
53.1k
                                               output_q3, width, height); \
96
53.1k
  }
cfl_subsample_hbd_420_32x8_c
Line
Count
Source
93
21.5k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
21.5k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
21.5k
                                               output_q3, width, height); \
96
21.5k
  }
cfl_subsample_hbd_422_4x4_c
Line
Count
Source
93
1.70k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
1.70k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
1.70k
                                               output_q3, width, height); \
96
1.70k
  }
cfl_subsample_hbd_422_8x8_c
Line
Count
Source
93
3.91k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
3.91k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
3.91k
                                               output_q3, width, height); \
96
3.91k
  }
cfl_subsample_hbd_422_16x16_c
Line
Count
Source
93
1.61k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
1.61k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
1.61k
                                               output_q3, width, height); \
96
1.61k
  }
cfl_subsample_hbd_422_32x32_c
Line
Count
Source
93
293
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
293
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
293
                                               output_q3, width, height); \
96
293
  }
Unexecuted instantiation: cfl_subsample_hbd_422_4x8_c
cfl_subsample_hbd_422_8x4_c
Line
Count
Source
93
253
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
253
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
253
                                               output_q3, width, height); \
96
253
  }
Unexecuted instantiation: cfl_subsample_hbd_422_8x16_c
cfl_subsample_hbd_422_16x8_c
Line
Count
Source
93
262
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
262
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
262
                                               output_q3, width, height); \
96
262
  }
Unexecuted instantiation: cfl_subsample_hbd_422_16x32_c
cfl_subsample_hbd_422_32x16_c
Line
Count
Source
93
1.47k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
1.47k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
1.47k
                                               output_q3, width, height); \
96
1.47k
  }
Unexecuted instantiation: cfl_subsample_hbd_422_4x16_c
cfl_subsample_hbd_422_16x4_c
Line
Count
Source
93
307
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
307
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
307
                                               output_q3, width, height); \
96
307
  }
Unexecuted instantiation: cfl_subsample_hbd_422_8x32_c
cfl_subsample_hbd_422_32x8_c
Line
Count
Source
93
407
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
407
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
407
                                               output_q3, width, height); \
96
407
  }
cfl_subsample_hbd_444_4x4_c
Line
Count
Source
93
182k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
182k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
182k
                                               output_q3, width, height); \
96
182k
  }
cfl_subsample_hbd_444_8x8_c
Line
Count
Source
93
259k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
259k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
259k
                                               output_q3, width, height); \
96
259k
  }
cfl_subsample_hbd_444_16x16_c
Line
Count
Source
93
28.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
28.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
28.8k
                                               output_q3, width, height); \
96
28.8k
  }
cfl_subsample_hbd_444_32x32_c
Line
Count
Source
93
13.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
13.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
13.7k
                                               output_q3, width, height); \
96
13.7k
  }
cfl_subsample_hbd_444_4x8_c
Line
Count
Source
93
26.1k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
26.1k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
26.1k
                                               output_q3, width, height); \
96
26.1k
  }
cfl_subsample_hbd_444_8x4_c
Line
Count
Source
93
39.4k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
39.4k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
39.4k
                                               output_q3, width, height); \
96
39.4k
  }
cfl_subsample_hbd_444_8x16_c
Line
Count
Source
93
23.6k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
23.6k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
23.6k
                                               output_q3, width, height); \
96
23.6k
  }
cfl_subsample_hbd_444_16x8_c
Line
Count
Source
93
26.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
26.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
26.3k
                                               output_q3, width, height); \
96
26.3k
  }
cfl_subsample_hbd_444_16x32_c
Line
Count
Source
93
10.7k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
10.7k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
10.7k
                                               output_q3, width, height); \
96
10.7k
  }
cfl_subsample_hbd_444_32x16_c
Line
Count
Source
93
8.71k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
8.71k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
8.71k
                                               output_q3, width, height); \
96
8.71k
  }
cfl_subsample_hbd_444_4x16_c
Line
Count
Source
93
40.3k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
40.3k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
40.3k
                                               output_q3, width, height); \
96
40.3k
  }
cfl_subsample_hbd_444_16x4_c
Line
Count
Source
93
22.1k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
22.1k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
22.1k
                                               output_q3, width, height); \
96
22.1k
  }
cfl_subsample_hbd_444_8x32_c
Line
Count
Source
93
39.8k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
39.8k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
39.8k
                                               output_q3, width, height); \
96
39.8k
  }
cfl_subsample_hbd_444_32x8_c
Line
Count
Source
93
11.6k
      const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) {     \
94
11.6k
    cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride,    \
95
11.6k
                                               output_q3, width, height); \
96
11.6k
  }
97
98
// Declare size-specific wrappers for all valid CfL sizes.
99
#define CFL_SUBSAMPLE_FUNCTIONS(arch, sub, bd)                            \
100
  CFL_SUBSAMPLE(arch, sub, bd, 4, 4)                                      \
101
  CFL_SUBSAMPLE(arch, sub, bd, 8, 8)                                      \
102
  CFL_SUBSAMPLE(arch, sub, bd, 16, 16)                                    \
103
  CFL_SUBSAMPLE(arch, sub, bd, 32, 32)                                    \
104
  CFL_SUBSAMPLE(arch, sub, bd, 4, 8)                                      \
105
  CFL_SUBSAMPLE(arch, sub, bd, 8, 4)                                      \
106
  CFL_SUBSAMPLE(arch, sub, bd, 8, 16)                                     \
107
  CFL_SUBSAMPLE(arch, sub, bd, 16, 8)                                     \
108
  CFL_SUBSAMPLE(arch, sub, bd, 16, 32)                                    \
109
  CFL_SUBSAMPLE(arch, sub, bd, 32, 16)                                    \
110
  CFL_SUBSAMPLE(arch, sub, bd, 4, 16)                                     \
111
  CFL_SUBSAMPLE(arch, sub, bd, 16, 4)                                     \
112
  CFL_SUBSAMPLE(arch, sub, bd, 8, 32)                                     \
113
  CFL_SUBSAMPLE(arch, sub, bd, 32, 8)                                     \
114
  cfl_subsample_##bd##_fn cfl_get_luma_subsampling_##sub##_##bd##_##arch( \
115
4.12M
      TX_SIZE tx_size) {                                                  \
116
4.12M
    CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
117
4.12M
    return subfn_##sub[tx_size];                                          \
118
4.12M
  }
119
120
// Declare an architecture-specific array of function pointers for size-specific
121
// wrappers.
122
#define CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd)                           \
123
4.12M
  static const cfl_subsample_##bd##_fn subfn_##sub[TX_SIZES_ALL] = {          \
124
4.12M
    cfl_subsample_##bd##_##sub##_4x4_##arch,   /* 4x4 */                      \
125
4.12M
    cfl_subsample_##bd##_##sub##_8x8_##arch,   /* 8x8 */                      \
126
4.12M
    cfl_subsample_##bd##_##sub##_16x16_##arch, /* 16x16 */                    \
127
4.12M
    cfl_subsample_##bd##_##sub##_32x32_##arch, /* 32x32 */                    \
128
4.12M
    NULL,                                      /* 64x64 (invalid CFL size) */ \
129
4.12M
    cfl_subsample_##bd##_##sub##_4x8_##arch,   /* 4x8 */                      \
130
4.12M
    cfl_subsample_##bd##_##sub##_8x4_##arch,   /* 8x4 */                      \
131
4.12M
    cfl_subsample_##bd##_##sub##_8x16_##arch,  /* 8x16 */                     \
132
4.12M
    cfl_subsample_##bd##_##sub##_16x8_##arch,  /* 16x8 */                     \
133
4.12M
    cfl_subsample_##bd##_##sub##_16x32_##arch, /* 16x32 */                    \
134
4.12M
    cfl_subsample_##bd##_##sub##_32x16_##arch, /* 32x16 */                    \
135
4.12M
    NULL,                                      /* 32x64 (invalid CFL size) */ \
136
4.12M
    NULL,                                      /* 64x32 (invalid CFL size) */ \
137
4.12M
    cfl_subsample_##bd##_##sub##_4x16_##arch,  /* 4x16  */                    \
138
4.12M
    cfl_subsample_##bd##_##sub##_16x4_##arch,  /* 16x4  */                    \
139
4.12M
    cfl_subsample_##bd##_##sub##_8x32_##arch,  /* 8x32  */                    \
140
4.12M
    cfl_subsample_##bd##_##sub##_32x8_##arch,  /* 32x8  */                    \
141
4.12M
    NULL,                                      /* 16x64 (invalid CFL size) */ \
142
4.12M
    NULL,                                      /* 64x16 (invalid CFL size) */ \
143
4.12M
  };
144
145
// The RTCD script does not support passing in an array, so we wrap it in this
146
// function.
147
#if CONFIG_AV1_HIGHBITDEPTH
148
#define CFL_GET_SUBSAMPLE_FUNCTION(arch)  \
149
  CFL_SUBSAMPLE_FUNCTIONS(arch, 420, lbd) \
150
  CFL_SUBSAMPLE_FUNCTIONS(arch, 422, lbd) \
151
  CFL_SUBSAMPLE_FUNCTIONS(arch, 444, lbd) \
152
  CFL_SUBSAMPLE_FUNCTIONS(arch, 420, hbd) \
153
  CFL_SUBSAMPLE_FUNCTIONS(arch, 422, hbd) \
154
  CFL_SUBSAMPLE_FUNCTIONS(arch, 444, hbd)
155
#else
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
#endif
161
162
// Declare a size-specific wrapper for the size-generic function. The compiler
163
// will inline the size generic function in here, the advantage is that the size
164
// will be constant allowing for loop unrolling and other constant propagated
165
// goodness.
166
#define CFL_SUB_AVG_X(arch, width, height, round_offset, num_pel_log2)       \
167
  void cfl_subtract_average_##width##x##height##_##arch(const uint16_t *src, \
168
2.29M
                                                        int16_t *dst) {      \
169
2.29M
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
2.29M
                            num_pel_log2);                                   \
171
2.29M
  }
cfl_subtract_average_4x4_c
Line
Count
Source
168
392k
                                                        int16_t *dst) {      \
169
392k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
392k
                            num_pel_log2);                                   \
171
392k
  }
cfl_subtract_average_4x8_c
Line
Count
Source
168
225k
                                                        int16_t *dst) {      \
169
225k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
225k
                            num_pel_log2);                                   \
171
225k
  }
cfl_subtract_average_4x16_c
Line
Count
Source
168
229k
                                                        int16_t *dst) {      \
169
229k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
229k
                            num_pel_log2);                                   \
171
229k
  }
cfl_subtract_average_8x4_c
Line
Count
Source
168
234k
                                                        int16_t *dst) {      \
169
234k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
234k
                            num_pel_log2);                                   \
171
234k
  }
cfl_subtract_average_8x8_c
Line
Count
Source
168
334k
                                                        int16_t *dst) {      \
169
334k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
334k
                            num_pel_log2);                                   \
171
334k
  }
cfl_subtract_average_8x16_c
Line
Count
Source
168
140k
                                                        int16_t *dst) {      \
169
140k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
140k
                            num_pel_log2);                                   \
171
140k
  }
cfl_subtract_average_8x32_c
Line
Count
Source
168
91.2k
                                                        int16_t *dst) {      \
169
91.2k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
91.2k
                            num_pel_log2);                                   \
171
91.2k
  }
cfl_subtract_average_16x4_c
Line
Count
Source
168
148k
                                                        int16_t *dst) {      \
169
148k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
148k
                            num_pel_log2);                                   \
171
148k
  }
cfl_subtract_average_16x8_c
Line
Count
Source
168
159k
                                                        int16_t *dst) {      \
169
159k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
159k
                            num_pel_log2);                                   \
171
159k
  }
cfl_subtract_average_16x16_c
Line
Count
Source
168
156k
                                                        int16_t *dst) {      \
169
156k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
156k
                            num_pel_log2);                                   \
171
156k
  }
cfl_subtract_average_16x32_c
Line
Count
Source
168
38.0k
                                                        int16_t *dst) {      \
169
38.0k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
38.0k
                            num_pel_log2);                                   \
171
38.0k
  }
cfl_subtract_average_32x8_c
Line
Count
Source
168
56.0k
                                                        int16_t *dst) {      \
169
56.0k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
56.0k
                            num_pel_log2);                                   \
171
56.0k
  }
cfl_subtract_average_32x16_c
Line
Count
Source
168
35.2k
                                                        int16_t *dst) {      \
169
35.2k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
35.2k
                            num_pel_log2);                                   \
171
35.2k
  }
cfl_subtract_average_32x32_c
Line
Count
Source
168
53.0k
                                                        int16_t *dst) {      \
169
53.0k
    subtract_average_##arch(src, dst, width, height, round_offset,           \
170
53.0k
                            num_pel_log2);                                   \
171
53.0k
  }
172
173
// Declare size-specific wrappers for all valid CfL sizes.
174
#define CFL_SUB_AVG_FN(arch)                                              \
175
  CFL_SUB_AVG_X(arch, 4, 4, 8, 4)                                         \
176
  CFL_SUB_AVG_X(arch, 4, 8, 16, 5)                                        \
177
  CFL_SUB_AVG_X(arch, 4, 16, 32, 6)                                       \
178
  CFL_SUB_AVG_X(arch, 8, 4, 16, 5)                                        \
179
  CFL_SUB_AVG_X(arch, 8, 8, 32, 6)                                        \
180
  CFL_SUB_AVG_X(arch, 8, 16, 64, 7)                                       \
181
  CFL_SUB_AVG_X(arch, 8, 32, 128, 8)                                      \
182
  CFL_SUB_AVG_X(arch, 16, 4, 32, 6)                                       \
183
  CFL_SUB_AVG_X(arch, 16, 8, 64, 7)                                       \
184
  CFL_SUB_AVG_X(arch, 16, 16, 128, 8)                                     \
185
  CFL_SUB_AVG_X(arch, 16, 32, 256, 9)                                     \
186
  CFL_SUB_AVG_X(arch, 32, 8, 128, 8)                                      \
187
  CFL_SUB_AVG_X(arch, 32, 16, 256, 9)                                     \
188
  CFL_SUB_AVG_X(arch, 32, 32, 512, 10)                                    \
189
  cfl_subtract_average_fn cfl_get_subtract_average_fn_##arch(             \
190
2.29M
      TX_SIZE tx_size) {                                                  \
191
2.29M
    static const cfl_subtract_average_fn sub_avg[TX_SIZES_ALL] = {        \
192
2.29M
      cfl_subtract_average_4x4_##arch,   /* 4x4 */                        \
193
2.29M
      cfl_subtract_average_8x8_##arch,   /* 8x8 */                        \
194
2.29M
      cfl_subtract_average_16x16_##arch, /* 16x16 */                      \
195
2.29M
      cfl_subtract_average_32x32_##arch, /* 32x32 */                      \
196
2.29M
      NULL,                              /* 64x64 (invalid CFL size) */   \
197
2.29M
      cfl_subtract_average_4x8_##arch,   /* 4x8 */                        \
198
2.29M
      cfl_subtract_average_8x4_##arch,   /* 8x4 */                        \
199
2.29M
      cfl_subtract_average_8x16_##arch,  /* 8x16 */                       \
200
2.29M
      cfl_subtract_average_16x8_##arch,  /* 16x8 */                       \
201
2.29M
      cfl_subtract_average_16x32_##arch, /* 16x32 */                      \
202
2.29M
      cfl_subtract_average_32x16_##arch, /* 32x16 */                      \
203
2.29M
      NULL,                              /* 32x64 (invalid CFL size) */   \
204
2.29M
      NULL,                              /* 64x32 (invalid CFL size) */   \
205
2.29M
      cfl_subtract_average_4x16_##arch,  /* 4x16 (invalid CFL size) */    \
206
2.29M
      cfl_subtract_average_16x4_##arch,  /* 16x4 (invalid CFL size) */    \
207
2.29M
      cfl_subtract_average_8x32_##arch,  /* 8x32 (invalid CFL size) */    \
208
2.29M
      cfl_subtract_average_32x8_##arch,  /* 32x8 (invalid CFL size) */    \
209
2.29M
      NULL,                              /* 16x64 (invalid CFL size) */   \
210
2.29M
      NULL,                              /* 64x16 (invalid CFL size) */   \
211
2.29M
    };                                                                    \
212
2.29M
    /* Modulo TX_SIZES_ALL to ensure that an attacker won't be able to */ \
213
2.29M
    /* index the function pointer array out of bounds. */                 \
214
2.29M
    return sub_avg[tx_size % TX_SIZES_ALL];                               \
215
2.29M
  }
216
217
// For VSX SIMD optimization, the C versions of width == 4 subtract are
218
// faster than the VSX. As such, the VSX code calls the C versions.
219
void cfl_subtract_average_4x4_c(const uint16_t *src, int16_t *dst);
220
void cfl_subtract_average_4x8_c(const uint16_t *src, int16_t *dst);
221
void cfl_subtract_average_4x16_c(const uint16_t *src, int16_t *dst);
222
223
#define CFL_PREDICT_lbd(arch, width, height)                              \
224
  void cfl_predict_lbd_##width##x##height##_##arch(                       \
225
      const int16_t *pred_buf_q3, uint8_t *dst, int dst_stride,           \
226
2.64M
      int alpha_q3) {                                                     \
227
2.64M
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
2.64M
                           height);                                       \
229
2.64M
  }
cfl_predict_lbd_4x4_c
Line
Count
Source
226
383k
      int alpha_q3) {                                                     \
227
383k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
383k
                           height);                                       \
229
383k
  }
cfl_predict_lbd_4x8_c
Line
Count
Source
226
253k
      int alpha_q3) {                                                     \
227
253k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
253k
                           height);                                       \
229
253k
  }
cfl_predict_lbd_4x16_c
Line
Count
Source
226
227k
      int alpha_q3) {                                                     \
227
227k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
227k
                           height);                                       \
229
227k
  }
cfl_predict_lbd_8x4_c
Line
Count
Source
226
239k
      int alpha_q3) {                                                     \
227
239k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
239k
                           height);                                       \
229
239k
  }
cfl_predict_lbd_8x8_c
Line
Count
Source
226
428k
      int alpha_q3) {                                                     \
227
428k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
428k
                           height);                                       \
229
428k
  }
cfl_predict_lbd_8x16_c
Line
Count
Source
226
183k
      int alpha_q3) {                                                     \
227
183k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
183k
                           height);                                       \
229
183k
  }
cfl_predict_lbd_8x32_c
Line
Count
Source
226
89.5k
      int alpha_q3) {                                                     \
227
89.5k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
89.5k
                           height);                                       \
229
89.5k
  }
cfl_predict_lbd_16x4_c
Line
Count
Source
226
184k
      int alpha_q3) {                                                     \
227
184k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
184k
                           height);                                       \
229
184k
  }
cfl_predict_lbd_16x8_c
Line
Count
Source
226
216k
      int alpha_q3) {                                                     \
227
216k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
216k
                           height);                                       \
229
216k
  }
cfl_predict_lbd_16x16_c
Line
Count
Source
226
192k
      int alpha_q3) {                                                     \
227
192k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
192k
                           height);                                       \
229
192k
  }
cfl_predict_lbd_16x32_c
Line
Count
Source
226
48.3k
      int alpha_q3) {                                                     \
227
48.3k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
48.3k
                           height);                                       \
229
48.3k
  }
cfl_predict_lbd_32x8_c
Line
Count
Source
226
80.8k
      int alpha_q3) {                                                     \
227
80.8k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
80.8k
                           height);                                       \
229
80.8k
  }
cfl_predict_lbd_32x16_c
Line
Count
Source
226
46.0k
      int alpha_q3) {                                                     \
227
46.0k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
46.0k
                           height);                                       \
229
46.0k
  }
cfl_predict_lbd_32x32_c
Line
Count
Source
226
70.3k
      int alpha_q3) {                                                     \
227
70.3k
    cfl_predict_lbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, width, \
228
70.3k
                           height);                                       \
229
70.3k
  }
230
231
#if CONFIG_AV1_HIGHBITDEPTH
232
#define CFL_PREDICT_hbd(arch, width, height)                                   \
233
  void cfl_predict_hbd_##width##x##height##_##arch(                            \
234
      const int16_t *pred_buf_q3, uint16_t *dst, int dst_stride, int alpha_q3, \
235
1.94M
      int bd) {                                                                \
236
1.94M
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
1.94M
                           height);                                            \
238
1.94M
  }
cfl_predict_hbd_4x4_c
Line
Count
Source
235
402k
      int bd) {                                                                \
236
402k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
402k
                           height);                                            \
238
402k
  }
cfl_predict_hbd_4x8_c
Line
Count
Source
235
198k
      int bd) {                                                                \
236
198k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
198k
                           height);                                            \
238
198k
  }
cfl_predict_hbd_4x16_c
Line
Count
Source
235
231k
      int bd) {                                                                \
236
231k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
231k
                           height);                                            \
238
231k
  }
cfl_predict_hbd_8x4_c
Line
Count
Source
235
228k
      int bd) {                                                                \
236
228k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
228k
                           height);                                            \
238
228k
  }
cfl_predict_hbd_8x8_c
Line
Count
Source
235
240k
      int bd) {                                                                \
236
240k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
240k
                           height);                                            \
238
240k
  }
cfl_predict_hbd_8x16_c
Line
Count
Source
235
97.4k
      int bd) {                                                                \
236
97.4k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
97.4k
                           height);                                            \
238
97.4k
  }
cfl_predict_hbd_8x32_c
Line
Count
Source
235
92.9k
      int bd) {                                                                \
236
92.9k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
92.9k
                           height);                                            \
238
92.9k
  }
cfl_predict_hbd_16x4_c
Line
Count
Source
235
113k
      int bd) {                                                                \
236
113k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
113k
                           height);                                            \
238
113k
  }
cfl_predict_hbd_16x8_c
Line
Count
Source
235
103k
      int bd) {                                                                \
236
103k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
103k
                           height);                                            \
238
103k
  }
cfl_predict_hbd_16x16_c
Line
Count
Source
235
121k
      int bd) {                                                                \
236
121k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
121k
                           height);                                            \
238
121k
  }
cfl_predict_hbd_16x32_c
Line
Count
Source
235
27.6k
      int bd) {                                                                \
236
27.6k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
27.6k
                           height);                                            \
238
27.6k
  }
cfl_predict_hbd_32x8_c
Line
Count
Source
235
31.2k
      int bd) {                                                                \
236
31.2k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
31.2k
                           height);                                            \
238
31.2k
  }
cfl_predict_hbd_32x16_c
Line
Count
Source
235
24.3k
      int bd) {                                                                \
236
24.3k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
24.3k
                           height);                                            \
238
24.3k
  }
cfl_predict_hbd_32x32_c
Line
Count
Source
235
35.8k
      int bd) {                                                                \
236
35.8k
    cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width,  \
237
35.8k
                           height);                                            \
238
35.8k
  }
239
#endif
240
241
// This wrapper exists because clang format does not like calling macros with
242
// lowercase letters.
243
#define CFL_PREDICT_X(arch, width, height, bd) \
244
  CFL_PREDICT_##bd(arch, width, height)
245
246
#define CFL_PREDICT_FN(arch, bd)                                            \
247
  CFL_PREDICT_X(arch, 4, 4, bd)                                             \
248
  CFL_PREDICT_X(arch, 4, 8, bd)                                             \
249
  CFL_PREDICT_X(arch, 4, 16, bd)                                            \
250
  CFL_PREDICT_X(arch, 8, 4, bd)                                             \
251
  CFL_PREDICT_X(arch, 8, 8, bd)                                             \
252
  CFL_PREDICT_X(arch, 8, 16, bd)                                            \
253
  CFL_PREDICT_X(arch, 8, 32, bd)                                            \
254
  CFL_PREDICT_X(arch, 16, 4, bd)                                            \
255
  CFL_PREDICT_X(arch, 16, 8, bd)                                            \
256
  CFL_PREDICT_X(arch, 16, 16, bd)                                           \
257
  CFL_PREDICT_X(arch, 16, 32, bd)                                           \
258
  CFL_PREDICT_X(arch, 32, 8, bd)                                            \
259
  CFL_PREDICT_X(arch, 32, 16, bd)                                           \
260
  CFL_PREDICT_X(arch, 32, 32, bd)                                           \
261
4.59M
  cfl_predict_##bd##_fn cfl_get_predict_##bd##_fn_##arch(TX_SIZE tx_size) { \
262
4.59M
    static const cfl_predict_##bd##_fn pred[TX_SIZES_ALL] = {               \
263
4.59M
      cfl_predict_##bd##_4x4_##arch,   /* 4x4 */                            \
264
4.59M
      cfl_predict_##bd##_8x8_##arch,   /* 8x8 */                            \
265
4.59M
      cfl_predict_##bd##_16x16_##arch, /* 16x16 */                          \
266
4.59M
      cfl_predict_##bd##_32x32_##arch, /* 32x32 */                          \
267
4.59M
      NULL,                            /* 64x64 (invalid CFL size) */       \
268
4.59M
      cfl_predict_##bd##_4x8_##arch,   /* 4x8 */                            \
269
4.59M
      cfl_predict_##bd##_8x4_##arch,   /* 8x4 */                            \
270
4.59M
      cfl_predict_##bd##_8x16_##arch,  /* 8x16 */                           \
271
4.59M
      cfl_predict_##bd##_16x8_##arch,  /* 16x8 */                           \
272
4.59M
      cfl_predict_##bd##_16x32_##arch, /* 16x32 */                          \
273
4.59M
      cfl_predict_##bd##_32x16_##arch, /* 32x16 */                          \
274
4.59M
      NULL,                            /* 32x64 (invalid CFL size) */       \
275
4.59M
      NULL,                            /* 64x32 (invalid CFL size) */       \
276
4.59M
      cfl_predict_##bd##_4x16_##arch,  /* 4x16  */                          \
277
4.59M
      cfl_predict_##bd##_16x4_##arch,  /* 16x4  */                          \
278
4.59M
      cfl_predict_##bd##_8x32_##arch,  /* 8x32  */                          \
279
4.59M
      cfl_predict_##bd##_32x8_##arch,  /* 32x8  */                          \
280
4.59M
      NULL,                            /* 16x64 (invalid CFL size) */       \
281
4.59M
      NULL,                            /* 64x16 (invalid CFL size) */       \
282
4.59M
    };                                                                      \
283
4.59M
    /* Modulo TX_SIZES_ALL to ensure that an attacker won't be able to */   \
284
4.59M
    /* index the function pointer array out of bounds. */                   \
285
4.59M
    return pred[tx_size % TX_SIZES_ALL];                                    \
286
4.59M
  }
287
288
#endif  // AOM_AV1_COMMON_CFL_H_