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

Issue 1359013003: Cleanup JBig2_ArithIntDecoder. (Closed)

Created:
5 years, 2 months ago by Lei Zhang
Modified:
5 years, 2 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : simplify IAID decode() #

Patch Set 3 : rename member variables #

Patch Set 4 : IAID to vector #

Patch Set 5 : move variable decls to where used #

Patch Set 6 : Add ShiftOr() #

Patch Set 7 : AirthIntDecoder to vector #

Patch Set 8 : Apply recursion #

Patch Set 9 : Change AirthIntDecoder decode() interface, fix callers #

Patch Set 10 : lint #

Total comments: 2

Patch Set 11 : address comments #

Total comments: 2

Patch Set 12 : rebase #

Patch Set 13 : fix cast #

Total comments: 2

Patch Set 14 : address comment #

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -130 lines) Patch
M core/src/fxcodec/jbig2/JBig2_ArithDecoder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +14 lines, -11 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +77 lines, -85 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_SddProc.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +7 lines, -9 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_TrdProc.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +17 lines, -25 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Lei Zhang
I changed the decode() calls to be less consistent - if decode() can never fail, ...
5 years, 2 months ago (2015-09-28 17:33:21 UTC) #2
Tom Sepez
On 2015/09/28 17:33:21, Lei Zhang wrote: > I changed the decode() calls to be less ...
5 years, 2 months ago (2015-09-28 21:38:47 UTC) #3
Tom Sepez
https://codereview.chromium.org/1359013003/diff/180001/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp File core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp (right): https://codereview.chromium.org/1359013003/diff/180001/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp#newcode13 core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp:13: void ShiftOr(int* val, int bitwise_or_val) { nit: maybe this ...
5 years, 2 months ago (2015-09-28 21:38:55 UTC) #4
Lei Zhang
https://codereview.chromium.org/1359013003/diff/180001/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp File core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp (right): https://codereview.chromium.org/1359013003/diff/180001/core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp#newcode13 core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp:13: void ShiftOr(int* val, int bitwise_or_val) { On 2015/09/28 21:38:55, ...
5 years, 2 months ago (2015-09-29 00:58:22 UTC) #6
Tom Sepez
https://codereview.chromium.org/1359013003/diff/220001/core/src/fxcodec/jbig2/JBig2_SddProc.cpp File core/src/fxcodec/jbig2/JBig2_SddProc.cpp (right): https://codereview.chromium.org/1359013003/diff/220001/core/src/fxcodec/jbig2/JBig2_SddProc.cpp#newcode212 core/src/fxcodec/jbig2/JBig2_SddProc.cpp:212: IAID->decode(pArithDecoder, reinterpret_cast<int*>(&IDI)); Technically, an illegal cast, since there's no ...
5 years, 2 months ago (2015-09-29 17:46:36 UTC) #7
Lei Zhang
https://codereview.chromium.org/1359013003/diff/220001/core/src/fxcodec/jbig2/JBig2_SddProc.cpp File core/src/fxcodec/jbig2/JBig2_SddProc.cpp (right): https://codereview.chromium.org/1359013003/diff/220001/core/src/fxcodec/jbig2/JBig2_SddProc.cpp#newcode212 core/src/fxcodec/jbig2/JBig2_SddProc.cpp:212: IAID->decode(pArithDecoder, reinterpret_cast<int*>(&IDI)); On 2015/09/29 17:46:36, Tom Sepez wrote: > ...
5 years, 2 months ago (2015-09-30 05:12:20 UTC) #8
Tom Sepez
https://codereview.chromium.org/1359013003/diff/260001/core/src/fxcodec/jbig2/JBig2_TrdProc.cpp File core/src/fxcodec/jbig2/JBig2_TrdProc.cpp (right): https://codereview.chromium.org/1359013003/diff/260001/core/src/fxcodec/jbig2/JBig2_TrdProc.cpp#newcode302 core/src/fxcodec/jbig2/JBig2_TrdProc.cpp:302: if (!IAIT->decode(pArithDecoder, &nVal)) { Same thing here. Can we ...
5 years, 2 months ago (2015-09-30 20:09:51 UTC) #9
Lei Zhang
https://codereview.chromium.org/1359013003/diff/260001/core/src/fxcodec/jbig2/JBig2_TrdProc.cpp File core/src/fxcodec/jbig2/JBig2_TrdProc.cpp (right): https://codereview.chromium.org/1359013003/diff/260001/core/src/fxcodec/jbig2/JBig2_TrdProc.cpp#newcode302 core/src/fxcodec/jbig2/JBig2_TrdProc.cpp:302: if (!IAIT->decode(pArithDecoder, &nVal)) { On 2015/09/30 20:09:50, Tom Sepez ...
5 years, 2 months ago (2015-10-01 06:01:59 UTC) #11
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-01 16:03:48 UTC) #12
Lei Zhang
5 years, 2 months ago (2015-10-01 20:16:34 UTC) #13
Message was sent while issue was closed.
Committed patchset #15 (id:320001) manually as
ce37d7347f1ab4c9fc1f48a137628da641bb4f14 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698