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 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_ | 7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_ |
8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_ | 8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 FX_FLOAT* pSrcValues, | 525 FX_FLOAT* pSrcValues, |
526 FX_FLOAT* pDestValues) = 0; | 526 FX_FLOAT* pDestValues) = 0; |
527 | 527 |
528 virtual void TranslateScanline(void* pTransform, | 528 virtual void TranslateScanline(void* pTransform, |
529 uint8_t* pDest, | 529 uint8_t* pDest, |
530 const uint8_t* pSrc, | 530 const uint8_t* pSrc, |
531 int pixels) = 0; | 531 int pixels) = 0; |
532 virtual void SetComponents(FX_DWORD nComponents) = 0; | 532 virtual void SetComponents(FX_DWORD nComponents) = 0; |
533 }; | 533 }; |
534 | 534 |
| 535 void ReverseRGB(uint8_t* pDestBuf, const uint8_t* pSrcBuf, int pixels); |
| 536 void sRGB_to_AdobeCMYK(FX_FLOAT R, |
| 537 FX_FLOAT G, |
| 538 FX_FLOAT B, |
| 539 FX_FLOAT& c, |
| 540 FX_FLOAT& m, |
| 541 FX_FLOAT& y, |
| 542 FX_FLOAT& k); |
535 void AdobeCMYK_to_sRGB(FX_FLOAT c, | 543 void AdobeCMYK_to_sRGB(FX_FLOAT c, |
536 FX_FLOAT m, | 544 FX_FLOAT m, |
537 FX_FLOAT y, | 545 FX_FLOAT y, |
538 FX_FLOAT k, | 546 FX_FLOAT k, |
539 FX_FLOAT& R, | 547 FX_FLOAT& R, |
540 FX_FLOAT& G, | 548 FX_FLOAT& G, |
541 FX_FLOAT& B); | 549 FX_FLOAT& B); |
542 void AdobeCMYK_to_sRGB1(uint8_t c, | 550 void AdobeCMYK_to_sRGB1(uint8_t c, |
543 uint8_t m, | 551 uint8_t m, |
544 uint8_t y, | 552 uint8_t y, |
545 uint8_t k, | 553 uint8_t k, |
546 uint8_t& R, | 554 uint8_t& R, |
547 uint8_t& G, | 555 uint8_t& G, |
548 uint8_t& B); | 556 uint8_t& B); |
549 FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]); | 557 FX_BOOL MD5ComputeID(const void* buf, FX_DWORD dwSize, uint8_t ID[16]); |
550 void FaxG4Decode(const uint8_t* src_buf, | 558 void FaxG4Decode(const uint8_t* src_buf, |
551 FX_DWORD src_size, | 559 FX_DWORD src_size, |
552 int* pbitpos, | 560 int* pbitpos, |
553 uint8_t* dest_buf, | 561 uint8_t* dest_buf, |
554 int width, | 562 int width, |
555 int height, | 563 int height, |
556 int pitch); | 564 int pitch); |
557 | 565 |
558 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ | 566 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ |
OLD | NEW |