summaryrefslogtreecommitdiff
path: root/core/fxcodec/bmp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-21 17:40:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-21 17:40:55 +0000
commitcb009c8652e4f3654d666a64d962d48d4ddc2f65 (patch)
treed5954c1d6a06e94d0708aa06b5a2486226b0e2e7 /core/fxcodec/bmp
parent3851aff62c7ad2f9c942b4d5d095ec0e6610bb84 (diff)
downloadpdfium-cb009c8652e4f3654d666a64d962d48d4ddc2f65.tar.xz
Rename "des_foo" to "dest_foo".
Destination variables usually have "dest" or "dst" as the prefix. Change-Id: If5bb01a5eafe1e4b42d1a6d653abb1b444b1b2fa Reviewed-on: https://pdfium-review.googlesource.com/28970 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/bmp')
-rw-r--r--core/fxcodec/bmp/cfx_bmpdecompressor.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/fxcodec/bmp/cfx_bmpdecompressor.cpp b/core/fxcodec/bmp/cfx_bmpdecompressor.cpp
index ea6e2ba0bb..4494198b43 100644
--- a/core/fxcodec/bmp/cfx_bmpdecompressor.cpp
+++ b/core/fxcodec/bmp/cfx_bmpdecompressor.cpp
@@ -357,10 +357,10 @@ bool CFX_BmpDecompressor::ValidateColorIndex(uint8_t val) {
}
int32_t CFX_BmpDecompressor::DecodeRGB() {
- std::vector<uint8_t> des_buf(src_row_bytes_);
+ std::vector<uint8_t> dest_buf(src_row_bytes_);
while (row_num_ < height_) {
size_t idx = 0;
- if (!ReadData(des_buf.data(), src_row_bytes_))
+ if (!ReadData(dest_buf.data(), src_row_bytes_))
return 2;
SaveDecodingStatus(BMP_D_STATUS_DATA);
@@ -368,17 +368,17 @@ int32_t CFX_BmpDecompressor::DecodeRGB() {
case 1: {
for (uint32_t col = 0; col < width_; ++col)
out_row_buffer_[idx++] =
- des_buf[col >> 3] & (0x80 >> (col % 8)) ? 0x01 : 0x00;
+ dest_buf[col >> 3] & (0x80 >> (col % 8)) ? 0x01 : 0x00;
} break;
case 4: {
for (uint32_t col = 0; col < width_; ++col) {
out_row_buffer_[idx++] = (col & 0x01)
- ? (des_buf[col >> 1] & 0x0F)
- : ((des_buf[col >> 1] & 0xF0) >> 4);
+ ? (dest_buf[col >> 1] & 0x0F)
+ : ((dest_buf[col >> 1] & 0xF0) >> 4);
}
} break;
case 16: {
- uint16_t* buf = reinterpret_cast<uint16_t*>(des_buf.data());
+ uint16_t* buf = reinterpret_cast<uint16_t*>(dest_buf.data());
uint8_t blue_bits = 0;
uint8_t green_bits = 0;
uint8_t red_bits = 0;
@@ -410,8 +410,8 @@ int32_t CFX_BmpDecompressor::DecodeRGB() {
case 8:
case 24:
case 32:
- uint8_t* des_buf_data = des_buf.data();
- std::copy(des_buf_data, des_buf_data + src_row_bytes_,
+ uint8_t* dest_buf_data = dest_buf.data();
+ std::copy(dest_buf_data, dest_buf_data + src_row_bytes_,
out_row_buffer_.begin());
idx += src_row_bytes_;
break;