summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-02-24 15:39:55 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-02-24 15:39:55 -0500
commit320510d590f4e8df3a4725a87b54446c7009e57e (patch)
tree3cf0dfa98debaba19ea35a17b27046cb98305767 /xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp
parent86b5c31dc7c98af877a5e8952c5b55b9ea611f3c (diff)
downloadpdfium-320510d590f4e8df3a4725a87b54446c7009e57e.tar.xz
Remove include only barcode.h and IWYU.
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1730893003 .
Diffstat (limited to 'xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp')
-rw-r--r--xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp b/xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp
index b4d21e3a2d..1bb5a295a0 100644
--- a/xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp
+++ b/xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.cpp
@@ -20,9 +20,10 @@
* limitations under the License.
*/
-#include "xfa/src/fxbarcode/barcode.h"
#include "xfa/src/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h"
#include "xfa/src/fxbarcode/qrcode/BC_QRCoderFormatInformation.h"
+#include "xfa/src/fxbarcode/utils.h"
+
const int32_t CBC_QRCoderFormatInformation::FORMAT_INFO_MASK_QR = 0X5412;
const int32_t CBC_QRCoderFormatInformation::FORMAT_INFO_DECODE_LOOKUP[32][2] = {
{0x5412, 0x00}, {0x5125, 0x01}, {0x5E7C, 0x02}, {0x5B4B, 0x03},
@@ -36,6 +37,7 @@ const int32_t CBC_QRCoderFormatInformation::FORMAT_INFO_DECODE_LOOKUP[32][2] = {
};
const int32_t CBC_QRCoderFormatInformation::BITS_SET_IN_HALF_BYTE[] = {
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};
+
CBC_QRCoderFormatInformation::CBC_QRCoderFormatInformation(int32_t formatInfo) {
m_errorCorrectLevl =
CBC_QRCoderErrorCorrectionLevel::ForBits((formatInfo >> 3) & 0x03);