Lines Matching refs:log2_tr_size
278 * @param[in] log2_tr_size
292 WORD32 log2_tr_size,
307 c_max = gu1_hevce_last_coeff_prefix[(1 << log2_tr_size) - 1];
312 WORD32 ctx_offset = (3 * (log2_tr_size - 2)) + ((log2_tr_size - 1) >> 2);
316 ctx_shift = (log2_tr_size + 1) >> 2;
322 ctx_shift = log2_tr_size - 2;
383 * @param[in] log2_tr_size
403 WORD32 log2_tr_size,
455 ASSERT((tu_size >= 4) && (tu_size <= (1 << log2_tr_size)));
458 if((log2_tr_size <= log2_max_trafo_size) && (log2_tr_size > log2_min_trafo_size) &&
462 ctxt_inc = IHEVC_CAB_SPLIT_TFM + (5 - log2_tr_size);
465 split_tr_flag = tu_size < (1 << log2_tr_size);
484 /* a. log2_tr_size > log2_max_trafo_size */
493 if((log2_tr_size > log2_max_trafo_size) || (intra_nxn_pu && (tr_depth == 0)) ||
507 if(log2_tr_size > 2)
540 if(3 == log2_tr_size)
543 if((tu_x + trans_size == (x0_ctb + (1 << log2_tr_size))) &&
544 (tu_y + trans_size == (y0_ctb + (1 << log2_tr_size))))
558 ai4_cbf_cb[0] = (split_tr_flag && (log2_tr_size > 3)) ? 1 : ps_enc_tu->s_tu.b1_cb_cbf;
560 (split_tr_flag && (log2_tr_size > 3)) ? 1 : ps_enc_tu->s_tu.b1_cb_cbf_subtu1;
563 if((u1_is_422) && ((!split_tr_flag) || (3 == log2_tr_size)))
640 if(3 == log2_tr_size)
643 if((tu_x + trans_size == (x0_ctb + (1 << log2_tr_size))) &&
644 (tu_y + trans_size == (y0_ctb + (1 << log2_tr_size))))
658 ai4_cbf_cr[0] = (split_tr_flag && (log2_tr_size > 3)) ? 1 : ps_enc_tu->s_tu.b1_cr_cbf;
660 (split_tr_flag && (log2_tr_size > 3)) ? 1 : ps_enc_tu->s_tu.b1_cr_cbf_subtu1;
663 if((u1_is_422) && ((!split_tr_flag) || (3 == log2_tr_size)))
729 WORD32 x1_ctb = x0_ctb + ((1 << log2_tr_size) >> 1);
730 WORD32 y1_ctb = y0_ctb + ((1 << log2_tr_size) >> 1);
737 log2_tr_size - 1,
747 log2_tr_size - 1,
757 log2_tr_size - 1,
767 log2_tr_size - 1,
800 ASSERT(tu_size == (1 << log2_tr_size));
971 ret |= ihevce_cabac_residue_encode(ps_entropy_ctxt, pv_coeff, log2_tr_size, 1);
985 if(((log2_tr_size > 2) || (3 == blk_num)) /* &&
1003 if(2 == log2_tr_size)
1018 log2_chroma_tr_size = (log2_tr_size - 1);
1050 if(2 == log2_tr_size)
1064 log2_chroma_tr_size = (log2_tr_size - 1);
1132 * @param[in] log2_tr_size
1144 entropy_context_t *ps_entropy_ctxt, void *pv_coeff, WORD32 log2_tr_size, WORD32 is_luma)
1191 ps_cabac, last_sig_coeff_x, last_sig_coeff_y, log2_tr_size, is_luma);
1202 if(3 == log2_tr_size)
1207 else if(3 < log2_tr_size)
1219 if(3 == log2_tr_size)
1224 else if(3 < log2_tr_size)
1367 if(2 == log2_tr_size)
1661 * @param[in] log2_tr_size
1675 WORD32 log2_tr_size,
1731 ps_cabac, last_sig_coeff_x, last_sig_coeff_y, log2_tr_size, is_luma);
1742 if(3 == log2_tr_size)
1747 else if(3 < log2_tr_size)
1759 if(3 == log2_tr_size)
1764 else if(3 < log2_tr_size)
1915 if(2 == log2_tr_size)
2279 * @param[in] log2_tr_size
2300 WORD32 log2_tr_size,
2431 if(3 == log2_tr_size)
2436 else if(3 < log2_tr_size)
2448 if(3 == log2_tr_size)
2453 else if(3 < log2_tr_size)
2607 ps_cabac, i4_last_x, i4_last_y, log2_tr_size, is_luma);
2765 if(2 == log2_tr_size)
3226 WORD32 log2_tr_size = ps_rdoq_ctxt->i4_log2_trans_size;
3232 if(3 == log2_tr_size)
3237 else if(3 < log2_tr_size)
3248 if(3 == log2_tr_size)
3253 else if(3 < log2_tr_size)
3267 if(2 == log2_tr_size)