| 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 2010 ZXing authors | 8 * Copyright 2010 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 return nullptr; | 98 return nullptr; |
| 99 } | 99 } |
| 100 CFX_ByteString toEAN13String = '0' + contents; | 100 CFX_ByteString toEAN13String = '0' + contents; |
| 101 m_iDataLenth = 13; | 101 m_iDataLenth = 13; |
| 102 uint8_t* ret = m_subWriter->Encode(toEAN13String, BCFORMAT_EAN_13, outWidth, | 102 uint8_t* ret = m_subWriter->Encode(toEAN13String, BCFORMAT_EAN_13, outWidth, |
| 103 outHeight, hints, e); | 103 outHeight, hints, e); |
| 104 BC_EXCEPTION_CHECK_ReturnValue(e, nullptr); | 104 BC_EXCEPTION_CHECK_ReturnValue(e, nullptr); |
| 105 return ret; | 105 return ret; |
| 106 } | 106 } |
| 107 | 107 |
| 108 uint8_t* CBC_OnedUPCAWriter::Encode(const CFX_ByteString& contents, |
| 109 int32_t& outLength, |
| 110 int32_t& e) { |
| 111 return nullptr; |
| 112 } |
| 113 |
| 108 void CBC_OnedUPCAWriter::ShowChars(const CFX_WideStringC& contents, | 114 void CBC_OnedUPCAWriter::ShowChars(const CFX_WideStringC& contents, |
| 109 CFX_DIBitmap* pOutBitmap, | 115 CFX_DIBitmap* pOutBitmap, |
| 110 CFX_RenderDevice* device, | 116 CFX_RenderDevice* device, |
| 111 const CFX_Matrix* matrix, | 117 const CFX_Matrix* matrix, |
| 112 int32_t barWidth, | 118 int32_t barWidth, |
| 113 int32_t multiple, | 119 int32_t multiple, |
| 114 int32_t& e) { | 120 int32_t& e) { |
| 115 if (!device && !pOutBitmap) { | 121 if (!device && !pOutBitmap) { |
| 116 e = BCExceptionIllegalArgument; | 122 e = BCExceptionIllegalArgument; |
| 117 return; | 123 return; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 FX_Free(pCharPos); | 276 FX_Free(pCharPos); |
| 271 } | 277 } |
| 272 | 278 |
| 273 void CBC_OnedUPCAWriter::RenderResult(const CFX_WideStringC& contents, | 279 void CBC_OnedUPCAWriter::RenderResult(const CFX_WideStringC& contents, |
| 274 uint8_t* code, | 280 uint8_t* code, |
| 275 int32_t codeLength, | 281 int32_t codeLength, |
| 276 FX_BOOL isDevice, | 282 FX_BOOL isDevice, |
| 277 int32_t& e) { | 283 int32_t& e) { |
| 278 CBC_OneDimWriter::RenderResult(contents, code, codeLength, isDevice, e); | 284 CBC_OneDimWriter::RenderResult(contents, code, codeLength, isDevice, e); |
| 279 } | 285 } |
| OLD | NEW |