[FFmpeg-soc] [soc]: r1118 - rv40/rv40.c
kostya
subversion at mplayerhq.hu
Tue Aug 21 08:13:42 CEST 2007
Author: kostya
Date: Tue Aug 21 08:13:42 2007
New Revision: 1118
Log:
Make for() statement easier to understand
Modified:
rv40/rv40.c
Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c (original)
+++ rv40/rv40.c Tue Aug 21 08:13:42 2007
@@ -1357,9 +1357,11 @@ static void rv40_output_macroblock(RV40D
if(!is16){
for(j = 0; j < 4; j++){
no_left = !s->mb_x || (s->mb_x == s->resync_mb_x && s->first_slice_line);
- for(YY = Y, i = 0; i < 4; i++, cbp >>= 1, no_left = 0, YY += 4){
+ YY = Y;
+ for(i = 0; i < 4; i++, cbp >>= 1, YY += 4){
no_topright = no_up || (i==3 && j) || (i==3 && !j && (s->mb_x-1) == s->mb_width);
rv40_pred_4x4_block(r, YY, s->linesize, ittrans[intra_types[i]], no_up, no_left, i || (j==3), no_topright);
+ no_left = 0;
if(!(cbp & 1)) continue;
rv40_add_4x4_block(YY, s->linesize, s->block[(i>>1)+(j&2)], (i&1)*4+(j&1)*32);
}
More information about the FFmpeg-soc
mailing list