Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2475)

Unified Diff: core/fxcodec/codec/fx_codec_fax.cpp

Issue 2459673002: Fix some FX_BOOL / int noise in core/fx* (Closed)
Patch Set: Fix some FX_BOOL / int noise in core/fx* Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/fxge/agg/fx_agg_driver.cpp » ('j') | core/fxge/agg/fx_agg_driver.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxcodec/codec/fx_codec_fax.cpp
diff --git a/core/fxcodec/codec/fx_codec_fax.cpp b/core/fxcodec/codec/fx_codec_fax.cpp
index a7ffd8bbdda6e3abffecf89261287d28ccd999fd..9af812381aca6c3355cfa69fc4377590fce67d39 100644
--- a/core/fxcodec/codec/fx_codec_fax.cpp
+++ b/core/fxcodec/codec/fx_codec_fax.cpp
@@ -522,9 +522,7 @@ uint8_t* CCodec_FaxDecoder::v_GetNextLine() {
} else if (m_Encoding == 0) {
FaxGet1DLine(m_pSrcBuf, bitsize, &m_bitpos, &m_ScanlineBuf, m_OrigWidth);
} else {
- FX_BOOL bNext1D = m_pSrcBuf[m_bitpos / 8] & (1 << (7 - m_bitpos % 8));
- ++m_bitpos;
- if (bNext1D) {
+ if (NextBit(m_pSrcBuf, &m_bitpos)) {
FaxGet1DLine(m_pSrcBuf, bitsize, &m_bitpos, &m_ScanlineBuf, m_OrigWidth);
} else {
FaxG4GetRow(m_pSrcBuf, bitsize, &m_bitpos, m_ScanlineBuf.data(), m_RefBuf,
« no previous file with comments | « no previous file | core/fxge/agg/fx_agg_driver.cpp » ('j') | core/fxge/agg/fx_agg_driver.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698