diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-27 16:54:28 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-27 16:54:28 +0000 |
commit | 61f66c9be2abf4f2a5f8bc299ad6e1900c63dbc3 (patch) | |
tree | 4dc0116df63dce8414b8c08c272e5d0878ed8f03 /core/fxcodec/jbig2/JBig2_Image.h | |
parent | 0e3635c59e79e8ca782412fa1bcf377c7c4f980e (diff) | |
download | pdfium-61f66c9be2abf4f2a5f8bc299ad6e1900c63dbc3.tar.xz |
Add CJBig2_Image::IsValidImageSize() helper method.
Change-Id: Ic2acd6f03b9b2e52b3d94d7579d5dc36c8e62c96
Reviewed-on: https://pdfium-review.googlesource.com/31530
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Image.h')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_Image.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Image.h b/core/fxcodec/jbig2/JBig2_Image.h index c0980407db..51ccaeb8f7 100644 --- a/core/fxcodec/jbig2/JBig2_Image.h +++ b/core/fxcodec/jbig2/JBig2_Image.h @@ -29,6 +29,8 @@ class CJBig2_Image { CJBig2_Image(const CJBig2_Image& im); ~CJBig2_Image(); + static bool IsValidImageSize(int32_t w, int32_t h); + int32_t width() const { return m_nWidth; } int32_t height() const { return m_nHeight; } int32_t stride() const { return m_nStride; } |