summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/cbc_upca.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxbarcode/cbc_upca.cpp')
-rw-r--r--xfa/fxbarcode/cbc_upca.cpp26
1 files changed, 1 insertions, 25 deletions
diff --git a/xfa/fxbarcode/cbc_upca.cpp b/xfa/fxbarcode/cbc_upca.cpp
index ad0ec55003..8ed3e08eb9 100644
--- a/xfa/fxbarcode/cbc_upca.cpp
+++ b/xfa/fxbarcode/cbc_upca.cpp
@@ -21,16 +21,9 @@
#include "xfa/fxbarcode/cbc_upca.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_OnedUPCAReader.h"
#include "xfa/fxbarcode/oned/BC_OnedUPCAWriter.h"
-CBC_UPCA::CBC_UPCA()
- : CBC_OneCode(new CBC_OnedUPCAReader, new CBC_OnedUPCAWriter) {
- static_cast<CBC_OnedUPCAReader*>(m_pBCReader.get())->Init();
-}
+CBC_UPCA::CBC_UPCA() : CBC_OneCode(new CBC_OnedUPCAWriter) {}
CBC_UPCA::~CBC_UPCA() {}
@@ -97,23 +90,6 @@ FX_BOOL CBC_UPCA::RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) {
return TRUE;
}
-CFX_WideString CBC_UPCA::Decode(uint8_t* buf,
- int32_t width,
- int32_t height,
- int32_t& e) {
- CFX_WideString str;
- return str;
-}
-
-CFX_WideString CBC_UPCA::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, L"");
- return CFX_WideString::FromUTF8(str.AsStringC());
-}
-
BC_TYPE CBC_UPCA::GetType() {
return BC_UPCA;
}