Mercurial > libavcodec.hg
comparison huffyuv.c @ 11661:7a5f3c94b9ad libavcodec
Switch some ints to unsigned (they can only have positive values, this allows
compiler to optimize some math from mul/div to shr/shl). Also add a cast to
uint32_t when calling decodeplane32(), this silences a compiler warning.
Lastly, in decodeplane8/32(), flatten a double-loop into a single-loop and
calculate the length once before entering the loop instead of during every
iteration (since it doesn't change).
Patch by Sebastian Vater <cdgs.basty googlemail com>.
author | rbultje |
---|---|
date | Mon, 26 Apr 2010 22:37:13 +0000 |
parents | 7dd2a45249a9 |
children | eef5eced3032 |
comparison
equal
deleted
inserted
replaced
11660:dd10b0c7d0de | 11661:7a5f3c94b9ad |
---|