diff options
Diffstat (limited to 'converter/ppm/ppmtompeg/subsample.c')
-rw-r--r-- | converter/ppm/ppmtompeg/subsample.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/converter/ppm/ppmtompeg/subsample.c b/converter/ppm/ppmtompeg/subsample.c index 69401a1d..e411feb4 100644 --- a/converter/ppm/ppmtompeg/subsample.c +++ b/converter/ppm/ppmtompeg/subsample.c @@ -67,14 +67,14 @@ computePrevFyFx(MpegFrame * const prevFrame, if (yHalf) { if (m.y < 0) --*fyP; - + *prevP = prevFrame->halfBoth; } else *prevP = prevFrame->halfX; } else if (yHalf) { if (m.y < 0) --*fyP; - + *prevP = prevFrame->halfY; } else *prevP = prevFrame->ref_y; @@ -185,7 +185,7 @@ LumMotionErrorB(const LumBlock * const currentBlockP, computePrevFyFx(prevFrame, by, bx, m, &prev, &fy, &fx); diff = 0; /* initial value */ - + for (rowNumber = 0; rowNumber < 16; rowNumber +=2) { uint8 * const macross = &(prev[fy + rowNumber][fx]); const int32 * const currentRow = currentBlockP->l[rowNumber]; @@ -199,6 +199,7 @@ LumMotionErrorB(const LumBlock * const currentBlockP, } + /*===========================================================================* * * LumMotionErrorC @@ -226,7 +227,7 @@ LumMotionErrorC(const LumBlock * const currentBlockP, computePrevFyFx(prevFrame, by, bx, m, &prev, &fy, &fx); diff = 0; /* initial value */ - + for (rowNumber = 1; rowNumber < 16; rowNumber +=2) { uint8 * const macross = &(prev[fy + rowNumber][fx]); const int32 * const currentRow = currentBlockP->l[rowNumber]; @@ -240,6 +241,7 @@ LumMotionErrorC(const LumBlock * const currentBlockP, } + /*===========================================================================* * * LumMotionErrorD @@ -279,3 +281,6 @@ LumMotionErrorD(const LumBlock * const currentBlockP, } return diff; } + + + |