diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-01 14:32:54 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-01 14:32:54 +0000 |
commit | ea603b9f0baf33462b61fa4ee6364e4f4161f55a (patch) | |
tree | 0a1f18531181ac30a4a87cd5e67909f4248bfb66 /core/fxcodec/jbig2/JBig2_HtrdProc.cpp | |
parent | 723543481bea9c6ea14fc39b71333b34eb8d89b4 (diff) | |
download | pdfium-ea603b9f0baf33462b61fa4ee6364e4f4161f55a.tar.xz |
Clean up CJBig2_Image compose methods.
- Mark them private when possible.
- Disambiguate method names.
- Make method names match the style guide.
- Pass in rects by reference.
Change-Id: I0bf848756e81a92d20e46a81cd6260b660eaf482
Reviewed-on: https://pdfium-review.googlesource.com/31772
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_HtrdProc.cpp')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_HtrdProc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcodec/jbig2/JBig2_HtrdProc.cpp b/core/fxcodec/jbig2/JBig2_HtrdProc.cpp index c1eaf918b5..8618236264 100644 --- a/core/fxcodec/jbig2/JBig2_HtrdProc.cpp +++ b/core/fxcodec/jbig2/JBig2_HtrdProc.cpp @@ -74,7 +74,7 @@ std::unique_ptr<CJBig2_Image> CJBig2_HTRDProc::DecodeArith( GSPLANES[i] = std::move(pImage); if (i < GSBPP - 1) - GSPLANES[i]->composeFrom(0, 0, GSPLANES[i + 1].get(), JBIG2_COMPOSE_XOR); + GSPLANES[i]->ComposeFrom(0, 0, GSPLANES[i + 1].get(), JBIG2_COMPOSE_XOR); } return DecodeImage(GSPLANES); } @@ -105,7 +105,7 @@ std::unique_ptr<CJBig2_Image> CJBig2_HTRDProc::DecodeMMR( pStream->alignByte(); pStream->offset(3); - GSPLANES[J]->composeFrom(0, 0, GSPLANES[J + 1].get(), JBIG2_COMPOSE_XOR); + GSPLANES[J]->ComposeFrom(0, 0, GSPLANES[J + 1].get(), JBIG2_COMPOSE_XOR); } return DecodeImage(GSPLANES); } @@ -126,7 +126,7 @@ std::unique_ptr<CJBig2_Image> CJBig2_HTRDProc::DecodeImage( int32_t x = (HGX + mg * HRY + ng * HRX) >> 8; int32_t y = (HGY + mg * HRX - ng * HRY) >> 8; uint32_t pat_index = std::min(GSVALS[mg * HGW + ng], HNUMPATS - 1); - HTREG->composeFrom(x, y, (*HPATS)[pat_index].get(), HCOMBOP); + HTREG->ComposeFrom(x, y, (*HPATS)[pat_index].get(), HCOMBOP); } } return HTREG; |