Searched refs:AV1_DIV_ROUND_UP_POW2_SIGNED (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_av1_req_lat_if.c | 35 #define AV1_DIV_ROUND_UP_POW2_SIGNED(value, n) \ macro 1118 gm_params->gamma = clamp_val((int)AV1_DIV_ROUND_UP_POW2_SIGNED(gv, shift), in vdec_av1_slice_get_shear_params() 1122 gm_params->delta = clamp_val(mat[5] - (int)AV1_DIV_ROUND_UP_POW2_SIGNED(dv, shift) - in vdec_av1_slice_get_shear_params() 1125 gm_params->alpha = AV1_DIV_ROUND_UP_POW2_SIGNED(gm_params->alpha, WARP_PARAM_REDUCE_BITS) * in vdec_av1_slice_get_shear_params() 1127 gm_params->beta = AV1_DIV_ROUND_UP_POW2_SIGNED(gm_params->beta, WARP_PARAM_REDUCE_BITS) * in vdec_av1_slice_get_shear_params() 1129 gm_params->gamma = AV1_DIV_ROUND_UP_POW2_SIGNED(gm_params->gamma, WARP_PARAM_REDUCE_BITS) * in vdec_av1_slice_get_shear_params() 1131 gm_params->delta = AV1_DIV_ROUND_UP_POW2_SIGNED(gm_params->delta, WARP_PARAM_REDUCE_BITS) * in vdec_av1_slice_get_shear_params()
|
/linux/drivers/media/platform/verisilicon/ |
H A D | rockchip_vpu981_hw_av1_dec.c | 67 #define AV1_DIV_ROUND_UP_POW2_SIGNED(value, n) \ macro 492 *gamma = clamp_val((int)AV1_DIV_ROUND_UP_POW2_SIGNED(gv, shift), S16_MIN, S16_MAX); in rockchip_vpu981_av1_dec_get_shear_params() 496 (int)AV1_DIV_ROUND_UP_POW2_SIGNED(dv, shift) - (1 << WARPEDMODEL_PREC_BITS), in rockchip_vpu981_av1_dec_get_shear_params() 499 *alpha = AV1_DIV_ROUND_UP_POW2_SIGNED(*alpha, WARP_PARAM_REDUCE_BITS) in rockchip_vpu981_av1_dec_get_shear_params() 501 *beta = AV1_DIV_ROUND_UP_POW2_SIGNED(*beta, WARP_PARAM_REDUCE_BITS) in rockchip_vpu981_av1_dec_get_shear_params() 503 *gamma = AV1_DIV_ROUND_UP_POW2_SIGNED(*gamma, WARP_PARAM_REDUCE_BITS) in rockchip_vpu981_av1_dec_get_shear_params() 505 *delta = AV1_DIV_ROUND_UP_POW2_SIGNED(*delta, WARP_PARAM_REDUCE_BITS) in rockchip_vpu981_av1_dec_get_shear_params()
|