OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 * Copyright 2011 ZXing authors | 7 * Copyright 2011 ZXing authors |
8 * | 8 * |
9 * Licensed under the Apache License, Version 2.0 (the "License"); | 9 * Licensed under the Apache License, Version 2.0 (the "License"); |
10 * you may not use this file except in compliance with the License. | 10 * you may not use this file except in compliance with the License. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 FX_BOOL CBC_Code39::RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) { | 83 FX_BOOL CBC_Code39::RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) { |
84 CFX_WideString renderCon = | 84 CFX_WideString renderCon = |
85 static_cast<CBC_OnedCode39Writer*>(m_pBCWriter.get()) | 85 static_cast<CBC_OnedCode39Writer*>(m_pBCWriter.get()) |
86 ->encodedContents(m_renderContents.AsStringC(), e); | 86 ->encodedContents(m_renderContents.AsStringC(), e); |
87 static_cast<CBC_OneDimWriter*>(m_pBCWriter.get()) | 87 static_cast<CBC_OneDimWriter*>(m_pBCWriter.get()) |
88 ->RenderBitmapResult(pOutBitmap, renderCon.AsStringC(), e); | 88 ->RenderBitmapResult(pOutBitmap, renderCon.AsStringC(), e); |
89 BC_EXCEPTION_CHECK_ReturnValue(e, FALSE); | 89 BC_EXCEPTION_CHECK_ReturnValue(e, FALSE); |
90 return TRUE; | 90 return TRUE; |
91 } | 91 } |
92 | 92 |
| 93 BC_TYPE CBC_Code39::GetType() { |
| 94 return BC_CODE39; |
| 95 } |
| 96 |
93 CFX_WideString CBC_Code39::Decode(uint8_t* buf, | 97 CFX_WideString CBC_Code39::Decode(uint8_t* buf, |
94 int32_t width, | 98 int32_t width, |
95 int32_t height, | 99 int32_t height, |
96 int32_t& e) { | 100 int32_t& e) { |
97 CFX_WideString str; | 101 CFX_WideString str; |
98 return str; | 102 return str; |
99 } | 103 } |
100 | 104 |
101 CFX_WideString CBC_Code39::Decode(CFX_DIBitmap* pBitmap, int32_t& e) { | 105 CFX_WideString CBC_Code39::Decode(CFX_DIBitmap* pBitmap, int32_t& e) { |
102 CBC_BufferedImageLuminanceSource source(pBitmap); | 106 CBC_BufferedImageLuminanceSource source(pBitmap); |
(...skipping 10 matching lines...) Expand all Loading... |
113 ->SetTextLocation(location); | 117 ->SetTextLocation(location); |
114 return FALSE; | 118 return FALSE; |
115 } | 119 } |
116 | 120 |
117 FX_BOOL CBC_Code39::SetWideNarrowRatio(int32_t ratio) { | 121 FX_BOOL CBC_Code39::SetWideNarrowRatio(int32_t ratio) { |
118 if (m_pBCWriter) | 122 if (m_pBCWriter) |
119 return static_cast<CBC_OnedCode39Writer*>(m_pBCWriter.get()) | 123 return static_cast<CBC_OnedCode39Writer*>(m_pBCWriter.get()) |
120 ->SetWideNarrowRatio(ratio); | 124 ->SetWideNarrowRatio(ratio); |
121 return FALSE; | 125 return FALSE; |
122 } | 126 } |
OLD | NEW |