On 21/08/15 4:19 AM, Anton Khirnov wrote:
> +%macro PUT_WEIGHTED_PRED 3
> +%if %1
> +cglobal hevc_put_weighted_pred_avg_ %+ %2 %+ _ %+ %3, 11, 11, 8, denom,
> weight0, weight1, offset0, offset1, dst, dststride, src0, src1, srcstride,
> height
> +%else
> +cglobal hevc_put_weighted_pred_ %+ %2 %+ _ %+ %3, 8, 8, 8, denom, weight0,
> offset0, dst, dststride, src0, srcstride, height
> +%endif
> + and heightq, 0x7fffffff
> +
> + add denomq, 14 + %1 - %3
> + movq m0, denomq
demon is an uint8_t. This should be
add denomd, 14 + %1 - %3
movd m0, denomd
I don't think doing a movzx denomd, denomb to clear bits 9 to 31 is necessary,
so
the above should suffice.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel