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 | 6 |
| 7 #include "codec_int.h" | 7 #include "core/src/fxcodec/codec/codec_int.h" |
|
Tom Sepez
2016/02/17 21:32:26
sort order.
dsinclair
2016/02/17 21:54:00
Done.
| |
| 8 #include "core/include/fxcodec/fx_codec.h" | 8 #include "core/include/fxcodec/fx_codec.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 const uint8_t OneLeadPos[256] = { | 12 const uint8_t OneLeadPos[256] = { |
| 13 8, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, | 13 8, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, |
| 14 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 14 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 15 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, | 15 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, |
| 16 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 16 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 17 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 17 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 822 FX_BOOL EndOfLine, | 822 FX_BOOL EndOfLine, |
| 823 FX_BOOL EncodedByteAlign, | 823 FX_BOOL EncodedByteAlign, |
| 824 FX_BOOL BlackIs1, | 824 FX_BOOL BlackIs1, |
| 825 int Columns, | 825 int Columns, |
| 826 int Rows) { | 826 int Rows) { |
| 827 CCodec_FaxDecoder* pDecoder = new CCodec_FaxDecoder; | 827 CCodec_FaxDecoder* pDecoder = new CCodec_FaxDecoder; |
| 828 pDecoder->Create(src_buf, src_size, width, height, K, EndOfLine, | 828 pDecoder->Create(src_buf, src_size, width, height, K, EndOfLine, |
| 829 EncodedByteAlign, BlackIs1, Columns, Rows); | 829 EncodedByteAlign, BlackIs1, Columns, Rows); |
| 830 return pDecoder; | 830 return pDecoder; |
| 831 } | 831 } |
| OLD | NEW |