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

Side by Side Diff: core/fpdfapi/fpdf_render/fpdf_render_image.cpp

Issue 1864153002: Move include/fxcodec to fxcodec/include (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 8 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
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/fpdfapi/fpdf_render/render_int.h" 7 #include "core/fpdfapi/fpdf_render/render_int.h"
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/fpdfapi/fpdf_page/cpdf_parseoptions.h" 12 #include "core/fpdfapi/fpdf_page/cpdf_parseoptions.h"
13 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" 13 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h"
14 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h" 14 #include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h"
15 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h" 15 #include "core/fpdfapi/fpdf_page/include/cpdf_form.h"
16 #include "core/fpdfapi/fpdf_page/include/cpdf_image.h" 16 #include "core/fpdfapi/fpdf_page/include/cpdf_image.h"
17 #include "core/fpdfapi/fpdf_page/include/cpdf_imageobject.h" 17 #include "core/fpdfapi/fpdf_page/include/cpdf_imageobject.h"
18 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 18 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
19 #include "core/fpdfapi/fpdf_page/pageint.h" 19 #include "core/fpdfapi/fpdf_page/pageint.h"
20 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 20 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
21 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 21 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
22 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 22 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
23 #include "core/fpdfapi/fpdf_parser/ipdf_occontext.h" 23 #include "core/fpdfapi/fpdf_parser/ipdf_occontext.h"
24 #include "core/fpdfapi/fpdf_render/cpdf_pagerendercache.h" 24 #include "core/fpdfapi/fpdf_render/cpdf_pagerendercache.h"
25 #include "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h" 25 #include "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h"
26 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" 26 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h"
27 #include "core/fxcodec/include/fx_codec.h"
27 #include "core/fxcrt/include/fx_safe_types.h" 28 #include "core/fxcrt/include/fx_safe_types.h"
28 #include "core/fxge/include/fx_ge.h" 29 #include "core/fxge/include/fx_ge.h"
29 #include "core/include/fxcodec/fx_codec.h"
30 30
31 FX_BOOL CPDF_RenderStatus::ProcessImage(const CPDF_ImageObject* pImageObj, 31 FX_BOOL CPDF_RenderStatus::ProcessImage(const CPDF_ImageObject* pImageObj,
32 const CFX_Matrix* pObj2Device) { 32 const CFX_Matrix* pObj2Device) {
33 CPDF_ImageRenderer render; 33 CPDF_ImageRenderer render;
34 if (render.Start(this, pImageObj, pObj2Device, m_bStdCS, m_curBlend)) { 34 if (render.Start(this, pImageObj, pObj2Device, m_bStdCS, m_curBlend)) {
35 render.Continue(NULL); 35 render.Continue(NULL);
36 } 36 }
37 return render.m_Result; 37 return render.m_Result;
38 } 38 }
39 void CPDF_RenderStatus::CompositeDIBitmap(CFX_DIBitmap* pDIBitmap, 39 void CPDF_RenderStatus::CompositeDIBitmap(CFX_DIBitmap* pDIBitmap,
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 } else if (pFunc) { 997 } else if (pFunc) {
998 int size = dest_pitch * height; 998 int size = dest_pitch * height;
999 for (int i = 0; i < size; i++) { 999 for (int i = 0; i < size; i++) {
1000 dest_buf[i] = transfers[src_buf[i]]; 1000 dest_buf[i] = transfers[src_buf[i]];
1001 } 1001 }
1002 } else { 1002 } else {
1003 FXSYS_memcpy(dest_buf, src_buf, dest_pitch * height); 1003 FXSYS_memcpy(dest_buf, src_buf, dest_pitch * height);
1004 } 1004 }
1005 return pMask.release(); 1005 return pMask.release();
1006 } 1006 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp ('k') | core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698