Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: core/fxcodec/codec/fx_codec.cpp

Issue 2615703002: Revert postscript code removal. (Closed)
Patch Set: Move files, remove extra class, remove non const refs Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fxcodec/codec/ccodec_jpegmodule.h ('k') | core/fxcodec/codec/fx_codec_fax.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "core/fxcodec/fx_codec.h" 7 #include "core/fxcodec/fx_codec.h"
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <memory> 10 #include <memory>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return true; 90 return true;
91 } 91 }
92 } 92 }
93 return false; 93 return false;
94 } 94 }
95 95
96 uint8_t* CCodec_ScanlineDecoder::ReadNextLine() { 96 uint8_t* CCodec_ScanlineDecoder::ReadNextLine() {
97 return v_GetNextLine(); 97 return v_GetNextLine();
98 } 98 }
99 99
100 bool CCodec_BasicModule::RunLengthEncode(const uint8_t* src_buf,
101 uint32_t src_size,
102 uint8_t** dest_buf,
103 uint32_t* dest_size) {
104 return false;
105 }
106
107 bool CCodec_BasicModule::A85Encode(const uint8_t* src_buf,
108 uint32_t src_size,
109 uint8_t** dest_buf,
110 uint32_t* dest_size) {
111 return false;
112 }
113
100 #ifdef PDF_ENABLE_XFA 114 #ifdef PDF_ENABLE_XFA
101 CFX_DIBAttribute::CFX_DIBAttribute() 115 CFX_DIBAttribute::CFX_DIBAttribute()
102 : m_nXDPI(-1), 116 : m_nXDPI(-1),
103 m_nYDPI(-1), 117 m_nYDPI(-1),
104 m_fAspectRatio(-1.0f), 118 m_fAspectRatio(-1.0f),
105 m_wDPIUnit(0), 119 m_wDPIUnit(0),
106 m_nGifLeft(0), 120 m_nGifLeft(0),
107 m_nGifTop(0), 121 m_nGifTop(0),
108 m_pGifLocalPalette(nullptr), 122 m_pGifLocalPalette(nullptr),
109 m_nGifLocalPalNum(0), 123 m_nGifLocalPalNum(0),
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 int width, 323 int width,
310 int height, 324 int height,
311 int nComps, 325 int nComps,
312 int bpc) { 326 int bpc) {
313 auto pDecoder = pdfium::MakeUnique<CCodec_RLScanlineDecoder>(); 327 auto pDecoder = pdfium::MakeUnique<CCodec_RLScanlineDecoder>();
314 if (!pDecoder->Create(src_buf, src_size, width, height, nComps, bpc)) 328 if (!pDecoder->Create(src_buf, src_size, width, height, nComps, bpc))
315 return nullptr; 329 return nullptr;
316 330
317 return std::move(pDecoder); 331 return std::move(pDecoder);
318 } 332 }
OLDNEW
« no previous file with comments | « core/fxcodec/codec/ccodec_jpegmodule.h ('k') | core/fxcodec/codec/fx_codec_fax.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698