OLD | NEW |
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 // Original code is licensed as follows: | 6 // Original code is licensed as follows: |
7 /* | 7 /* |
8 * Copyright 2008 ZXing authors | 8 * Copyright 2008 ZXing authors |
9 * | 9 * |
10 * Licensed under the Apache License, Version 2.0 (the "License"); | 10 * Licensed under the Apache License, Version 2.0 (the "License"); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, | 43 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, |
44 -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, | 44 -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
45 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1 | 45 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1 |
46 }; | 46 }; |
47 CBC_QRCoderEncoder::CBC_QRCoderEncoder() | 47 CBC_QRCoderEncoder::CBC_QRCoderEncoder() |
48 { | 48 { |
49 } | 49 } |
50 CBC_QRCoderEncoder::~CBC_QRCoderEncoder() | 50 CBC_QRCoderEncoder::~CBC_QRCoderEncoder() |
51 { | 51 { |
52 } | 52 } |
53 class Make_Pair : public CFX_Object | 53 class Make_Pair |
54 { | 54 { |
55 public: | 55 public: |
56 CBC_QRCoderMode* m_mode; | 56 CBC_QRCoderMode* m_mode; |
57 CFX_ByteString m_string; | 57 CFX_ByteString m_string; |
58 private: | 58 private: |
59 Make_Pair(const Make_Pair &mode_string) {} | 59 Make_Pair(const Make_Pair &mode_string) {} |
60 Make_Pair &operator = (Make_Pair &mode_string) | 60 Make_Pair &operator = (Make_Pair &mode_string) |
61 { | 61 { |
62 if (this == &mode_string) { | 62 if (this == &mode_string) { |
63 return *this; | 63 return *this; |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 CBC_ReedSolomonEncoder encode(CBC_ReedSolomonGF256::QRCodeFild); | 867 CBC_ReedSolomonEncoder encode(CBC_ReedSolomonGF256::QRCodeFild); |
868 encode.Init(); | 868 encode.Init(); |
869 encode.Encode(&toEncode, numEcBytesInBlock, e); | 869 encode.Encode(&toEncode, numEcBytesInBlock, e); |
870 BC_EXCEPTION_CHECK_ReturnValue(e, NULL); | 870 BC_EXCEPTION_CHECK_ReturnValue(e, NULL); |
871 CBC_CommonByteArray* ecBytes = FX_NEW CBC_CommonByteArray(numEcBytesInBlock)
; | 871 CBC_CommonByteArray* ecBytes = FX_NEW CBC_CommonByteArray(numEcBytesInBlock)
; |
872 for(FX_INT32 j = 0; j < numEcBytesInBlock; j++) { | 872 for(FX_INT32 j = 0; j < numEcBytesInBlock; j++) { |
873 ecBytes->Set(j, toEncode[numDataBytes + j]); | 873 ecBytes->Set(j, toEncode[numDataBytes + j]); |
874 } | 874 } |
875 return ecBytes; | 875 return ecBytes; |
876 } | 876 } |
OLD | NEW |