summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/cbc_code128.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxbarcode/cbc_code128.cpp')
-rw-r--r--xfa/fxbarcode/cbc_code128.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/xfa/fxbarcode/cbc_code128.cpp b/xfa/fxbarcode/cbc_code128.cpp
index abae7a3594..8615cd40df 100644
--- a/xfa/fxbarcode/cbc_code128.cpp
+++ b/xfa/fxbarcode/cbc_code128.cpp
@@ -21,14 +21,10 @@
#include "xfa/fxbarcode/cbc_code128.h"
-#include "xfa/fxbarcode/BC_BinaryBitmap.h"
-#include "xfa/fxbarcode/BC_BufferedImageLuminanceSource.h"
-#include "xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.h"
-#include "xfa/fxbarcode/oned/BC_OnedCode128Reader.h"
#include "xfa/fxbarcode/oned/BC_OnedCode128Writer.h"
CBC_Code128::CBC_Code128(BC_TYPE type)
- : CBC_OneCode(new CBC_OnedCode128Reader, new CBC_OnedCode128Writer(type)) {}
+ : CBC_OneCode(new CBC_OnedCode128Writer(type)) {}
CBC_Code128::~CBC_Code128() {}
@@ -90,19 +86,3 @@ BC_TYPE CBC_Code128::GetType() {
return BC_CODE128;
}
-CFX_WideString CBC_Code128::Decode(uint8_t* buf,
- int32_t width,
- int32_t height,
- int32_t& e) {
- CFX_WideString str;
- return str;
-}
-
-CFX_WideString CBC_Code128::Decode(CFX_DIBitmap* pBitmap, int32_t& e) {
- CBC_BufferedImageLuminanceSource source(pBitmap);
- CBC_GlobalHistogramBinarizer binarizer(&source);
- CBC_BinaryBitmap bitmap(&binarizer);
- CFX_ByteString str = m_pBCReader->Decode(&bitmap, 0, e);
- BC_EXCEPTION_CHECK_ReturnValue(e, CFX_WideString());
- return CFX_WideString::FromUTF8(str.AsStringC());
-}