Lines Matching +full:- +full:bd
20 const MB_MODE_INFO *mbmi = xd->mi[0]; in is_cfl_allowed()
21 const BLOCK_SIZE bsize = mbmi->bsize; in is_cfl_allowed()
23 if (xd->lossless[mbmi->segment_id]) { in is_cfl_allowed()
26 const int ssx = xd->plane[AOM_PLANE_U].subsampling_x; in is_cfl_allowed()
27 const int ssy = xd->plane[AOM_PLANE_U].subsampling_y; in is_cfl_allowed()
40 const MB_MODE_INFO *mbmi = xd->mi[0]; in store_cfl_required()
42 if (cm->seq_params->monochrome) return CFL_DISALLOWED; in store_cfl_required()
44 if (!xd->is_chroma_ref) { in store_cfl_required()
45 // For non-chroma-reference blocks, we should always store the luma pixels, in store_cfl_required()
46 // in case the corresponding chroma-reference block uses CfL. in store_cfl_required()
56 mbmi->uv_mode == UV_CFL_PRED); in store_cfl_required()
66 return (CFL_PRED_TYPE)(plane - 1); in get_cfl_pred_type()
70 cfl->use_dc_pred_cache = false; in clear_cfl_dc_pred_cache_flags()
71 cfl->dc_pred_is_cached[CFL_PRED_U] = false; in clear_cfl_dc_pred_cache_flags()
72 cfl->dc_pred_is_cached[CFL_PRED_V] = false; in clear_cfl_dc_pred_cache_flags()
93 // Declare a size-specific wrapper for the size-generic function. The compiler
97 #define CFL_SUBSAMPLE(arch, sub, bd, width, height) \ argument
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 const CFL_##bd##_TYPE, int input_stride, uint16_t *output_q3) { \
102 cfl_luma_subsampling_##sub##_##bd##_##arch(cfl_type, input_stride, \
106 // Declare size-specific wrappers for all valid CfL sizes.
107 #define CFL_SUBSAMPLE_FUNCTIONS(arch, sub, bd) \ argument
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( \
124 CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd) \
128 // Declare an architecture-specific array of function pointers for size-specific
130 #define CFL_SUBSAMPLE_FUNCTION_ARRAY(arch, sub, bd) \ argument
131 static const cfl_subsample_##bd##_fn subfn_##sub[TX_SIZES_ALL] = { \
132 cfl_subsample_##bd##_##sub##_4x4_##arch, /* 4x4 */ \
133 cfl_subsample_##bd##_##sub##_8x8_##arch, /* 8x8 */ \
134 cfl_subsample_##bd##_##sub##_16x16_##arch, /* 16x16 */ \
135 cfl_subsample_##bd##_##sub##_32x32_##arch, /* 32x32 */ \
137 cfl_subsample_##bd##_##sub##_4x8_##arch, /* 4x8 */ \
138 cfl_subsample_##bd##_##sub##_8x4_##arch, /* 8x4 */ \
139 cfl_subsample_##bd##_##sub##_8x16_##arch, /* 8x16 */ \
140 cfl_subsample_##bd##_##sub##_16x8_##arch, /* 16x8 */ \
141 cfl_subsample_##bd##_##sub##_16x32_##arch, /* 16x32 */ \
142 cfl_subsample_##bd##_##sub##_32x16_##arch, /* 32x16 */ \
145 cfl_subsample_##bd##_##sub##_4x16_##arch, /* 4x16 */ \
146 cfl_subsample_##bd##_##sub##_16x4_##arch, /* 16x4 */ \
147 cfl_subsample_##bd##_##sub##_8x32_##arch, /* 8x32 */ \
148 cfl_subsample_##bd##_##sub##_32x8_##arch, /* 32x8 */ \
170 // Declare a size-specific wrapper for the size-generic function. The compiler
183 // Declare size-specific wrappers for all valid CfL sizes.
241 int bd); \
244 int bd) { \
245 cfl_predict_hbd_##arch(pred_buf_q3, dst, dst_stride, alpha_q3, bd, width, \
252 #define CFL_PREDICT_X(arch, width, height, bd) \ argument
253 CFL_PREDICT_##bd(arch, width, height)
255 #define CFL_PREDICT_FN(arch, bd) \ argument
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 cfl_predict_##bd##_fn cfl_get_predict_##bd##_fn_##arch(TX_SIZE tx_size) { \
271 static const cfl_predict_##bd##_fn pred[TX_SIZES_ALL] = { \
272 cfl_predict_##bd##_4x4_##arch, /* 4x4 */ \
273 cfl_predict_##bd##_8x8_##arch, /* 8x8 */ \
274 cfl_predict_##bd##_16x16_##arch, /* 16x16 */ \
275 cfl_predict_##bd##_32x32_##arch, /* 32x32 */ \
277 cfl_predict_##bd##_4x8_##arch, /* 4x8 */ \
278 cfl_predict_##bd##_8x4_##arch, /* 8x4 */ \
279 cfl_predict_##bd##_8x16_##arch, /* 8x16 */ \
280 cfl_predict_##bd##_16x8_##arch, /* 16x8 */ \
281 cfl_predict_##bd##_16x32_##arch, /* 16x32 */ \
282 cfl_predict_##bd##_32x16_##arch, /* 32x16 */ \
285 cfl_predict_##bd##_4x16_##arch, /* 4x16 */ \
286 cfl_predict_##bd##_16x4_##arch, /* 16x4 */ \
287 cfl_predict_##bd##_8x32_##arch, /* 8x32 */ \
288 cfl_predict_##bd##_32x8_##arch, /* 32x8 */ \