summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_Image.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-22 15:38:58 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-22 15:38:58 +0000
commit47b75ce767469170658a2ec73f25aa24d89b5099 (patch)
tree8aeca486b8b3b5bafbd88633a140f329f2ae0cf2 /core/fxcodec/jbig2/JBig2_Image.cpp
parent366df7fd6e6b75e0500e67960a20dc3129c703d6 (diff)
downloadpdfium-47b75ce767469170658a2ec73f25aa24d89b5099.tar.xz
Fix method style in JBig2_Image.
Rename fooBar() to FooBar(). Change-Id: I87775fa14ce7e4f4a5897780d0d02fb61c7693ff Reviewed-on: https://pdfium-review.googlesource.com/32739 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Image.cpp')
-rw-r--r--core/fxcodec/jbig2/JBig2_Image.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Image.cpp b/core/fxcodec/jbig2/JBig2_Image.cpp
index 3a45223c1e..089f9e44d6 100644
--- a/core/fxcodec/jbig2/JBig2_Image.cpp
+++ b/core/fxcodec/jbig2/JBig2_Image.cpp
@@ -74,7 +74,7 @@ bool CJBig2_Image::IsValidImageSize(int32_t w, int32_t h) {
h <= JBIG2_MAX_IMAGE_SIZE;
}
-int CJBig2_Image::getPixel(int32_t x, int32_t y) const {
+int CJBig2_Image::GetPixel(int32_t x, int32_t y) const {
if (!m_pData)
return 0;
@@ -89,7 +89,7 @@ int CJBig2_Image::getPixel(int32_t x, int32_t y) const {
return ((data()[m] >> (7 - n)) & 1);
}
-int32_t CJBig2_Image::setPixel(int32_t x, int32_t y, int v) {
+int32_t CJBig2_Image::SetPixel(int32_t x, int32_t y, int v) {
if (!m_pData)
return 0;
@@ -109,7 +109,7 @@ int32_t CJBig2_Image::setPixel(int32_t x, int32_t y, int v) {
return 1;
}
-void CJBig2_Image::copyLine(int32_t hTo, int32_t hFrom) {
+void CJBig2_Image::CopyLine(int32_t hTo, int32_t hFrom) {
if (!m_pData)
return;
@@ -120,7 +120,7 @@ void CJBig2_Image::copyLine(int32_t hTo, int32_t hFrom) {
m_nStride);
}
}
-void CJBig2_Image::fill(bool v) {
+void CJBig2_Image::Fill(bool v) {
if (!m_pData)
return;
@@ -162,7 +162,7 @@ bool CJBig2_Image::ComposeFromWithRect(int32_t x,
#define JBIG2_GETDWORD(buf) \
((uint32_t)(((buf)[0] << 24) | ((buf)[1] << 16) | ((buf)[2] << 8) | (buf)[3]))
-std::unique_ptr<CJBig2_Image> CJBig2_Image::subImage(int32_t x,
+std::unique_ptr<CJBig2_Image> CJBig2_Image::SubImage(int32_t x,
int32_t y,
int32_t w,
int32_t h) {
@@ -181,7 +181,7 @@ std::unique_ptr<CJBig2_Image> CJBig2_Image::subImage(int32_t x,
auto pImage = pdfium::MakeUnique<CJBig2_Image>(w, h);
if (!m_pData) {
- pImage->fill(0);
+ pImage->Fill(0);
return pImage;
}
if (!pImage->m_pData)
@@ -228,7 +228,7 @@ std::unique_ptr<CJBig2_Image> CJBig2_Image::subImage(int32_t x,
return pImage;
}
-void CJBig2_Image::expand(int32_t h, bool v) {
+void CJBig2_Image::Expand(int32_t h, bool v) {
if (!m_pData || h <= m_nHeight || h > kMaxImageBytes / m_nStride)
return;