void deblock_init_frame_parames(davs2_t *h)
{
    int shift = h->sample_bit_depth - 8;
    int QP   = h->i_picture_qp - (shift << 3);
    int QP_c = cu_get_chroma_qp(h, h->i_picture_qp, 0) - (shift << 3);

    h->alpha   = ALPHA_TABLE[DAVS2_CLIP3(0, 63, QP + h->i_alpha_offset)] << shift;
    h->beta    = BETA_TABLE[DAVS2_CLIP3(0, 63, QP + h->i_beta_offset)] << shift;

    h->alpha_c = ALPHA_TABLE[DAVS2_CLIP3(0, 63, QP_c + h->i_alpha_offset)] << shift;
    h->beta_c  = BETA_TABLE[DAVS2_CLIP3(0, 63, QP_c + h->i_beta_offset)] << shift;


    if (gf_davs2.set_deblock_const != NULL) {
        gf_davs2.set_deblock_const();
    }
}
void deblock_init_frame_parames(davs2_t *h)
{
    int shift = h->sample_bit_depth - 8;
    int QP   = h->i_picture_qp - (shift << 3);
    int QP_c = cu_get_chroma_qp(h, h->i_picture_qp, 0) - (shift << 3);

    h->alpha   = ALPHA_TABLE[DAVS2_CLIP3(0, 63, QP + h->i_alpha_offset)] << shift;
    h->beta    = BETA_TABLE[DAVS2_CLIP3(0, 63, QP + h->i_beta_offset)] << shift;

    h->alpha_c = ALPHA_TABLE[DAVS2_CLIP3(0, 63, QP_c + h->i_alpha_offset)] << shift;
    h->beta_c  = BETA_TABLE[DAVS2_CLIP3(0, 63, QP_c + h->i_beta_offset)] << shift;


    if (gf_davs2.set_deblock_const != NULL) {
        gf_davs2.set_deblock_const();
    }
}