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

Side by Side Diff: core/fxcodec/codec/ccodec_jpegmodule.h

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_faxmodule.h ('k') | core/fxcodec/codec/fx_codec.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CORE_FXCODEC_CODEC_CCODEC_JPEGMODULE_H_ 7 #ifndef CORE_FXCODEC_CODEC_CCODEC_JPEGMODULE_H_
8 #define CORE_FXCODEC_CODEC_CCODEC_JPEGMODULE_H_ 8 #define CORE_FXCODEC_CODEC_CCODEC_JPEGMODULE_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 int ReadHeader(FXJPEG_Context* pContext, 51 int ReadHeader(FXJPEG_Context* pContext,
52 int* width, 52 int* width,
53 int* height, 53 int* height,
54 int* nComps, 54 int* nComps,
55 CFX_DIBAttribute* pAttribute); 55 CFX_DIBAttribute* pAttribute);
56 #endif // PDF_ENABLE_XFA 56 #endif // PDF_ENABLE_XFA
57 57
58 bool StartScanline(FXJPEG_Context* pContext, int down_scale); 58 bool StartScanline(FXJPEG_Context* pContext, int down_scale);
59 bool ReadScanline(FXJPEG_Context* pContext, uint8_t* dest_buf); 59 bool ReadScanline(FXJPEG_Context* pContext, uint8_t* dest_buf);
60 uint32_t GetAvailInput(FXJPEG_Context* pContext, uint8_t** avail_buf_ptr); 60 uint32_t GetAvailInput(FXJPEG_Context* pContext, uint8_t** avail_buf_ptr);
61
62 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
63 static bool JpegEncode(const CFX_DIBSource* pSource,
64 uint8_t** dest_buf,
65 FX_STRSIZE* dest_size);
66 #endif
61 }; 67 };
62 68
63 #endif // CORE_FXCODEC_CODEC_CCODEC_JPEGMODULE_H_ 69 #endif // CORE_FXCODEC_CODEC_CCODEC_JPEGMODULE_H_
OLDNEW
« no previous file with comments | « core/fxcodec/codec/ccodec_faxmodule.h ('k') | core/fxcodec/codec/fx_codec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698