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 "../../../include/fxge/fx_dib.h" | 7 #include "../../../include/fxge/fx_dib.h" |
8 #include "dib_int.h" | 8 #include "dib_int.h" |
9 int SDP_Table[513] = { | 9 int SDP_Table[513] = { |
10 256, 256, 256, 256, 256, 256, 256, 256, 256, 255, 255, 255, 255, 255, 255, 2
54, 254, 254, 254, | 10 256, 256, 256, 256, 256, 256, 256, 256, 256, 255, 255, 255, 255, 255, 255, 2
54, 254, 254, 254, |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 FX_BOOL CFX_ImageTransformer::Continue(IFX_Pause* pPause) | 341 FX_BOOL CFX_ImageTransformer::Continue(IFX_Pause* pPause) |
342 { | 342 { |
343 if (m_Status == 1) { | 343 if (m_Status == 1) { |
344 if (m_Stretcher.Continue(pPause)) { | 344 if (m_Stretcher.Continue(pPause)) { |
345 return TRUE; | 345 return TRUE; |
346 } | 346 } |
347 if (m_Storer.GetBitmap()) { | 347 if (m_Storer.GetBitmap()) { |
348 m_Storer.Replace(m_Storer.GetBitmap()->SwapXY(m_pMatrix->c > 0, m_pM
atrix->b < 0)); | 348 m_Storer.Replace(m_Storer.GetBitmap()->SwapXY(m_pMatrix->c > 0, m_pM
atrix->b < 0)); |
349 } | 349 } |
350 return FALSE; | 350 return FALSE; |
351 } else if (m_Status == 2) { | 351 } |
| 352 if (m_Status == 2) { |
352 return m_Stretcher.Continue(pPause); | 353 return m_Stretcher.Continue(pPause); |
353 } else if (m_Status != 3) { | 354 } |
| 355 if (m_Status != 3) { |
354 return FALSE; | 356 return FALSE; |
355 } | 357 } |
356 if (m_Stretcher.Continue(pPause)) { | 358 if (m_Stretcher.Continue(pPause)) { |
357 return TRUE; | 359 return TRUE; |
358 } | 360 } |
359 int stretch_width = m_StretchClip.Width(); | 361 int stretch_width = m_StretchClip.Width(); |
360 int stretch_height = m_StretchClip.Height(); | 362 int stretch_height = m_StretchClip.Height(); |
361 if (m_Storer.GetBitmap() == NULL) { | 363 if (m_Storer.GetBitmap() == NULL) { |
362 return FALSE; | 364 return FALSE; |
363 } | 365 } |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 } | 787 } |
786 dest_pos += destBpp; | 788 dest_pos += destBpp; |
787 } | 789 } |
788 } | 790 } |
789 } | 791 } |
790 } | 792 } |
791 } | 793 } |
792 m_Storer.Replace(pTransformed); | 794 m_Storer.Replace(pTransformed); |
793 return FALSE; | 795 return FALSE; |
794 } | 796 } |
OLD | NEW |