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

Side by Side Diff: core/fxcodec/codec/fx_codec_fax.cpp

Issue 2027273002: Fix all the code which has duplicate variable declarations (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « core/fpdftext/fpdf_text_int.cpp ('k') | core/fxge/dib/fx_dib_composite.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/fxcodec/codec/codec_int.h" 7 #include "core/fxcodec/codec/codec_int.h"
8 #include "core/fxcodec/include/fx_codec.h" 8 #include "core/fxcodec/include/fx_codec.h"
9 9
10 namespace { 10 namespace {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 } 352 }
353 if (b2 >= columns) { 353 if (b2 >= columns) {
354 return TRUE; 354 return TRUE;
355 } 355 }
356 a0 = b2; 356 a0 = b2;
357 continue; 357 continue;
358 } else { 358 } else {
359 if (bitpos >= bitsize) { 359 if (bitpos >= bitsize) {
360 return FALSE; 360 return FALSE;
361 } 361 }
362 FX_BOOL bit1 = NEXTBIT; 362 FX_BOOL next_bit1 = NEXTBIT;
363 if (bitpos >= bitsize) { 363 if (bitpos >= bitsize) {
364 return FALSE; 364 return FALSE;
365 } 365 }
366 FX_BOOL bit2 = NEXTBIT; 366 FX_BOOL next_bit2 = NEXTBIT;
367 if (bit1 && bit2) { 367 if (next_bit1 && next_bit2) {
368 v_delta = 2; 368 v_delta = 2;
369 } else if (bit1) { 369 } else if (next_bit1) {
370 v_delta = -2; 370 v_delta = -2;
371 } else if (bit2) { 371 } else if (next_bit2) {
372 if (bitpos >= bitsize) { 372 if (bitpos >= bitsize) {
373 return FALSE; 373 return FALSE;
374 } 374 }
375 bit = NEXTBIT; 375 bit = NEXTBIT;
376 if (bit) { 376 if (bit) {
377 v_delta = 3; 377 v_delta = 3;
378 } else { 378 } else {
379 v_delta = -3; 379 v_delta = -3;
380 } 380 }
381 } else { 381 } else {
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 FX_BOOL EndOfLine, 814 FX_BOOL EndOfLine,
815 FX_BOOL EncodedByteAlign, 815 FX_BOOL EncodedByteAlign,
816 FX_BOOL BlackIs1, 816 FX_BOOL BlackIs1,
817 int Columns, 817 int Columns,
818 int Rows) { 818 int Rows) {
819 CCodec_FaxDecoder* pDecoder = new CCodec_FaxDecoder; 819 CCodec_FaxDecoder* pDecoder = new CCodec_FaxDecoder;
820 pDecoder->Create(src_buf, src_size, width, height, K, EndOfLine, 820 pDecoder->Create(src_buf, src_size, width, height, K, EndOfLine,
821 EncodedByteAlign, BlackIs1, Columns, Rows); 821 EncodedByteAlign, BlackIs1, Columns, Rows);
822 return pDecoder; 822 return pDecoder;
823 } 823 }
OLDNEW
« no previous file with comments | « core/fpdftext/fpdf_text_int.cpp ('k') | core/fxge/dib/fx_dib_composite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698