summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_tiffmodule.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-21 18:36:26 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-21 18:36:26 +0000
commita589b2c7b253179b71a7482ce2341009bb7b6b56 (patch)
treecf7075322bff5827517cdbd238ead127d7ef4024 /core/fxcodec/codec/ccodec_tiffmodule.cpp
parent0421202e8d95b7a652964452634f20f8e9870899 (diff)
downloadpdfium-a589b2c7b253179b71a7482ce2341009bb7b6b56.tar.xz
Rename foo_{wid,hei} to foo_{width,height}.
Change-Id: I94412dd183535c18f4421b465f64870b44ad230d Reviewed-on: https://pdfium-review.googlesource.com/28971 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_tiffmodule.cpp')
-rw-r--r--core/fxcodec/codec/ccodec_tiffmodule.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fxcodec/codec/ccodec_tiffmodule.cpp b/core/fxcodec/codec/ccodec_tiffmodule.cpp
index 0bf0045261..b5287ae9e4 100644
--- a/core/fxcodec/codec/ccodec_tiffmodule.cpp
+++ b/core/fxcodec/codec/ccodec_tiffmodule.cpp
@@ -439,24 +439,24 @@ bool CTiffContext::Decode24bppRGB(const RetainPtr<CFX_DIBitmap>& pDIBitmap,
}
bool CTiffContext::Decode(const RetainPtr<CFX_DIBitmap>& pDIBitmap) {
- uint32_t img_wid = pDIBitmap->GetWidth();
- uint32_t img_hei = pDIBitmap->GetHeight();
+ uint32_t img_width = pDIBitmap->GetWidth();
+ uint32_t img_height = pDIBitmap->GetHeight();
uint32_t width = 0;
uint32_t height = 0;
TIFFGetField(m_tif_ctx, TIFFTAG_IMAGEWIDTH, &width);
TIFFGetField(m_tif_ctx, TIFFTAG_IMAGELENGTH, &height);
- if (img_wid != width || img_hei != height)
+ if (img_width != width || img_height != height)
return false;
if (pDIBitmap->GetBPP() == 32) {
uint16_t rotation = ORIENTATION_TOPLEFT;
TIFFGetField(m_tif_ctx, TIFFTAG_ORIENTATION, &rotation);
- if (TIFFReadRGBAImageOriented(m_tif_ctx, img_wid, img_hei,
+ if (TIFFReadRGBAImageOriented(m_tif_ctx, img_width, img_height,
(uint32*)pDIBitmap->GetBuffer(), rotation,
1)) {
- for (uint32_t row = 0; row < img_hei; row++) {
+ for (uint32_t row = 0; row < img_height; row++) {
uint8_t* row_buf = (uint8_t*)pDIBitmap->GetScanline(row);
- TiffBGRA2RGBA(row_buf, img_wid, 4);
+ TiffBGRA2RGBA(row_buf, img_width, 4);
}
return true;
}