Coverage Report

Created: 2026-02-14 07:09

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/aom/av1/common/cfl.c
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
#include "av1/common/av1_common_int.h"
13
#include "av1/common/cfl.h"
14
#include "av1/common/common_data.h"
15
16
#include "config/av1_rtcd.h"
17
18
95.6k
void cfl_init(CFL_CTX *cfl, const SequenceHeader *seq_params) {
19
95.6k
  assert(block_size_wide[CFL_MAX_BLOCK_SIZE] == CFL_BUF_LINE);
20
95.6k
  assert(block_size_high[CFL_MAX_BLOCK_SIZE] == CFL_BUF_LINE);
21
22
95.6k
  memset(&cfl->recon_buf_q3, 0, sizeof(cfl->recon_buf_q3));
23
95.6k
  memset(&cfl->ac_buf_q3, 0, sizeof(cfl->ac_buf_q3));
24
95.6k
  cfl->subsampling_x = seq_params->subsampling_x;
25
95.6k
  cfl->subsampling_y = seq_params->subsampling_y;
26
95.6k
  cfl->are_parameters_computed = 0;
27
95.6k
  cfl->store_y = 0;
28
  // The DC_PRED cache is disabled by default and is only enabled in
29
  // cfl_rd_pick_alpha
30
95.6k
  clear_cfl_dc_pred_cache_flags(cfl);
31
95.6k
}
32
33
void cfl_store_dc_pred(MACROBLOCKD *const xd, const uint8_t *input,
34
0
                       CFL_PRED_TYPE pred_plane, int width) {
35
0
  assert(pred_plane < CFL_PRED_PLANES);
36
0
  assert(width <= CFL_BUF_LINE);
37
38
0
  if (is_cur_buf_hbd(xd)) {
39
0
    uint16_t *const input_16 = CONVERT_TO_SHORTPTR(input);
40
0
    memcpy(xd->cfl.dc_pred_cache[pred_plane], input_16, width << 1);
41
0
    return;
42
0
  }
43
44
0
  memcpy(xd->cfl.dc_pred_cache[pred_plane], input, width);
45
0
}
46
47
static void cfl_load_dc_pred_lbd(const int16_t *dc_pred_cache, uint8_t *dst,
48
0
                                 int dst_stride, int width, int height) {
49
0
  for (int j = 0; j < height; j++) {
50
0
    memcpy(dst, dc_pred_cache, width);
51
0
    dst += dst_stride;
52
0
  }
53
0
}
54
55
static void cfl_load_dc_pred_hbd(const int16_t *dc_pred_cache, uint16_t *dst,
56
0
                                 int dst_stride, int width, int height) {
57
0
  const size_t num_bytes = width << 1;
58
0
  for (int j = 0; j < height; j++) {
59
0
    memcpy(dst, dc_pred_cache, num_bytes);
60
0
    dst += dst_stride;
61
0
  }
62
0
}
63
void cfl_load_dc_pred(MACROBLOCKD *const xd, uint8_t *dst, int dst_stride,
64
0
                      TX_SIZE tx_size, CFL_PRED_TYPE pred_plane) {
65
0
  const int width = tx_size_wide[tx_size];
66
0
  const int height = tx_size_high[tx_size];
67
0
  assert(pred_plane < CFL_PRED_PLANES);
68
0
  assert(width <= CFL_BUF_LINE);
69
0
  assert(height <= CFL_BUF_LINE);
70
0
  if (is_cur_buf_hbd(xd)) {
71
0
    uint16_t *dst_16 = CONVERT_TO_SHORTPTR(dst);
72
0
    cfl_load_dc_pred_hbd(xd->cfl.dc_pred_cache[pred_plane], dst_16, dst_stride,
73
0
                         width, height);
74
0
    return;
75
0
  }
76
0
  cfl_load_dc_pred_lbd(xd->cfl.dc_pred_cache[pred_plane], dst, dst_stride,
77
0
                       width, height);
78
0
}
79
80
// Due to frame boundary issues, it is possible that the total area covered by
81
// chroma exceeds that of luma. When this happens, we fill the missing pixels by
82
// repeating the last columns and/or rows.
83
835k
static inline void cfl_pad(CFL_CTX *cfl, int width, int height) {
84
835k
  const int diff_width = width - cfl->buf_width;
85
835k
  const int diff_height = height - cfl->buf_height;
86
87
835k
  if (diff_width > 0) {
88
343
    const int min_height = height - diff_height;
89
343
    uint16_t *recon_buf_q3 = cfl->recon_buf_q3 + (width - diff_width);
90
9.51k
    for (int j = 0; j < min_height; j++) {
91
9.16k
      const uint16_t last_pixel = recon_buf_q3[-1];
92
9.16k
      assert(recon_buf_q3 + diff_width <= cfl->recon_buf_q3 + CFL_BUF_SQUARE);
93
82.0k
      for (int i = 0; i < diff_width; i++) {
94
72.8k
        recon_buf_q3[i] = last_pixel;
95
72.8k
      }
96
9.16k
      recon_buf_q3 += CFL_BUF_LINE;
97
9.16k
    }
98
343
    cfl->buf_width = width;
99
343
  }
100
835k
  if (diff_height > 0) {
101
51
    uint16_t *recon_buf_q3 =
102
51
        cfl->recon_buf_q3 + ((height - diff_height) * CFL_BUF_LINE);
103
407
    for (int j = 0; j < diff_height; j++) {
104
356
      const uint16_t *last_row_q3 = recon_buf_q3 - CFL_BUF_LINE;
105
356
      assert(recon_buf_q3 + width <= cfl->recon_buf_q3 + CFL_BUF_SQUARE);
106
8.94k
      for (int i = 0; i < width; i++) {
107
8.59k
        recon_buf_q3[i] = last_row_q3[i];
108
8.59k
      }
109
356
      recon_buf_q3 += CFL_BUF_LINE;
110
356
    }
111
51
    cfl->buf_height = height;
112
51
  }
113
835k
}
114
115
static void subtract_average_c(const uint16_t *src, int16_t *dst, int width,
116
835k
                               int height, int round_offset, int num_pel_log2) {
117
835k
  int sum = round_offset;
118
835k
  const uint16_t *recon = src;
119
8.82M
  for (int j = 0; j < height; j++) {
120
95.4M
    for (int i = 0; i < width; i++) {
121
87.4M
      sum += recon[i];
122
87.4M
    }
123
7.98M
    recon += CFL_BUF_LINE;
124
7.98M
  }
125
835k
  const int avg = sum >> num_pel_log2;
126
8.82M
  for (int j = 0; j < height; j++) {
127
95.4M
    for (int i = 0; i < width; i++) {
128
87.4M
      dst[i] = src[i] - avg;
129
87.4M
    }
130
7.98M
    src += CFL_BUF_LINE;
131
7.98M
    dst += CFL_BUF_LINE;
132
7.98M
  }
133
835k
}
134
135
835k
CFL_SUB_AVG_FN(c)
136
137
static inline int cfl_idx_to_alpha(uint8_t alpha_idx, int8_t joint_sign,
138
1.67M
                                   CFL_PRED_TYPE pred_type) {
139
1.67M
  const int alpha_sign = (pred_type == CFL_PRED_U) ? CFL_SIGN_U(joint_sign)
140
1.67M
                                                   : CFL_SIGN_V(joint_sign);
141
1.67M
  if (alpha_sign == CFL_SIGN_ZERO) return 0;
142
1.42M
  const int abs_alpha_q3 =
143
1.42M
      (pred_type == CFL_PRED_U) ? CFL_IDX_U(alpha_idx) : CFL_IDX_V(alpha_idx);
144
1.42M
  return (alpha_sign == CFL_SIGN_POS) ? abs_alpha_q3 + 1 : -abs_alpha_q3 - 1;
145
1.67M
}
146
147
static inline void cfl_predict_lbd_c(const int16_t *ac_buf_q3, uint8_t *dst,
148
                                     int dst_stride, int alpha_q3, int width,
149
900k
                                     int height) {
150
9.32M
  for (int j = 0; j < height; j++) {
151
98.0M
    for (int i = 0; i < width; i++) {
152
89.6M
      dst[i] = clip_pixel(get_scaled_luma_q0(alpha_q3, ac_buf_q3[i]) + dst[i]);
153
89.6M
    }
154
8.42M
    dst += dst_stride;
155
8.42M
    ac_buf_q3 += CFL_BUF_LINE;
156
8.42M
  }
157
900k
}
158
159
900k
CFL_PREDICT_FN(c, lbd)
160
161
#if CONFIG_AV1_HIGHBITDEPTH
162
static inline void cfl_predict_hbd_c(const int16_t *ac_buf_q3, uint16_t *dst,
163
                                     int dst_stride, int alpha_q3,
164
769k
                                     int bit_depth, int width, int height) {
165
8.32M
  for (int j = 0; j < height; j++) {
166
92.7M
    for (int i = 0; i < width; i++) {
167
85.2M
      dst[i] = clip_pixel_highbd(
168
85.2M
          get_scaled_luma_q0(alpha_q3, ac_buf_q3[i]) + dst[i], bit_depth);
169
85.2M
    }
170
7.55M
    dst += dst_stride;
171
7.55M
    ac_buf_q3 += CFL_BUF_LINE;
172
7.55M
  }
173
769k
}
174
175
769k
CFL_PREDICT_FN(c, hbd)
176
#endif
177
178
835k
static void cfl_compute_parameters(MACROBLOCKD *const xd, TX_SIZE tx_size) {
179
835k
  CFL_CTX *const cfl = &xd->cfl;
180
  // Do not call cfl_compute_parameters multiple time on the same values.
181
835k
  assert(cfl->are_parameters_computed == 0);
182
183
835k
  cfl_pad(cfl, tx_size_wide[tx_size], tx_size_high[tx_size]);
184
835k
  cfl_get_subtract_average_fn(tx_size)(cfl->recon_buf_q3, cfl->ac_buf_q3);
185
835k
  cfl->are_parameters_computed = 1;
186
835k
}
187
188
void av1_cfl_predict_block(MACROBLOCKD *const xd, uint8_t *dst, int dst_stride,
189
1.67M
                           TX_SIZE tx_size, int plane) {
190
1.67M
  CFL_CTX *const cfl = &xd->cfl;
191
1.67M
  MB_MODE_INFO *mbmi = xd->mi[0];
192
1.67M
  assert(is_cfl_allowed(xd));
193
194
1.67M
  if (!cfl->are_parameters_computed) cfl_compute_parameters(xd, tx_size);
195
196
1.67M
  const int alpha_q3 =
197
1.67M
      cfl_idx_to_alpha(mbmi->cfl_alpha_idx, mbmi->cfl_alpha_signs, plane - 1);
198
1.67M
  assert((tx_size_high[tx_size] - 1) * CFL_BUF_LINE + tx_size_wide[tx_size] <=
199
1.67M
         CFL_BUF_SQUARE);
200
1.67M
#if CONFIG_AV1_HIGHBITDEPTH
201
1.67M
  if (is_cur_buf_hbd(xd)) {
202
769k
    uint16_t *dst_16 = CONVERT_TO_SHORTPTR(dst);
203
769k
    cfl_get_predict_hbd_fn(tx_size)(cfl->ac_buf_q3, dst_16, dst_stride,
204
769k
                                    alpha_q3, xd->bd);
205
769k
    return;
206
769k
  }
207
900k
#endif
208
900k
  cfl_get_predict_lbd_fn(tx_size)(cfl->ac_buf_q3, dst, dst_stride, alpha_q3);
209
900k
}
210
211
static void cfl_luma_subsampling_420_lbd_c(const uint8_t *input,
212
                                           int input_stride,
213
                                           uint16_t *output_q3, int width,
214
209k
                                           int height) {
215
1.49M
  for (int j = 0; j < height; j += 2) {
216
6.04M
    for (int i = 0; i < width; i += 2) {
217
4.75M
      const int bot = i + input_stride;
218
4.75M
      output_q3[i >> 1] =
219
4.75M
          (input[i] + input[i + 1] + input[bot] + input[bot + 1]) << 1;
220
4.75M
    }
221
1.28M
    input += input_stride << 1;
222
1.28M
    output_q3 += CFL_BUF_LINE;
223
1.28M
  }
224
209k
}
225
226
static void cfl_luma_subsampling_422_lbd_c(const uint8_t *input,
227
                                           int input_stride,
228
                                           uint16_t *output_q3, int width,
229
1.46k
                                           int height) {
230
1.46k
  assert((height - 1) * CFL_BUF_LINE + width <= CFL_BUF_SQUARE);
231
10.7k
  for (int j = 0; j < height; j++) {
232
105k
    for (int i = 0; i < width; i += 2) {
233
96.2k
      output_q3[i >> 1] = (input[i] + input[i + 1]) << 2;
234
96.2k
    }
235
9.32k
    input += input_stride;
236
9.32k
    output_q3 += CFL_BUF_LINE;
237
9.32k
  }
238
1.46k
}
239
240
static void cfl_luma_subsampling_444_lbd_c(const uint8_t *input,
241
                                           int input_stride,
242
                                           uint16_t *output_q3, int width,
243
367k
                                           int height) {
244
367k
  assert((height - 1) * CFL_BUF_LINE + width <= CFL_BUF_SQUARE);
245
3.89M
  for (int j = 0; j < height; j++) {
246
43.7M
    for (int i = 0; i < width; i++) {
247
40.2M
      output_q3[i] = input[i] << 3;
248
40.2M
    }
249
3.52M
    input += input_stride;
250
3.52M
    output_q3 += CFL_BUF_LINE;
251
3.52M
  }
252
367k
}
253
254
#if CONFIG_AV1_HIGHBITDEPTH
255
static void cfl_luma_subsampling_420_hbd_c(const uint16_t *input,
256
                                           int input_stride,
257
                                           uint16_t *output_q3, int width,
258
267k
                                           int height) {
259
1.88M
  for (int j = 0; j < height; j += 2) {
260
7.72M
    for (int i = 0; i < width; i += 2) {
261
6.11M
      const int bot = i + input_stride;
262
6.11M
      output_q3[i >> 1] =
263
6.11M
          (input[i] + input[i + 1] + input[bot] + input[bot + 1]) << 1;
264
6.11M
    }
265
1.61M
    input += input_stride << 1;
266
1.61M
    output_q3 += CFL_BUF_LINE;
267
1.61M
  }
268
267k
}
269
270
static void cfl_luma_subsampling_422_hbd_c(const uint16_t *input,
271
                                           int input_stride,
272
                                           uint16_t *output_q3, int width,
273
1.67k
                                           int height) {
274
1.67k
  assert((height - 1) * CFL_BUF_LINE + width <= CFL_BUF_SQUARE);
275
22.3k
  for (int j = 0; j < height; j++) {
276
243k
    for (int i = 0; i < width; i += 2) {
277
222k
      output_q3[i >> 1] = (input[i] + input[i + 1]) << 2;
278
222k
    }
279
20.6k
    input += input_stride;
280
20.6k
    output_q3 += CFL_BUF_LINE;
281
20.6k
  }
282
1.67k
}
283
284
static void cfl_luma_subsampling_444_hbd_c(const uint16_t *input,
285
                                           int input_stride,
286
                                           uint16_t *output_q3, int width,
287
298k
                                           int height) {
288
298k
  assert((height - 1) * CFL_BUF_LINE + width <= CFL_BUF_SQUARE);
289
3.28M
  for (int j = 0; j < height; j++) {
290
39.7M
    for (int i = 0; i < width; i++) {
291
36.7M
      output_q3[i] = input[i] << 3;
292
36.7M
    }
293
2.98M
    input += input_stride;
294
2.98M
    output_q3 += CFL_BUF_LINE;
295
2.98M
  }
296
298k
}
297
#endif
298
299
5.73M
CFL_GET_SUBSAMPLE_FUNCTION(c)
cfl_get_luma_subsampling_420_lbd_c
Line
Count
Source
299
CFL_GET_SUBSAMPLE_FUNCTION(c)
cfl_get_luma_subsampling_422_lbd_c
Line
Count
Source
299
CFL_GET_SUBSAMPLE_FUNCTION(c)
cfl_get_luma_subsampling_444_lbd_c
Line
Count
Source
299
CFL_GET_SUBSAMPLE_FUNCTION(c)
cfl_get_luma_subsampling_420_hbd_c
Line
Count
Source
299
CFL_GET_SUBSAMPLE_FUNCTION(c)
cfl_get_luma_subsampling_422_hbd_c
Line
Count
Source
299
CFL_GET_SUBSAMPLE_FUNCTION(c)
cfl_get_luma_subsampling_444_hbd_c
Line
Count
Source
299
CFL_GET_SUBSAMPLE_FUNCTION(c)
300
5.73M
301
5.73M
#if CONFIG_AV1_HIGHBITDEPTH
302
5.73M
static inline cfl_subsample_hbd_fn cfl_subsampling_hbd(TX_SIZE tx_size,
303
5.73M
                                                       int sub_x, int sub_y) {
304
568k
  if (sub_x == 1) {
305
269k
    if (sub_y == 1) {
306
267k
      return cfl_get_luma_subsampling_420_hbd(tx_size);
307
267k
    }
308
1.67k
    return cfl_get_luma_subsampling_422_hbd(tx_size);
309
269k
  }
310
298k
  return cfl_get_luma_subsampling_444_hbd(tx_size);
311
568k
}
312
#endif
313
314
static inline cfl_subsample_lbd_fn cfl_subsampling_lbd(TX_SIZE tx_size,
315
577k
                                                       int sub_x, int sub_y) {
316
577k
  if (sub_x == 1) {
317
210k
    if (sub_y == 1) {
318
209k
      return cfl_get_luma_subsampling_420_lbd(tx_size);
319
209k
    }
320
1.46k
    return cfl_get_luma_subsampling_422_lbd(tx_size);
321
210k
  }
322
367k
  return cfl_get_luma_subsampling_444_lbd(tx_size);
323
577k
}
324
325
static void cfl_store(CFL_CTX *cfl, const uint8_t *input, int input_stride,
326
1.14M
                      int row, int col, TX_SIZE tx_size, int use_hbd) {
327
1.14M
  const int width = tx_size_wide[tx_size];
328
1.14M
  const int height = tx_size_high[tx_size];
329
1.14M
  const int tx_off_log2 = MI_SIZE_LOG2;
330
1.14M
  const int sub_x = cfl->subsampling_x;
331
1.14M
  const int sub_y = cfl->subsampling_y;
332
1.14M
  const int store_row = row << (tx_off_log2 - sub_y);
333
1.14M
  const int store_col = col << (tx_off_log2 - sub_x);
334
1.14M
  const int store_height = height >> sub_y;
335
1.14M
  const int store_width = width >> sub_x;
336
337
  // Invalidate current parameters
338
1.14M
  cfl->are_parameters_computed = 0;
339
340
  // Store the surface of the pixel buffer that was written to, this way we
341
  // can manage chroma overrun (e.g. when the chroma surfaces goes beyond the
342
  // frame boundary)
343
1.14M
  if (col == 0 && row == 0) {
344
905k
    cfl->buf_width = store_width;
345
905k
    cfl->buf_height = store_height;
346
905k
  } else {
347
240k
    cfl->buf_width = OD_MAXI(store_col + store_width, cfl->buf_width);
348
240k
    cfl->buf_height = OD_MAXI(store_row + store_height, cfl->buf_height);
349
240k
  }
350
351
  // Check that we will remain inside the pixel buffer.
352
1.14M
  assert(store_row + store_height <= CFL_BUF_LINE);
353
1.14M
  assert(store_col + store_width <= CFL_BUF_LINE);
354
355
  // Store the input into the CfL pixel buffer
356
1.14M
  uint16_t *recon_buf_q3 =
357
1.14M
      cfl->recon_buf_q3 + (store_row * CFL_BUF_LINE + store_col);
358
1.14M
#if CONFIG_AV1_HIGHBITDEPTH
359
1.14M
  if (use_hbd) {
360
568k
    cfl_subsampling_hbd(tx_size, sub_x, sub_y)(CONVERT_TO_SHORTPTR(input),
361
568k
                                               input_stride, recon_buf_q3);
362
577k
  } else {
363
577k
    cfl_subsampling_lbd(tx_size, sub_x, sub_y)(input, input_stride,
364
577k
                                               recon_buf_q3);
365
577k
  }
366
#else
367
  (void)use_hbd;
368
  cfl_subsampling_lbd(tx_size, sub_x, sub_y)(input, input_stride, recon_buf_q3);
369
#endif
370
1.14M
}
371
372
// Adjust the row and column of blocks smaller than 8X8, as chroma-referenced
373
// and non-chroma-referenced blocks are stored together in the CfL buffer.
374
static inline void sub8x8_adjust_offset(const CFL_CTX *cfl, int mi_row,
375
                                        int mi_col, int *row_out,
376
659k
                                        int *col_out) {
377
  // Increment row index for bottom: 8x4, 16x4 or both bottom 4x4s.
378
659k
  if ((mi_row & 0x01) && cfl->subsampling_y) {
379
26.9k
    assert(*row_out == 0);
380
26.9k
    (*row_out)++;
381
26.9k
  }
382
383
  // Increment col index for right: 4x8, 4x16 or both right 4x4s.
384
659k
  if ((mi_col & 0x01) && cfl->subsampling_x) {
385
123k
    assert(*col_out == 0);
386
123k
    (*col_out)++;
387
123k
  }
388
659k
}
389
390
void cfl_store_tx(MACROBLOCKD *const xd, int row, int col, TX_SIZE tx_size,
391
1.13M
                  BLOCK_SIZE bsize) {
392
1.13M
  CFL_CTX *const cfl = &xd->cfl;
393
1.13M
  struct macroblockd_plane *const pd = &xd->plane[AOM_PLANE_Y];
394
1.13M
  uint8_t *dst = &pd->dst.buf[(row * pd->dst.stride + col) << MI_SIZE_LOG2];
395
396
1.13M
  if (block_size_high[bsize] == 4 || block_size_wide[bsize] == 4) {
397
    // Only dimensions of size 4 can have an odd offset.
398
650k
    assert(!((col & 1) && tx_size_wide[tx_size] != 4));
399
650k
    assert(!((row & 1) && tx_size_high[tx_size] != 4));
400
650k
    sub8x8_adjust_offset(cfl, xd->mi_row, xd->mi_col, &row, &col);
401
650k
  }
402
1.13M
  cfl_store(cfl, dst, pd->dst.stride, row, col, tx_size, is_cur_buf_hbd(xd));
403
1.13M
}
404
405
static inline int max_intra_block_width(const MACROBLOCKD *xd,
406
                                        BLOCK_SIZE plane_bsize, int plane,
407
9.26k
                                        TX_SIZE tx_size) {
408
9.26k
  const int max_blocks_wide = max_block_wide(xd, plane_bsize, plane)
409
9.26k
                              << MI_SIZE_LOG2;
410
9.26k
  return ALIGN_POWER_OF_TWO(max_blocks_wide, tx_size_wide_log2[tx_size]);
411
9.26k
}
412
413
static inline int max_intra_block_height(const MACROBLOCKD *xd,
414
                                         BLOCK_SIZE plane_bsize, int plane,
415
9.26k
                                         TX_SIZE tx_size) {
416
9.26k
  const int max_blocks_high = max_block_high(xd, plane_bsize, plane)
417
9.26k
                              << MI_SIZE_LOG2;
418
9.26k
  return ALIGN_POWER_OF_TWO(max_blocks_high, tx_size_high_log2[tx_size]);
419
9.26k
}
420
421
9.26k
void cfl_store_block(MACROBLOCKD *const xd, BLOCK_SIZE bsize, TX_SIZE tx_size) {
422
9.26k
  CFL_CTX *const cfl = &xd->cfl;
423
9.26k
  struct macroblockd_plane *const pd = &xd->plane[AOM_PLANE_Y];
424
9.26k
  int row = 0;
425
9.26k
  int col = 0;
426
427
9.26k
  if (block_size_high[bsize] == 4 || block_size_wide[bsize] == 4) {
428
9.26k
    sub8x8_adjust_offset(cfl, xd->mi_row, xd->mi_col, &row, &col);
429
9.26k
  }
430
9.26k
  const int width = max_intra_block_width(xd, bsize, AOM_PLANE_Y, tx_size);
431
9.26k
  const int height = max_intra_block_height(xd, bsize, AOM_PLANE_Y, tx_size);
432
9.26k
  tx_size = get_tx_size(width, height);
433
9.26k
  cfl_store(cfl, pd->dst.buf, pd->dst.stride, row, col, tx_size,
434
9.26k
            is_cur_buf_hbd(xd));
435
9.26k
}