Home
last modified time | relevance | path

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

/rockchip-linux_mpp/osal/
H A Dmpp_common.c53 RK_U32 shift; in axb_div_c() local
95 shift = left - right; in axb_div_c()
96 return (RK_S32)((((RK_U32)a << shift) / in axb_div_c()
97 (RK_U32)c * (RK_U32)b) >> shift) * sign; in axb_div_c()
/rockchip-linux_mpp/mpp/codec/dec/vp9/
H A Dvpx_rac.c57 int shift = vpx_norm_shift[c->high]; in vpx_rac_renorm() local
61 c->high <<= shift; in vpx_rac_renorm()
62 code_word <<= shift; in vpx_rac_renorm()
63 bits += shift; in vpx_rac_renorm()
/rockchip-linux_mpp/mpp/codec/dec/av1/
H A Dav1d_parser.c233 static RK_S16 resolve_divisor(RK_U32 d, RK_S16 *shift) in resolve_divisor() argument
237 *shift = mpp_log2(d); in resolve_divisor()
238 e = d - (1 << (*shift)); in resolve_divisor()
239 if (*shift > AV1_DIV_LUT_BITS) in resolve_divisor()
240 f = round_two(e, *shift - AV1_DIV_LUT_BITS); in resolve_divisor()
242 f = e << (AV1_DIV_LUT_BITS - (*shift)); in resolve_divisor()
244 *shift += AV1_DIV_LUT_PREC_BITS; in resolve_divisor()
H A Dav1d_cbs.c203 RK_U8 shift = 8 * sizeof(RK_S32) - bits; in sign_extend() local
204 RK_S32 v = { (RK_U8) val << shift }; in sign_extend()
205 return v >> shift; in sign_extend()
/rockchip-linux_mpp/mpp/codec/enc/h264/
H A Dh264e_slice.c838 RK_S32 shift = x264_cabac_renorm_shift[ctx->range >> 3]; in h264e_cabac_renorm() local
840 ctx->range <<= shift; in h264e_cabac_renorm()
841 ctx->low <<= shift; in h264e_cabac_renorm()
842 ctx->queue += shift; in h264e_cabac_renorm()
/rockchip-linux_mpp/
H A DCHANGELOG.md420 - [mpp_bitread]: Fix negative shift error
664 - [script]: fix shift clear input parameter error