| 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 | 6 |
| 7 #ifndef _BC_TWODIMWRITER_H_ | 7 #ifndef _BC_TWODIMWRITER_H_ |
| 8 #define _BC_TWODIMWRITER_H_ | 8 #define _BC_TWODIMWRITER_H_ |
| 9 #include "BC_Writer.h" | 9 #include "BC_Writer.h" |
| 10 class CBC_Writer; | 10 class CBC_Writer; |
| 11 class CBC_CommonBitMatrix; | 11 class CBC_CommonBitMatrix; |
| 12 class CBC_TwoDimWriter; | 12 class CBC_TwoDimWriter; |
| 13 class CBC_TwoDimWriter : public CBC_Writer | 13 class CBC_TwoDimWriter : public CBC_Writer |
| 14 { | 14 { |
| 15 public: | 15 public: |
| 16 CBC_TwoDimWriter(); | 16 CBC_TwoDimWriter(); |
| 17 virtual ~CBC_TwoDimWriter(); | 17 virtual ~CBC_TwoDimWriter(); |
| 18 virtual FX_BYTE*» Encode(const CFX_WideString& contents, FX_INT32 ecLevel,
FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 &e) | 18 virtual uint8_t*» Encode(const CFX_WideString& contents, int32_t ecLevel,
int32_t &outWidth, int32_t &outHeight, int32_t &e) |
| 19 { | 19 { |
| 20 return NULL; | 20 return NULL; |
| 21 }; | 21 }; |
| 22 virtual FX_BYTE*» Encode(const CFX_ByteString& contents, BCFORMAT format,
FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 hints, FX_INT32 &e) | 22 virtual uint8_t*» Encode(const CFX_ByteString& contents, BCFORMAT format,
int32_t &outWidth, int32_t &outHeight, int32_t hints, int32_t &e) |
| 23 { | 23 { |
| 24 return NULL; | 24 return NULL; |
| 25 }; | 25 }; |
| 26 virtual FX_BYTE*» Encode(const CFX_ByteString& contents, BCFORMAT format,
FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 &e) | 26 virtual uint8_t*» Encode(const CFX_ByteString& contents, BCFORMAT format,
int32_t &outWidth, int32_t &outHeight, int32_t &e) |
| 27 { | 27 { |
| 28 return NULL; | 28 return NULL; |
| 29 }; | 29 }; |
| 30 virtual void» » RenderResult(FX_BYTE *code, FX_INT32 codeWidth,
FX_INT32 codeHeight, FX_INT32 &e); | 30 virtual void» » RenderResult(uint8_t *code, int32_t codeWidth, i
nt32_t codeHeight, int32_t &e); |
| 31 virtual void RenderBitmapResult(CFX_DIBitmap *&pOutBitmap, FX_INT32&
e); | 31 virtual void RenderBitmapResult(CFX_DIBitmap *&pOutBitmap, int32_t& e
); |
| 32 virtual void RenderDeviceResult(CFX_RenderDevice* device, const CFX_M
atrix* matrix); | 32 virtual void RenderDeviceResult(CFX_RenderDevice* device, const CFX_M
atrix* matrix); |
| 33 virtual FX_BOOL» » SetErrorCorrectionLevel (FX_INT32 level) = 0; | 33 virtual FX_BOOL» » SetErrorCorrectionLevel (int32_t level) = 0; |
| 34 virtual FX_INT32 GetErrorCorrectionLevel() | 34 virtual int32_t GetErrorCorrectionLevel() |
| 35 { | 35 { |
| 36 return m_iCorrectLevel; | 36 return m_iCorrectLevel; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 protected: | 39 protected: |
| 40 FX_INT32» » m_iCorrectLevel; | 40 int32_t» » m_iCorrectLevel; |
| 41 FX_BOOL m_bFixedSize; | 41 FX_BOOL m_bFixedSize; |
| 42 CBC_CommonBitMatrix* m_output; | 42 CBC_CommonBitMatrix* m_output; |
| 43 }; | 43 }; |
| 44 #endif | 44 #endif |
| OLD | NEW |