summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_HtrdProc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_HtrdProc.cpp')
-rw-r--r--core/fxcodec/jbig2/JBig2_HtrdProc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fxcodec/jbig2/JBig2_HtrdProc.cpp b/core/fxcodec/jbig2/JBig2_HtrdProc.cpp
index 4fce8a48a1..59fbd8950d 100644
--- a/core/fxcodec/jbig2/JBig2_HtrdProc.cpp
+++ b/core/fxcodec/jbig2/JBig2_HtrdProc.cpp
@@ -27,9 +27,9 @@ std::unique_ptr<CJBig2_Image> CJBig2_HTRDProc::DecodeArith(
int32_t y = (HGY + mg * HRX - ng * HRY) >> 8;
if ((x + HPW <= 0) | (x >= static_cast<int32_t>(HBW)) | (y + HPH <= 0) |
(y >= static_cast<int32_t>(HPH))) {
- HSKIP->setPixel(ng, mg, 1);
+ HSKIP->SetPixel(ng, mg, 1);
} else {
- HSKIP->setPixel(ng, mg, 0);
+ HSKIP->SetPixel(ng, mg, 0);
}
}
}
@@ -120,12 +120,12 @@ std::unique_ptr<CJBig2_Image> CJBig2_HTRDProc::DecodeImage(
if (!HTREG->data())
return nullptr;
- HTREG->fill(HDEFPIXEL);
+ HTREG->Fill(HDEFPIXEL);
for (uint32_t y = 0; y < HGH; ++y) {
for (uint32_t x = 0; x < HGW; ++x) {
uint32_t gsval = 0;
for (uint8_t i = 0; i < GSPLANES.size(); ++i)
- gsval |= GSPLANES[i]->getPixel(x, y) << i;
+ gsval |= GSPLANES[i]->GetPixel(x, y) << i;
uint32_t pat_index = std::min(gsval, HNUMPATS - 1);
int32_t out_x = (HGX + y * HRY + x * HRX) >> 8;
int32_t out_y = (HGY + y * HRX - x * HRY) >> 8;