mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-07 23:32:33 +00:00
avcodec/utvideodec: Factor multiply out of inner loop
0.5% faster loop Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5eb4701b7d
commit
850c6db97d
@ -195,7 +195,8 @@ static int decode_plane10(UtvideoContext *c, int plane_no,
|
||||
|
||||
prev = 0x200;
|
||||
for (j = sstart; j < send; j++) {
|
||||
for (i = 0; i < width * step; i += step) {
|
||||
int ws = width * step;
|
||||
for (i = 0; i < ws; i += step) {
|
||||
pix = get_vlc2(&gb, vlc.table, VLC_BITS, 3);
|
||||
if (pix < 0) {
|
||||
av_log(c->avctx, AV_LOG_ERROR, "Decoding error\n");
|
||||
@ -299,7 +300,8 @@ static int decode_plane(UtvideoContext *c, int plane_no,
|
||||
|
||||
prev = 0x80;
|
||||
for (j = sstart; j < send; j++) {
|
||||
for (i = 0; i < width * step; i += step) {
|
||||
int ws = width * step;
|
||||
for (i = 0; i < ws; i += step) {
|
||||
pix = get_vlc2(&gb, vlc.table, VLC_BITS, 3);
|
||||
if (pix < 0) {
|
||||
av_log(c->avctx, AV_LOG_ERROR, "Decoding error\n");
|
||||
|
Loading…
Reference in New Issue
Block a user