[FFmpeg-devel] [PATCH 7/9] hevc: use intreadwrite

Ronald S. Bultje rsbultje at gmail.com
Thu Jul 10 15:33:02 CEST 2014


Hi,

On Thu, Jul 10, 2014 at 2:47 AM, Christophe Gisquet <
christophe.gisquet at gmail.com> wrote:

> -                mergecandlist[nb_merge_cand].mv[0].x      = l0_cand.mv
> [0].x;
> -                mergecandlist[nb_merge_cand].mv[0].y      = l0_cand.mv
> [0].y;
> -                mergecandlist[nb_merge_cand].mv[1].x      = l1_cand.mv
> [1].x;
> -                mergecandlist[nb_merge_cand].mv[1].y      = l1_cand.mv
> [1].y;
> +                AV_WN32(&mergecandlist[nb_merge_cand].mv[0], AV_RN32(&
> l0_cand.mv[0]));
> +                AV_WN32(&mergecandlist[nb_merge_cand].mv[1], AV_RN32(&
> l1_cand.mv[1]));


AV_COPY32? Also use aligned writes/reads (AV_R/WN32A) in the other cases,
since that prevents unaligned "per-byte" reads on some archs.

Ronald


More information about the ffmpeg-devel mailing list