[FFmpeg-soc] [soc]: r866 - dirac/libavcodec/dirac.c
marco
subversion at mplayerhq.hu
Thu Aug 16 14:58:45 CEST 2007
Author: marco
Date: Thu Aug 16 14:58:45 2007
New Revision: 866
Log:
simplify check in global mode prediction
Modified:
dirac/libavcodec/dirac.c
Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c (original)
+++ dirac/libavcodec/dirac.c Thu Aug 16 14:58:45 2007
@@ -1227,10 +1227,8 @@ static inline int global_mode_prediction
cnt = s->blmotion[ y * s->blwidth + x - 1].use_global
+ s->blmotion[(y - 1) * s->blwidth + x ].use_global
+ s->blmotion[(y - 1) * s->blwidth + x - 1].use_global;
- if (cnt >= 2)
- return 1;
- else
- return 0;
+
+ return cnt >> 1;
}
/**
More information about the FFmpeg-soc
mailing list