Home
last modified time | relevance | path

Searched refs:joint_sign (Results 1 – 6 of 6) sorted by relevance

/external/libaom/libaom/av1/encoder/
Drd.c155 for (int joint_sign = 0; joint_sign < CFL_JOINT_SIGNS; joint_sign++) { in av1_fill_mode_rates() local
156 int *cost_u = x->cfl_cost[joint_sign][CFL_PRED_U]; in av1_fill_mode_rates()
157 int *cost_v = x->cfl_cost[joint_sign][CFL_PRED_V]; in av1_fill_mode_rates()
158 if (CFL_SIGN_U(joint_sign) == CFL_SIGN_ZERO) { in av1_fill_mode_rates()
161 const aom_cdf_prob *cdf_u = fc->cfl_alpha_cdf[CFL_CONTEXT_U(joint_sign)]; in av1_fill_mode_rates()
164 if (CFL_SIGN_V(joint_sign) == CFL_SIGN_ZERO) { in av1_fill_mode_rates()
167 const aom_cdf_prob *cdf_v = fc->cfl_alpha_cdf[CFL_CONTEXT_V(joint_sign)]; in av1_fill_mode_rates()
171 cost_u[u] += sign_cost[joint_sign]; in av1_fill_mode_rates()
Dbitstream.c863 int joint_sign, aom_writer *w) { in write_cfl_alphas() argument
864 aom_write_symbol(w, joint_sign, ec_ctx->cfl_sign_cdf, CFL_JOINT_SIGNS); in write_cfl_alphas()
866 if (CFL_SIGN_U(joint_sign) != CFL_SIGN_ZERO) { in write_cfl_alphas()
867 aom_cdf_prob *cdf_u = ec_ctx->cfl_alpha_cdf[CFL_CONTEXT_U(joint_sign)]; in write_cfl_alphas()
870 if (CFL_SIGN_V(joint_sign) != CFL_SIGN_ZERO) { in write_cfl_alphas()
871 aom_cdf_prob *cdf_v = ec_ctx->cfl_alpha_cdf[CFL_CONTEXT_V(joint_sign)]; in write_cfl_alphas()
Dencodeframe.c863 const int joint_sign = mbmi->cfl_alpha_signs; in sum_intra_stats() local
867 ++counts->cfl_sign[joint_sign]; in sum_intra_stats()
870 update_cdf(fc->cfl_sign_cdf, joint_sign, CFL_JOINT_SIGNS); in sum_intra_stats()
871 if (CFL_SIGN_U(joint_sign) != CFL_SIGN_ZERO) { in sum_intra_stats()
872 aom_cdf_prob *cdf_u = fc->cfl_alpha_cdf[CFL_CONTEXT_U(joint_sign)]; in sum_intra_stats()
875 ++counts->cfl_alpha[CFL_CONTEXT_U(joint_sign)][CFL_IDX_U(idx)]; in sum_intra_stats()
880 if (CFL_SIGN_V(joint_sign) != CFL_SIGN_ZERO) { in sum_intra_stats()
881 aom_cdf_prob *cdf_v = fc->cfl_alpha_cdf[CFL_CONTEXT_V(joint_sign)]; in sum_intra_stats()
884 ++counts->cfl_alpha[CFL_CONTEXT_V(joint_sign)][CFL_IDX_V(idx)]; in sum_intra_stats()
Drdopt.c6354 for (int joint_sign = 0; joint_sign < CFL_JOINT_SIGNS; joint_sign++) { in cfl_rd_pick_alpha() local
6355 best_rd_uv[joint_sign][plane] = INT64_MAX; in cfl_rd_pick_alpha()
6356 best_c[joint_sign][plane] = 0; in cfl_rd_pick_alpha()
6361 const int joint_sign = PLANE_SIGN_TO_JOINT_SIGN(plane, CFL_SIGN_ZERO, i); in cfl_rd_pick_alpha() local
6364 mbmi->cfl_alpha_signs = joint_sign; in cfl_rd_pick_alpha()
6369 const int alpha_rate = x->cfl_cost[joint_sign][plane][0]; in cfl_rd_pick_alpha()
6370 best_rd_uv[joint_sign][plane] = in cfl_rd_pick_alpha()
6373 best_rate_uv[joint_sign][plane] = rd_stats.rate; in cfl_rd_pick_alpha()
6389 const int joint_sign = PLANE_SIGN_TO_JOINT_SIGN(plane, pn_sign, i); in cfl_rd_pick_alpha() local
6392 mbmi->cfl_alpha_signs = joint_sign; in cfl_rd_pick_alpha()
[all …]
/external/libaom/libaom/av1/common/
Dcfl.c139 static INLINE int cfl_idx_to_alpha(int alpha_idx, int joint_sign, in CFL_SUB_AVG_FN()
141 const int alpha_sign = (pred_type == CFL_PRED_U) ? CFL_SIGN_U(joint_sign) in CFL_SUB_AVG_FN()
142 : CFL_SIGN_V(joint_sign); in CFL_SUB_AVG_FN()
/external/libaom/libaom/av1/decoder/
Ddecodemv.c134 const int joint_sign = in read_cfl_alphas() local
138 if (CFL_SIGN_U(joint_sign) != CFL_SIGN_ZERO) { in read_cfl_alphas()
139 aom_cdf_prob *cdf_u = ec_ctx->cfl_alpha_cdf[CFL_CONTEXT_U(joint_sign)]; in read_cfl_alphas()
143 if (CFL_SIGN_V(joint_sign) != CFL_SIGN_ZERO) { in read_cfl_alphas()
144 aom_cdf_prob *cdf_v = ec_ctx->cfl_alpha_cdf[CFL_CONTEXT_V(joint_sign)]; in read_cfl_alphas()
147 *signs_out = joint_sign; in read_cfl_alphas()