Commit ba585726 authored by Diego Biurrun's avatar Diego Biurrun

whitespace cosmetics: Align some comments.

Originally committed as revision 17275 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 81189e4f
...@@ -198,21 +198,21 @@ void ff_xvmc_decode_mb(MpegEncContext *s) ...@@ -198,21 +198,21 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
mv_block->motion_type = XVMC_PREDICTION_DUAL_PRIME; mv_block->motion_type = XVMC_PREDICTION_DUAL_PRIME;
if (s->picture_structure == PICT_FRAME) { if (s->picture_structure == PICT_FRAME) {
mv_block->PMV[0][0][0] = s->mv[0][0][0]; // top from top mv_block->PMV[0][0][0] = s->mv[0][0][0]; // top from top
mv_block->PMV[0][0][1] = s->mv[0][0][1] << 1; mv_block->PMV[0][0][1] = s->mv[0][0][1] << 1;
mv_block->PMV[0][1][0] = s->mv[0][0][0]; // bottom from bottom mv_block->PMV[0][1][0] = s->mv[0][0][0]; // bottom from bottom
mv_block->PMV[0][1][1] = s->mv[0][0][1] << 1; mv_block->PMV[0][1][1] = s->mv[0][0][1] << 1;
mv_block->PMV[1][0][0] = s->mv[0][2][0]; // dmv00, top from bottom mv_block->PMV[1][0][0] = s->mv[0][2][0]; // dmv00, top from bottom
mv_block->PMV[1][0][1] = s->mv[0][2][1] << 1; // dmv01 mv_block->PMV[1][0][1] = s->mv[0][2][1] << 1; // dmv01
mv_block->PMV[1][1][0] = s->mv[0][3][0]; // dmv10, bottom from top mv_block->PMV[1][1][0] = s->mv[0][3][0]; // dmv10, bottom from top
mv_block->PMV[1][1][1] = s->mv[0][3][1] << 1; // dmv11 mv_block->PMV[1][1][1] = s->mv[0][3][1] << 1; // dmv11
} else { } else {
mv_block->PMV[0][1][0] = s->mv[0][2][0]; // dmv00 mv_block->PMV[0][1][0] = s->mv[0][2][0]; // dmv00
mv_block->PMV[0][1][1] = s->mv[0][2][1]; // dmv01 mv_block->PMV[0][1][1] = s->mv[0][2][1]; // dmv01
} }
break; break;
default: default:
...@@ -246,7 +246,7 @@ void ff_xvmc_decode_mb(MpegEncContext *s) ...@@ -246,7 +246,7 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
} }
if (s->flags & CODEC_FLAG_GRAY) { if (s->flags & CODEC_FLAG_GRAY) {
if (s->mb_intra) { // intra frames are always full chroma blocks if (s->mb_intra) { // intra frames are always full chroma blocks
for (i = 4; i < blocks_per_mb; i++) { for (i = 4; i < blocks_per_mb; i++) {
memset(s->pblocks[i], 0, sizeof(short)*8*8); // so we need to clear them memset(s->pblocks[i], 0, sizeof(short)*8*8); // so we need to clear them
if (!render->unsigned_intra) if (!render->unsigned_intra)
...@@ -254,7 +254,7 @@ void ff_xvmc_decode_mb(MpegEncContext *s) ...@@ -254,7 +254,7 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
} }
} else { } else {
cbp &= 0xf << (blocks_per_mb - 4); cbp &= 0xf << (blocks_per_mb - 4);
blocks_per_mb = 4; // luminance blocks only blocks_per_mb = 4; // luminance blocks only
} }
} }
mv_block->coded_block_pattern = cbp; mv_block->coded_block_pattern = cbp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment