Chromium Code Reviews| 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 2009 ZXing authors | 8 * Copyright 2009 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 16 matching lines...) Expand all Loading... | |
| 27 public: | 27 public: |
| 28 virtual FX_BOOL NeedToPauseNow() { return TRUE; } | 28 virtual FX_BOOL NeedToPauseNow() { return TRUE; } |
| 29 }; | 29 }; |
| 30 static CFX_DIBitmap* CreateDIBSource(IFX_FileRead* fileread) { | 30 static CFX_DIBitmap* CreateDIBSource(IFX_FileRead* fileread) { |
| 31 CFX_DIBitmap* bitmap = NULL; | 31 CFX_DIBitmap* bitmap = NULL; |
| 32 CCodec_ModuleMgr* pCodecMgr = NULL; | 32 CCodec_ModuleMgr* pCodecMgr = NULL; |
| 33 ICodec_ProgressiveDecoder* pImageCodec = NULL; | 33 ICodec_ProgressiveDecoder* pImageCodec = NULL; |
| 34 pCodecMgr = new CCodec_ModuleMgr(); | 34 pCodecMgr = new CCodec_ModuleMgr(); |
| 35 pImageCodec = pCodecMgr->CreateProgressiveDecoder(); | 35 pImageCodec = pCodecMgr->CreateProgressiveDecoder(); |
| 36 FXCODEC_STATUS status = FXCODEC_STATUS_DECODE_FINISH; | 36 FXCODEC_STATUS status = FXCODEC_STATUS_DECODE_FINISH; |
| 37 status = pImageCodec->LoadImageInfo(fileread, FXCODEC_IMAGE_UNKNOWN); | 37 status = pImageCodec->LoadImageInfo(fileread, FXCODEC_IMAGE_UNKNOWN, nullptr); |
| 38 if (status != FXCODEC_STATUS_FRAME_READY) { | 38 if (status != FXCODEC_STATUS_FRAME_READY) { |
| 39 return NULL; | 39 return NULL; |
| 40 } | 40 } |
| 41 bitmap = new CFX_DIBitmap; | 41 bitmap = new CFX_DIBitmap; |
| 42 bitmap->Create(pImageCodec->GetWidth(), pImageCodec->GetHeight(), FXDIB_Argb); | 42 bitmap->Create(pImageCodec->GetWidth(), pImageCodec->GetHeight(), FXDIB_Argb); |
| 43 bitmap->Clear(FXARGB_MAKE(0xFF, 0xFF, 0xFF, 0xFF)); | 43 bitmap->Clear(FXARGB_MAKE(0xFF, 0xFF, 0xFF, 0xFF)); |
| 44 CBC_Pause pause; | 44 CBC_Pause pause; |
| 45 int32_t frames; | 45 int32_t frames; |
| 46 status = pImageCodec->GetFrames(frames, &pause); | 46 status = pImageCodec->GetFrames(frames, &pause); |
| 47 while (status == FXCODEC_STATUS_FRAME_TOBECONTINUE) { | 47 while (status == FXCODEC_STATUS_FRAME_TOBECONTINUE) { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 } | 172 } |
| 173 FX_BOOL CBC_BufferedImageLuminanceSource::IsRotateSupported() { | 173 FX_BOOL CBC_BufferedImageLuminanceSource::IsRotateSupported() { |
| 174 return TRUE; | 174 return TRUE; |
| 175 } | 175 } |
| 176 CBC_LuminanceSource* CBC_BufferedImageLuminanceSource::Crop(int32_t left, | 176 CBC_LuminanceSource* CBC_BufferedImageLuminanceSource::Crop(int32_t left, |
| 177 int32_t top, | 177 int32_t top, |
| 178 int32_t width, | 178 int32_t width, |
| 179 int32_t height) { | 179 int32_t height) { |
| 180 return NULL; | 180 return NULL; |
| 181 } | 181 } |
| 182 CBC_LuminanceSource* CBC_BufferedImageLuminanceSource::RotateCounterClockwise( | 182 CBC_LuminanceSource* CBC_BufferedImageLuminanceSource::RotateCounterClockwise( |
|
Lei Zhang
2015/10/30 06:06:32
BTW, as is, this function has no caller.
Tom Sepez
2015/10/30 20:10:34
Removeding it gave:
obj/xfa/src/fxbarcode/xfa.BC_
| |
| 183 int32_t& e) { | 183 int32_t& e) { |
| 184 if (!IsRotateSupported()) { | 184 if (!IsRotateSupported()) |
| 185 e = BCExceptionRotateNotSupported; | 185 e = BCExceptionRotateNotSupported; |
| 186 return NULL; | |
| 187 } | |
| 188 int32_t sourceWidth = m_width; | |
| 189 int32_t sourceHeight = m_height; | |
| 190 return NULL; | 186 return NULL; |
| 191 } | 187 } |
| OLD | NEW |